Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Mehrere Alexa's .Ausgaben nur bei Angesprochenem Dot.Script

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Mehrere Alexa's .Ausgaben nur bei Angesprochenem Dot.Script

    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      canim last edited by

      Hallo,wollte gerne meine Script mit euch teilen. Habe in meiner Wohnung fast jedem Zimmer ein Alexa Dot stehen ( warum? hab die günstig geschossen und Multiroom funktion :)! Die dinger sind extrem empfindlich beim hören ;). Es kann passieren das ich im Wohnzimmer bin und die Ausgabe von einem anderem Zimmer kommt .

      Ich nutze Alex ausschließlich für meine IoT Projekte./ Iobroker Cumstomer Sprich Fenster Status/ Pflazen Status etc

      Stell ich Alexa eine Frage, bekomm ich auch zu 95% Antwort indem ich gesprochen habe.
      Hab mir gedanken gemacht und habe folgendes durch Alexa Adapter herausfinden können.

      Alexa Historie,da wird als "Name" der letzte Dot in die Value geschrieben, den nehme ich und vergleiche ihn. Entspricht der Dot mit dem Value soll er die Aussage
      vom letzten Dot machen.

      Wird einigen bestimmt helfen 🙂

      so sieht es per Blockly aus.

      alexa.jpg

      Code zum Kopieren. Als Triger den Historie Ordner von Alexa und das Objekt Name nehmen.
      In den Grünen Feldern den Namen euren Dots eintragen. als Ausgabe auch die Commands/ Speak vom Dot.

      <xml xmlns="https://developers.google.com/blockly/xml">
        <block type="on_ext" id="k04]s_CN7j(w~J,wa6+t" x="138" y="-862">
          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
          <field name="CONDITION">any</field>
          <field name="ACK_CONDITION"></field>
          <value name="OID0">
            <shadow type="field_oid" id="up_V)[pQh@.Uv(hRv/eU">
              <field name="oid">javascript.0.Pflanzen-Status-Alexa</field>
            </shadow>
          </value>
          <statement name="STATEMENT">
            <block type="controls_if" id="Otupb3MM4w4zdE?ta=WK">
              <mutation elseif="4"></mutation>
              <value name="IF0">
                <block type="logic_compare" id="8xVaDZiV4wdeyf23lFK`">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="+P8P|YFXIq{uLIS4~Z=n">
                      <field name="ATTR">val</field>
                      <field name="OID">alexa2.0.History.name</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="text" id="VvOVAYX{2{*C4xw:0D71">
                      <field name="TEXT">Kinderzimmer</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO0">
                <block type="control" id="qU=ZJYTaF[=;CC(lQksh">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">alexa2.0.Echo-Devices.G0911M06928523QQ.Commands.speak</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="get_value" id="IM)0GKG`M9*.3:Im=9Ox">
                      <field name="ATTR">val</field>
                      <field name="OID">javascript.0.Pflanzen-Status</field>
                    </block>
                  </value>
                </block>
              </statement>
              <value name="IF1">
                <block type="logic_compare" id="^om{~}752a$yNsU(+QW}">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="0TcB)g@H42SRqro#|_:z">
                      <field name="ATTR">val</field>
                      <field name="OID">alexa2.0.History.name</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="text" id="ekHu(C1aa_%8?BP^M#?2">
                      <field name="TEXT">Küche Dot</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO1">
                <block type="control" id="d+fX+}C!pyb/]V-%HgE|">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">alexa2.0.Echo-Devices.G0911M0894223KK4.Commands.speak</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="get_value" id="vM]2X%C_02nZDvqb}Dr4">
                      <field name="ATTR">val</field>
                      <field name="OID">javascript.0.Pflanzen-Status</field>
                    </block>
                  </value>
                </block>
              </statement>
              <value name="IF2">
                <block type="logic_compare" id="`tHQY-TF=./-^z6slgAo">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="-[lfQ[la@i?+=ypb#^+x">
                      <field name="ATTR">val</field>
                      <field name="OID">alexa2.0.History.name</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="text" id="Xh)Ft;c@A0$w~MJClqyH">
                      <field name="TEXT">Wohnzimmer</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO2">
                <block type="control" id="t9(-FW-AY-j+LVKczN]A">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">alexa2.0.Echo-Devices.G2A14S03022303KV.Commands.speak</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="get_value" id=")B:T~ieq!.o3+w98ktMG">
                      <field name="ATTR">val</field>
                      <field name="OID">javascript.0.Pflanzen-Status</field>
                    </block>
                  </value>
                </block>
              </statement>
              <value name="IF3">
                <block type="logic_compare" id="-Uz;OfbptvZek/8g%qs0">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="|D^)Z#a5jAhe]yN$C4(L">
                      <field name="ATTR">val</field>
                      <field name="OID">alexa2.0.History.name</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="text" id="/l44}Y3WrYk(r@Q7k}6=">
                      <field name="TEXT">Schlafzimmer Dot</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO3">
                <block type="control" id="NQ+fW{-qh$N(SWTjg+c_">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">alexa2.0.Echo-Devices.G090XG0793652Q07.Commands.speak</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="get_value" id="[dHCWe=YJ^YtvWPo`,al">
                      <field name="ATTR">val</field>
                      <field name="OID">javascript.0.Pflanzen-Status</field>
                    </block>
                  </value>
                </block>
              </statement>
              <value name="IF4">
                <block type="logic_compare" id="QvHl{D-`Lg^W~*95N{YH">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="get_value" id="$V[81$/w-1f!%S;^nj9F">
                      <field name="ATTR">val</field>
                      <field name="OID">alexa2.0.History.name</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="text" id="$yzo3h#IXx2yhb:@E3H!">
                      <field name="TEXT">Wc flex</field>
                    </block>
                  </value>
                </block>
              </value>
              <statement name="DO4">
                <block type="control" id=".iS-E2pNjMYWBZ-HAzy.">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                  <field name="OID">alexa2.0.Echo-Devices.G0014D0595040W18.Commands.speak</field>
                  <field name="WITH_DELAY">FALSE</field>
                  <value name="VALUE">
                    <block type="get_value" id=")F8C/[J(|euPFW8NS5?B">
                      <field name="ATTR">val</field>
                      <field name="OID">javascript.0.Pflanzen-Status</field>
                    </block>
                  </value>
                </block>
              </statement>
            </block>
          </statement>
        </block>
      </xml>
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      856
      Online

      32.0k
      Users

      80.5k
      Topics

      1.3m
      Posts

      1
      1
      209
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo