Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. [ Gelöst] MP3 klingel - Echo Ausgabe funktioniert nur selten

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.2k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    946

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

[ Gelöst] MP3 klingel - Echo Ausgabe funktioniert nur selten

Geplant Angeheftet Gesperrt Verschoben Skripten / Logik
14 Beiträge 2 Kommentatoren 729 Aufrufe 2 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • paul53P paul53

    @spitfire4all sagte: ich habe es jetzt einmal so probiert

    Den wichtigen Teil mit dem Timeout und dem Zähler nicht!

    Bild_2022-11-23_135953880.png

    S Offline
    S Offline
    Spitfire4all
    schrieb am zuletzt editiert von
    #5

    @paul53

    Bin mir nicht sicher, dass es so richtig ist?
    Mache sonst fast nie was mit Variablen und nur dann, wenn es easy ist :-)

    907e0b9a-bf1d-4d81-b210-a941a80da099-image.png

    Das würde doch nur den Nachrichtenteil betreffen und der funktioniert ja, oder?

    Gruß
    HDM

    paul53P 1 Antwort Letzte Antwort
    0
    • S Spitfire4all

      @paul53

      Bin mir nicht sicher, dass es so richtig ist?
      Mache sonst fast nie was mit Variablen und nur dann, wenn es easy ist :-)

      907e0b9a-bf1d-4d81-b210-a941a80da099-image.png

      Das würde doch nur den Nachrichtenteil betreffen und der funktioniert ja, oder?

      Gruß
      HDM

      paul53P Offline
      paul53P Offline
      paul53
      schrieb am zuletzt editiert von
      #6

      @spitfire4all sagte: dass es so richtig ist?

      Nein. Poste bitte den Blockly-Export in Code tags.

      Wie verhält sich "ESP_Klingel"? Beim Drücken true und beim Loslassen false?

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      S 1 Antwort Letzte Antwort
      0
      • paul53P paul53

        @spitfire4all sagte: dass es so richtig ist?

        Nein. Poste bitte den Blockly-Export in Code tags.

        Wie verhält sich "ESP_Klingel"? Beim Drücken true und beim Loslassen false?

        S Offline
        S Offline
        Spitfire4all
        schrieb am zuletzt editiert von
        #7

        @paul53
        Hier wird auf einen Datenpunkt reagiert den die ESP Klingel selber generiert hat.
        Es wird nur auf etwas reagiert wenn die Klingel gedrückt wird, der Datenpunkt also true ist.

        275c669e-9953-4d9a-8089-1f70962dc211-image.png

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="*ht6-CTIjwG),d*|M3,v">cnt</variable>
            <variable type="timeout" id="timeout">timeout</variable>
            <variable type="timeout" id="timeout1">timeout1</variable>
            <variable type="timeout" id="timeout5">timeout5</variable>
          </variables>
          <block type="comment" id="9|1+-.P0XO58Q}(N|:)l" x="38" y="-87">
            <field name="COMMENT">Hier hat es etwas gedauert bis die Asage im Büro kommt.</field>
            <next>
              <block type="comment" id="xCCEkvI//^H*DFanXQX[">
                <field name="COMMENT">Allgemein - Es klingelt </field>
                <next>
                  <block type="comment" id="USyd8{.fWWiL+6Y}i7b1">
                    <field name="COMMENT">Doku</field>
                    <comment pinned="false" h="110" w="766">Steuert einen selbst angelegten Datenpunkt über die Instanz Simple.APi.&#10;Kein MQTT !&#10;&#10;String IOBROKER_DP = "/set/javascript.0.ESP_Klingel?value=";&#10;&#10;Links zur Webseite und zu Github original script.&#10;&#10;https://forum.iobroker.net/topic/21975/fritzbox-tr064-esp-klingel-datenpunkt/9&#10;https://github.com/SBorg2014/ESP-Klingel&#10;&#10;https://www.amazon.de/XdreaM-PlayListPlayer/dp/B079NCQW4W&#10;https://forum.iobroker.net/topic/48920/ein-eigenen-mp3-song-%C3%BCber-alexa-wiedergeben/2&#10;&#10;</comment>
                    <next>
                      <block type="on_ext" id="V=X8j/cP;Y-,,[adJbUF">
                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                        <field name="CONDITION">true</field>
                        <field name="ACK_CONDITION"></field>
                        <value name="OID0">
                          <shadow type="field_oid" id="2hP2~Z-kkGhrtSItTNN-">
                            <field name="oid">javascript.0.ESP_Klingel</field>
                          </shadow>
                        </value>
                        <statement name="STATEMENT">
                          <block type="controls_if" id=")89r@b)GX]KEMi)rl)j.">
                            <value name="IF0">
                              <block type="on_source" id="F]Lpl$}rt=!ly2ak65a2">
                                <field name="ATTR">state.ts</field>
                              </block>
                            </value>
                            <statement name="DO0">
                              <block type="math_change" id="52QL6[ewfv%4HdIiH_Tz">
                                <field name="VAR" id="*ht6-CTIjwG),d*|M3,v">cnt</field>
                                <value name="DELTA">
                                  <shadow type="math_number" id="mVUK2BVUSeINZSFf=aa1">
                                    <field name="NUM">1</field>
                                  </shadow>
                                </value>
                                <next>
                                  <block type="controls_if" id="gO6KS9k`:z9%cc_in9[p">
                                    <value name="IF0">
                                      <block type="logic_compare" id="Bdhf/CpQ[AY87j((a]J=">
                                        <field name="OP">EQ</field>
                                        <value name="A">
                                          <block type="variables_get" id="O:rY6iN~}Gi;NE=q$]V7">
                                            <field name="VAR" id="*ht6-CTIjwG),d*|M3,v">cnt</field>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="math_number" id="agxa-7Ws/RzMbDYsGseA">
                                            <field name="NUM">2</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="timeouts_settimeout" id="{6-FPNpi2]}H`aHFufS8">
                                        <field name="NAME">timeout</field>
                                        <field name="DELAY">5</field>
                                        <field name="UNIT">sec</field>
                                        <statement name="STATEMENT">
                                          <block type="variables_set" id="EfU1[9l]0ir#9Oy!NIoV">
                                            <field name="VAR" id="*ht6-CTIjwG),d*|M3,v">cnt</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="HfD%Jpy_Id2i0GP8Yk-U">
                                                <field name="NUM">0</field>
                                              </block>
                                            </value>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="debug" id="*cU_g?iA|)fuqgZe@B[=">
                                        <field name="Severity">warn</field>
                                        <value name="TEXT">
                                          <shadow type="text" id="zT{a$$L|xB$8xzypv%.4">
                                            <field name="TEXT">info: Klingel wurde aktiviert</field>
                                          </shadow>
                                        </value>
                                        <next>
                                          <block type="telegram" id="~=NDBQiM,}$tF5cO^}-n">
                                            <field name="INSTANCE"></field>
                                            <field name="LOG"></field>
                                            <field name="SILENT">FALSE</field>
                                            <field name="PARSEMODE">default</field>
                                            <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                            <value name="MESSAGE">
                                              <shadow type="text" id="3Em9PCajD!PqpeN$L`e$">
                                                <field name="TEXT">info: Klingel wurde aktiviert</field>
                                              </shadow>
                                            </value>
                                            <next>
                                              <block type="timeouts_cleartimeout" id="la%]/f#+KC[3RU2.G4eZ">
                                                <field name="NAME">timeout1</field>
                                                <next>
                                                  <block type="timeouts_cleartimeout" id="9miNEQ37zr,^;Bk(gKwC">
                                                    <field name="NAME">timeout5</field>
                                                    <next>
                                                      <block type="comment" id="z$y7*P[e90KmsF-2.9d%">
                                                        <field name="COMMENT">Küche</field>
                                                        <next>
                                                          <block type="controls_if" id="-7Q_/S_ctD-tO+h#V+fC">
                                                            <value name="IF0">
                                                              <block type="logic_compare" id="%X#fc1Ay%b2e(wFgUtH[">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="X0aCexhw_PfS6cY{}5s{">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">javascript.0.ESP_Klingel</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id=".v,|;B]q3BxFI(@q/j(M">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="timeouts_settimeout" id="#eOf|7qL}bsu5om`nu(!">
                                                                <field name="NAME">timeout1</field>
                                                                <field name="DELAY">500</field>
                                                                <field name="UNIT">ms</field>
                                                                <statement name="STATEMENT">
                                                                  <block type="debug" id="S?lSzH+S;Rg7-qnywJan">
                                                                    <field name="Severity">warn</field>
                                                                    <value name="TEXT">
                                                                      <shadow type="text" id="8E:GqwL4+0Rz`=|MMagF">
                                                                        <field name="TEXT">test</field>
                                                                      </shadow>
                                                                      <block type="text" id="=R%@?@5:z}b.^9|q0ab@">
                                                                        <field name="TEXT">Ausgabe auf Küche / Eingang "textcommand" soll als nächstes gesetzt werden.</field>
                                                                      </block>
                                                                    </value>
                                                                    <next>
                                                                      <block type="control" id="FiTl7G[oApi~lR8nPLMB">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <comment pinned="false" h="72" w="689">Hier ist es etwas undeutlich. Ich steuere zwar den Echo aber, dessen Musik Ausgabe ist in der Alexa App auf den Sonos Lautsprecher um geleitet. Das sollte ich wohl ändern.&#10;&#10;Den Echo-Lautsprecher nun auf eigene Ausgabe gesetzt.&#10;Weiß auch nicht ob die Gruppe Küche etwas damit zu tun hat.&#10;</comment>
                                                                        <value name="VALUE">
                                                                          <block type="text" id="4(B,?m6Jt5Z;]=jF-mmI">
                                                                            <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="debug" id="a$ON/-xwk/|9^9IC-b?j">
                                                                            <field name="Severity">warn</field>
                                                                            <value name="TEXT">
                                                                              <shadow type="text">
                                                                                <field name="TEXT">test</field>
                                                                              </shadow>
                                                                              <block type="text_join" id="DRDAs)=LOx!sM]+xblRE">
                                                                                <mutation items="2"></mutation>
                                                                                <value name="ADD0">
                                                                                  <block type="text" id="S,tDC9P[AE_dbrX5}ctu">
                                                                                    <field name="TEXT">Wert: von "textCommand" ist: </field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD1">
                                                                                  <block type="get_value" id="mAO/|^LG|pxFE-wI^O0u">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="timeouts_wait" id="P0i?@3q3OFqKOb%EgzB+">
                                                                                <field name="DELAY">500</field>
                                                                                <field name="UNIT">ms</field>
                                                                                <next>
                                                                                  <block type="controls_if" id=".!@iMVKB8Ld!W6Y=/}Ee">
                                                                                    <value name="IF0">
                                                                                      <block type="logic_compare" id="e^bGl;.wPgs?3_bqT1s!">
                                                                                        <field name="OP">NEQ</field>
                                                                                        <value name="A">
                                                                                          <block type="get_value" id="4eH^$6/KMX.F$G}~2ypK">
                                                                                            <field name="ATTR">val</field>
                                                                                            <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <value name="B">
                                                                                          <block type="text" id="op771oM]Y}#2--Ety_P@">
                                                                                            <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                                          </block>
                                                                                        </value>
                                                                                      </block>
                                                                                    </value>
                                                                                    <statement name="DO0">
                                                                                      <block type="control" id="VFkK*58:b0X-x4Tn,8WB">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                        <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                        <comment pinned="false" h="72" w="689">Hier ist es etwas undeutlich. Ich steuere zwar den Echo aber, dessen Musik Ausgabe ist in der Alexa App auf den Sonos Lautsprecher um geleitet. Das sollte ich wohl ändern.&#10;&#10;Den Echo-Lautsprecher nun auf eigene Ausgabe gesetzt.&#10;Weiß auch nicht ob die Gruppe Küche etwas damit zu tun hat.&#10;</comment>
                                                                                        <value name="VALUE">
                                                                                          <block type="text" id="2}oH?3;]^ab8(dj90EPV">
                                                                                            <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="debug" id="#Iq2-`XiWD2@X:%+}86T">
                                                                                            <field name="Severity">warn</field>
                                                                                            <value name="TEXT">
                                                                                              <shadow type="text">
                                                                                                <field name="TEXT">test</field>
                                                                                              </shadow>
                                                                                              <block type="text_join" id="8x*nVc;wrV%caKG`u+m$">
                                                                                                <mutation items="2"></mutation>
                                                                                                <value name="ADD0">
                                                                                                  <block type="text" id=",FHb0i2,y/qJEL[R$JJ2">
                                                                                                    <field name="TEXT">Zweiter Versuch aktiviert - Wert: von "textCommand" ist: </field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="ADD1">
                                                                                                  <block type="get_value" id="koou;P@`G;L^IEn4F)e_">
                                                                                                    <field name="ATTR">val</field>
                                                                                                    <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </statement>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                                <next>
                                                                  <block type="timeouts_settimeout" id="Je,5V[TjdPye_~%f$PeQ">
                                                                    <field name="NAME">timeout5</field>
                                                                    <field name="DELAY">35</field>
                                                                    <field name="UNIT">sec</field>
                                                                    <statement name="STATEMENT">
                                                                      <block type="debug" id=")gI-vda`lOICP0k}V#x8" disabled="true">
                                                                        <field name="Severity">warn</field>
                                                                        <comment pinned="false" h="48" w="620">Unter Player Titel wird wohl nichts eingetragen.&#10;Deshalb Debug aus.</comment>
                                                                        <value name="TEXT">
                                                                          <shadow type="text">
                                                                            <field name="TEXT">test</field>
                                                                          </shadow>
                                                                          <block type="text_join" id="rd??N#D)X}(mnO5*zqvh">
                                                                            <mutation items="2"></mutation>
                                                                            <value name="ADD0">
                                                                              <block type="text" id="FXnsp1lQ(,R8(D|+HueA">
                                                                                <field name="TEXT">Der Titel Wert im Echo Eingang ist :  </field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="ADD1">
                                                                              <block type="get_value" id="=Wr($i?RxkeA37@|CI6K">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.currentTitle</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="debug" id="L-NNQ5V|%hBqmQb*f4WC">
                                                                            <field name="Severity">warn</field>
                                                                            <value name="TEXT">
                                                                              <shadow type="text" id="3!~2w1!bC%O:JCn`wwh(">
                                                                                <field name="TEXT">Script Ende</field>
                                                                              </shadow>
                                                                              <block type="text" id="x/uq}`iF.`_WQhl`S+)E">
                                                                                <field name="TEXT">Script "Es klingelt" wurde beendet.</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <next>
                                                              <block type="comment" id="tBS.;yo|-jia:wUTj;u;">
                                                                <field name="COMMENT">Echo Badezimmer</field>
                                                                <next>
                                                                  <block type="controls_if" id="g@o$8!I17SB=rzODQq,w">
                                                                    <value name="IF0">
                                                                      <block type="logic_compare" id="t!4?mdG+}1#e)w}1V-Wf">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="$puF7nMv_xSFB/~}D:Pj">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">javascript.0.ESP_Klingel</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="eZ;oLNq::lGG{07JksMX">
                                                                            <field name="BOOL">TRUE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="control" id="Q=f!6t(t#Xx+K`3alTzZ">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.volume</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="math_number" id="gsRx*}*Eq0Cz-!VqU*yo">
                                                                            <field name="NUM">50</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="control" id="51(VbCP5*;@bas$[Y!F,">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">alexa2.0.Echo-Devices.G2A1A60314660241.Commands.speak</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="text" id="=3u2f0})$H~A$6BFP(Hv">
                                                                                <field name="TEXT">Da hat jemand geklingelt</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="debug" id="7`P[%2c*i*{q[M8/vCIE">
                                                                                <field name="Severity">warn</field>
                                                                                <value name="TEXT">
                                                                                  <shadow type="text" id="mQYEu~vsP0J{nE7-0cy7">
                                                                                    <field name="TEXT">Sprachausgabe: Badezimmer es hat geklingelt.</field>
                                                                                  </shadow>
                                                                                </value>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="comment" id="WTRJs?|5vd|_c6b;IBaH">
                                                                        <field name="COMMENT">Echo Büro</field>
                                                                        <next>
                                                                          <block type="controls_if" id="Q*.%Mdz1o?Cf!:DBr#Q|">
                                                                            <value name="IF0">
                                                                              <block type="logic_compare" id="yiMA(Vg`Q3X4.Y;rFv(Q">
                                                                                <field name="OP">EQ</field>
                                                                                <value name="A">
                                                                                  <block type="get_value" id="$~GO]KTvud};#`t~t!mH">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">javascript.0.ESP_Klingel</field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="B">
                                                                                  <block type="logic_boolean" id="qPdA,IaY39qa1d*!)^tq">
                                                                                    <field name="BOOL">TRUE</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <statement name="DO0">
                                                                              <block type="control" id="Q-=FAS*?}Ae:_G6;0K,;" disabled="true">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.volume</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="math_number" id="++Pt}#%!yr6k;Pe6.(_4">
                                                                                    <field name="NUM">50</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="control" id="3cc4@^HymktoS`sIqEt)">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">alexa2.0.Echo-Devices.G090LF1072260PUJ.Commands.speak</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="text" id="i%A-Vuruk.s/BTs2]L{_">
                                                                                        <field name="TEXT">Da hat jemand geklingelt</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="debug" id="T={+z]]*g874b`1a$.4G">
                                                                                        <field name="Severity">warn</field>
                                                                                        <value name="TEXT">
                                                                                          <shadow type="text" id="T!Pd^A!NlGsXbdzxcJzK">
                                                                                            <field name="TEXT">Sprachausgabe: Büro es hat geklingelt</field>
                                                                                          </shadow>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="debug" id="Et]LzFP79Cxm]2-c=PZ1">
                                                                                            <field name="Severity">warn</field>
                                                                                            <value name="TEXT">
                                                                                              <shadow type="text">
                                                                                                <field name="TEXT">test</field>
                                                                                              </shadow>
                                                                                              <block type="text_join" id="O[Px{j,_Wi}Lh=1:{WkS">
                                                                                                <mutation items="2"></mutation>
                                                                                                <value name="ADD0">
                                                                                                  <block type="text" id="/i`{M,(m#N,$Y$fBg{qp">
                                                                                                    <field name="TEXT">Wert: Echo Büro Announcement Wert ist: </field>
                                                                                                  </block>
                                                                                                </value>
                                                                                                <value name="ADD1">
                                                                                                  <block type="get_value" id="8:%efADD?8|hac.HON:O">
                                                                                                    <field name="ATTR">val</field>
                                                                                                    <field name="OID">alexa2.0.Echo-Devices.G090LF1072260PUJ.Commands.speak</field>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </statement>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                          </block>
                        </statement>
                        <next>
                          <block type="comment" id="@Gc/]vyrExbb~9dlg2!]">
                            <field name="COMMENT">02.08.2020 </field>
                            <comment pinned="false" h="80" w="160">Funktioniert im Moment nicht da im Gerät der falsche MQTT Port eingegeben ist.&#10;</comment>
                            <next>
                              <block type="comment" id="zX2kNKceVK?.e)/RtFmI">
                                <field name="COMMENT">11.10.2020</field>
                                <comment pinned="false" h="80" w="160">Debug Text Anpassung. Doku hinzugefügt. &#10;</comment>
                                <next>
                                  <block type="comment" id="..nD-2;3(~3lIaEyi7RD">
                                    <field name="COMMENT">30.10.2020</field>
                                    <comment pinned="false" h="73" w="424">Alexa Musik Ausgabe läuft immer noch nicht zuverlässig. Versuche noch zusätzlich den Play Button zu drücken. Mal sehen ob das was hilft. Timeoutx auf 500 ms eingestellt.</comment>
                                    <next>
                                      <block type="comment" id="MiyrYdfMQBr)GPb!k,{B">
                                        <field name="COMMENT">06.11.2020</field>
                                        <comment pinned="false" h="103" w="683">Das mit dem Play Button hat nicht geklappt. Er spielt dann Irgendeine Musik.&#10;&#10;Script im Player abgefragt was gespielt wird. </comment>
                                        <next>
                                          <block type="comment" id="BOE{NU]S4V#gZ]`g4Pl+">
                                            <field name="COMMENT">08.11.2020</field>
                                            <comment pinned="false" h="99" w="707">"maxLength": "50", anstatt 10 bei den Objet eigenschaften eingetragen.&#10;Versuche die Phrase mit etwas anderem zu füttern&#10;</comment>
                                            <next>
                                              <block type="comment" id="rf:;|l,E+eBB/1Q-{2p!">
                                                <field name="COMMENT">09.11.2020</field>
                                                <comment pinned="false" h="90" w="609">Löschen des Phrase Wert verbessert und Ausgabe eingeleitet.</comment>
                                                <next>
                                                  <block type="comment" id="LE7yL;|=WnX{D0dR|7K[">
                                                    <field name="COMMENT">10.11.2020</field>
                                                    <comment pinned="false" h="80" w="160">ich habe gesehen das die Lautstärke eingestellt wurde eventuell läuft dann das Script zu schnell durch deshalb kurze verzögerung eingebaut.&#10;</comment>
                                                    <next>
                                                      <block type="comment" id=":ip#I$=@PbfNjO!I[]G+">
                                                        <field name="COMMENT">20.11.2020</field>
                                                        <comment pinned="false" h="126" w="645">Timing überprüft. The Final Countdown hinzugefügt</comment>
                                                        <next>
                                                          <block type="comment" id="Xl#1|im25s$IC]#H|f~r">
                                                            <field name="COMMENT">27.11.2020</field>
                                                            <comment pinned="false" h="80" w="160">Das script funktioniert mit in der Küche. Ausgabe im Büro ist noch zu testen. river flows in you eingestellt&#10;</comment>
                                                            <next>
                                                              <block type="comment" id="b6!nm3X2XZ*I{N4*3z1N">
                                                                <field name="COMMENT">04.12.2020</field>
                                                                <comment pinned="false" h="80" w="160">Script läuft soweit.&#10;Musik Stop nach 2 Minuten.</comment>
                                                                <next>
                                                                  <block type="comment" id="KvX!cL{^;k_i4$uufcnV">
                                                                    <field name="COMMENT">18.12.2020</field>
                                                                    <comment pinned="false" h="90" w="527">Laustärke erhöht da meine Frau unter der Dunstabzugshabe nichts hört.&#10;&#10;Logs sind in Ordnung aber teilweise wird nichts abgespielt wie immer.&#10;Das Script hat aber sonst gut Funktioniert.&#10;</comment>
                                                                    <next>
                                                                      <block type="comment" id="2~bb/W!a4H)b,E@3}Pds">
                                                                        <field name="COMMENT">30.12.2020</field>
                                                                        <comment pinned="false" h="80" w="160">Zeit wie lange das Sound File abgespielt wird auf 30 sekunden reduziert. Latstärke Küche von Zahl 50 auf Text 50 geändert.&#10;</comment>
                                                                        <next>
                                                                          <block type="comment" id="+iYLMRMe$gNR]GvTs{!r">
                                                                            <field name="COMMENT">18.12.2021</field>
                                                                            <comment pinned="false" h="80" w="160">Anpassung auf den neuen Echo im Badezimmer&#10;</comment>
                                                                            <next>
                                                                              <block type="comment" id="r]p{RY~k8/*s7!;@0zby">
                                                                                <field name="COMMENT">10.10.2022</field>
                                                                                <comment pinned="false" h="80" w="160">Das mit dem Stoppen nach 30 Sekunden hat nicht geklappt. Änderung über den Sonos Adapter</comment>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </xml>
        
        
        
        paul53P 2 Antworten Letzte Antwort
        0
        • S Spitfire4all

          @paul53
          Hier wird auf einen Datenpunkt reagiert den die ESP Klingel selber generiert hat.
          Es wird nur auf etwas reagiert wenn die Klingel gedrückt wird, der Datenpunkt also true ist.

          275c669e-9953-4d9a-8089-1f70962dc211-image.png

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable id="*ht6-CTIjwG),d*|M3,v">cnt</variable>
              <variable type="timeout" id="timeout">timeout</variable>
              <variable type="timeout" id="timeout1">timeout1</variable>
              <variable type="timeout" id="timeout5">timeout5</variable>
            </variables>
            <block type="comment" id="9|1+-.P0XO58Q}(N|:)l" x="38" y="-87">
              <field name="COMMENT">Hier hat es etwas gedauert bis die Asage im Büro kommt.</field>
              <next>
                <block type="comment" id="xCCEkvI//^H*DFanXQX[">
                  <field name="COMMENT">Allgemein - Es klingelt </field>
                  <next>
                    <block type="comment" id="USyd8{.fWWiL+6Y}i7b1">
                      <field name="COMMENT">Doku</field>
                      <comment pinned="false" h="110" w="766">Steuert einen selbst angelegten Datenpunkt über die Instanz Simple.APi.&#10;Kein MQTT !&#10;&#10;String IOBROKER_DP = "/set/javascript.0.ESP_Klingel?value=";&#10;&#10;Links zur Webseite und zu Github original script.&#10;&#10;https://forum.iobroker.net/topic/21975/fritzbox-tr064-esp-klingel-datenpunkt/9&#10;https://github.com/SBorg2014/ESP-Klingel&#10;&#10;https://www.amazon.de/XdreaM-PlayListPlayer/dp/B079NCQW4W&#10;https://forum.iobroker.net/topic/48920/ein-eigenen-mp3-song-%C3%BCber-alexa-wiedergeben/2&#10;&#10;</comment>
                      <next>
                        <block type="on_ext" id="V=X8j/cP;Y-,,[adJbUF">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                          <field name="CONDITION">true</field>
                          <field name="ACK_CONDITION"></field>
                          <value name="OID0">
                            <shadow type="field_oid" id="2hP2~Z-kkGhrtSItTNN-">
                              <field name="oid">javascript.0.ESP_Klingel</field>
                            </shadow>
                          </value>
                          <statement name="STATEMENT">
                            <block type="controls_if" id=")89r@b)GX]KEMi)rl)j.">
                              <value name="IF0">
                                <block type="on_source" id="F]Lpl$}rt=!ly2ak65a2">
                                  <field name="ATTR">state.ts</field>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="math_change" id="52QL6[ewfv%4HdIiH_Tz">
                                  <field name="VAR" id="*ht6-CTIjwG),d*|M3,v">cnt</field>
                                  <value name="DELTA">
                                    <shadow type="math_number" id="mVUK2BVUSeINZSFf=aa1">
                                      <field name="NUM">1</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="controls_if" id="gO6KS9k`:z9%cc_in9[p">
                                      <value name="IF0">
                                        <block type="logic_compare" id="Bdhf/CpQ[AY87j((a]J=">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="variables_get" id="O:rY6iN~}Gi;NE=q$]V7">
                                              <field name="VAR" id="*ht6-CTIjwG),d*|M3,v">cnt</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="agxa-7Ws/RzMbDYsGseA">
                                              <field name="NUM">2</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="timeouts_settimeout" id="{6-FPNpi2]}H`aHFufS8">
                                          <field name="NAME">timeout</field>
                                          <field name="DELAY">5</field>
                                          <field name="UNIT">sec</field>
                                          <statement name="STATEMENT">
                                            <block type="variables_set" id="EfU1[9l]0ir#9Oy!NIoV">
                                              <field name="VAR" id="*ht6-CTIjwG),d*|M3,v">cnt</field>
                                              <value name="VALUE">
                                                <block type="math_number" id="HfD%Jpy_Id2i0GP8Yk-U">
                                                  <field name="NUM">0</field>
                                                </block>
                                              </value>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="debug" id="*cU_g?iA|)fuqgZe@B[=">
                                          <field name="Severity">warn</field>
                                          <value name="TEXT">
                                            <shadow type="text" id="zT{a$$L|xB$8xzypv%.4">
                                              <field name="TEXT">info: Klingel wurde aktiviert</field>
                                            </shadow>
                                          </value>
                                          <next>
                                            <block type="telegram" id="~=NDBQiM,}$tF5cO^}-n">
                                              <field name="INSTANCE"></field>
                                              <field name="LOG"></field>
                                              <field name="SILENT">FALSE</field>
                                              <field name="PARSEMODE">default</field>
                                              <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                              <value name="MESSAGE">
                                                <shadow type="text" id="3Em9PCajD!PqpeN$L`e$">
                                                  <field name="TEXT">info: Klingel wurde aktiviert</field>
                                                </shadow>
                                              </value>
                                              <next>
                                                <block type="timeouts_cleartimeout" id="la%]/f#+KC[3RU2.G4eZ">
                                                  <field name="NAME">timeout1</field>
                                                  <next>
                                                    <block type="timeouts_cleartimeout" id="9miNEQ37zr,^;Bk(gKwC">
                                                      <field name="NAME">timeout5</field>
                                                      <next>
                                                        <block type="comment" id="z$y7*P[e90KmsF-2.9d%">
                                                          <field name="COMMENT">Küche</field>
                                                          <next>
                                                            <block type="controls_if" id="-7Q_/S_ctD-tO+h#V+fC">
                                                              <value name="IF0">
                                                                <block type="logic_compare" id="%X#fc1Ay%b2e(wFgUtH[">
                                                                  <field name="OP">EQ</field>
                                                                  <value name="A">
                                                                    <block type="get_value" id="X0aCexhw_PfS6cY{}5s{">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">javascript.0.ESP_Klingel</field>
                                                                    </block>
                                                                  </value>
                                                                  <value name="B">
                                                                    <block type="logic_boolean" id=".v,|;B]q3BxFI(@q/j(M">
                                                                      <field name="BOOL">TRUE</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <statement name="DO0">
                                                                <block type="timeouts_settimeout" id="#eOf|7qL}bsu5om`nu(!">
                                                                  <field name="NAME">timeout1</field>
                                                                  <field name="DELAY">500</field>
                                                                  <field name="UNIT">ms</field>
                                                                  <statement name="STATEMENT">
                                                                    <block type="debug" id="S?lSzH+S;Rg7-qnywJan">
                                                                      <field name="Severity">warn</field>
                                                                      <value name="TEXT">
                                                                        <shadow type="text" id="8E:GqwL4+0Rz`=|MMagF">
                                                                          <field name="TEXT">test</field>
                                                                        </shadow>
                                                                        <block type="text" id="=R%@?@5:z}b.^9|q0ab@">
                                                                          <field name="TEXT">Ausgabe auf Küche / Eingang "textcommand" soll als nächstes gesetzt werden.</field>
                                                                        </block>
                                                                      </value>
                                                                      <next>
                                                                        <block type="control" id="FiTl7G[oApi~lR8nPLMB">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <comment pinned="false" h="72" w="689">Hier ist es etwas undeutlich. Ich steuere zwar den Echo aber, dessen Musik Ausgabe ist in der Alexa App auf den Sonos Lautsprecher um geleitet. Das sollte ich wohl ändern.&#10;&#10;Den Echo-Lautsprecher nun auf eigene Ausgabe gesetzt.&#10;Weiß auch nicht ob die Gruppe Küche etwas damit zu tun hat.&#10;</comment>
                                                                          <value name="VALUE">
                                                                            <block type="text" id="4(B,?m6Jt5Z;]=jF-mmI">
                                                                              <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="a$ON/-xwk/|9^9IC-b?j">
                                                                              <field name="Severity">warn</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text">
                                                                                  <field name="TEXT">test</field>
                                                                                </shadow>
                                                                                <block type="text_join" id="DRDAs)=LOx!sM]+xblRE">
                                                                                  <mutation items="2"></mutation>
                                                                                  <value name="ADD0">
                                                                                    <block type="text" id="S,tDC9P[AE_dbrX5}ctu">
                                                                                      <field name="TEXT">Wert: von "textCommand" ist: </field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="ADD1">
                                                                                    <block type="get_value" id="mAO/|^LG|pxFE-wI^O0u">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="timeouts_wait" id="P0i?@3q3OFqKOb%EgzB+">
                                                                                  <field name="DELAY">500</field>
                                                                                  <field name="UNIT">ms</field>
                                                                                  <next>
                                                                                    <block type="controls_if" id=".!@iMVKB8Ld!W6Y=/}Ee">
                                                                                      <value name="IF0">
                                                                                        <block type="logic_compare" id="e^bGl;.wPgs?3_bqT1s!">
                                                                                          <field name="OP">NEQ</field>
                                                                                          <value name="A">
                                                                                            <block type="get_value" id="4eH^$6/KMX.F$G}~2ypK">
                                                                                              <field name="ATTR">val</field>
                                                                                              <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <value name="B">
                                                                                            <block type="text" id="op771oM]Y}#2--Ety_P@">
                                                                                              <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                                            </block>
                                                                                          </value>
                                                                                        </block>
                                                                                      </value>
                                                                                      <statement name="DO0">
                                                                                        <block type="control" id="VFkK*58:b0X-x4Tn,8WB">
                                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                          <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                                          <comment pinned="false" h="72" w="689">Hier ist es etwas undeutlich. Ich steuere zwar den Echo aber, dessen Musik Ausgabe ist in der Alexa App auf den Sonos Lautsprecher um geleitet. Das sollte ich wohl ändern.&#10;&#10;Den Echo-Lautsprecher nun auf eigene Ausgabe gesetzt.&#10;Weiß auch nicht ob die Gruppe Küche etwas damit zu tun hat.&#10;</comment>
                                                                                          <value name="VALUE">
                                                                                            <block type="text" id="2}oH?3;]^ab8(dj90EPV">
                                                                                              <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                                            </block>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="debug" id="#Iq2-`XiWD2@X:%+}86T">
                                                                                              <field name="Severity">warn</field>
                                                                                              <value name="TEXT">
                                                                                                <shadow type="text">
                                                                                                  <field name="TEXT">test</field>
                                                                                                </shadow>
                                                                                                <block type="text_join" id="8x*nVc;wrV%caKG`u+m$">
                                                                                                  <mutation items="2"></mutation>
                                                                                                  <value name="ADD0">
                                                                                                    <block type="text" id=",FHb0i2,y/qJEL[R$JJ2">
                                                                                                      <field name="TEXT">Zweiter Versuch aktiviert - Wert: von "textCommand" ist: </field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="ADD1">
                                                                                                    <block type="get_value" id="koou;P@`G;L^IEn4F)e_">
                                                                                                      <field name="ATTR">val</field>
                                                                                                      <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </statement>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </statement>
                                                                  <next>
                                                                    <block type="timeouts_settimeout" id="Je,5V[TjdPye_~%f$PeQ">
                                                                      <field name="NAME">timeout5</field>
                                                                      <field name="DELAY">35</field>
                                                                      <field name="UNIT">sec</field>
                                                                      <statement name="STATEMENT">
                                                                        <block type="debug" id=")gI-vda`lOICP0k}V#x8" disabled="true">
                                                                          <field name="Severity">warn</field>
                                                                          <comment pinned="false" h="48" w="620">Unter Player Titel wird wohl nichts eingetragen.&#10;Deshalb Debug aus.</comment>
                                                                          <value name="TEXT">
                                                                            <shadow type="text">
                                                                              <field name="TEXT">test</field>
                                                                            </shadow>
                                                                            <block type="text_join" id="rd??N#D)X}(mnO5*zqvh">
                                                                              <mutation items="2"></mutation>
                                                                              <value name="ADD0">
                                                                                <block type="text" id="FXnsp1lQ(,R8(D|+HueA">
                                                                                  <field name="TEXT">Der Titel Wert im Echo Eingang ist :  </field>
                                                                                </block>
                                                                              </value>
                                                                              <value name="ADD1">
                                                                                <block type="get_value" id="=Wr($i?RxkeA37@|CI6K">
                                                                                  <field name="ATTR">val</field>
                                                                                  <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.currentTitle</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="debug" id="L-NNQ5V|%hBqmQb*f4WC">
                                                                              <field name="Severity">warn</field>
                                                                              <value name="TEXT">
                                                                                <shadow type="text" id="3!~2w1!bC%O:JCn`wwh(">
                                                                                  <field name="TEXT">Script Ende</field>
                                                                                </shadow>
                                                                                <block type="text" id="x/uq}`iF.`_WQhl`S+)E">
                                                                                  <field name="TEXT">Script "Es klingelt" wurde beendet.</field>
                                                                                </block>
                                                                              </value>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </statement>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </statement>
                                                              <next>
                                                                <block type="comment" id="tBS.;yo|-jia:wUTj;u;">
                                                                  <field name="COMMENT">Echo Badezimmer</field>
                                                                  <next>
                                                                    <block type="controls_if" id="g@o$8!I17SB=rzODQq,w">
                                                                      <value name="IF0">
                                                                        <block type="logic_compare" id="t!4?mdG+}1#e)w}1V-Wf">
                                                                          <field name="OP">EQ</field>
                                                                          <value name="A">
                                                                            <block type="get_value" id="$puF7nMv_xSFB/~}D:Pj">
                                                                              <field name="ATTR">val</field>
                                                                              <field name="OID">javascript.0.ESP_Klingel</field>
                                                                            </block>
                                                                          </value>
                                                                          <value name="B">
                                                                            <block type="logic_boolean" id="eZ;oLNq::lGG{07JksMX">
                                                                              <field name="BOOL">TRUE</field>
                                                                            </block>
                                                                          </value>
                                                                        </block>
                                                                      </value>
                                                                      <statement name="DO0">
                                                                        <block type="control" id="Q=f!6t(t#Xx+K`3alTzZ">
                                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                          <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.volume</field>
                                                                          <field name="WITH_DELAY">FALSE</field>
                                                                          <value name="VALUE">
                                                                            <block type="math_number" id="gsRx*}*Eq0Cz-!VqU*yo">
                                                                              <field name="NUM">50</field>
                                                                            </block>
                                                                          </value>
                                                                          <next>
                                                                            <block type="control" id="51(VbCP5*;@bas$[Y!F,">
                                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                              <field name="OID">alexa2.0.Echo-Devices.G2A1A60314660241.Commands.speak</field>
                                                                              <field name="WITH_DELAY">FALSE</field>
                                                                              <value name="VALUE">
                                                                                <block type="text" id="=3u2f0})$H~A$6BFP(Hv">
                                                                                  <field name="TEXT">Da hat jemand geklingelt</field>
                                                                                </block>
                                                                              </value>
                                                                              <next>
                                                                                <block type="debug" id="7`P[%2c*i*{q[M8/vCIE">
                                                                                  <field name="Severity">warn</field>
                                                                                  <value name="TEXT">
                                                                                    <shadow type="text" id="mQYEu~vsP0J{nE7-0cy7">
                                                                                      <field name="TEXT">Sprachausgabe: Badezimmer es hat geklingelt.</field>
                                                                                    </shadow>
                                                                                  </value>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </statement>
                                                                      <next>
                                                                        <block type="comment" id="WTRJs?|5vd|_c6b;IBaH">
                                                                          <field name="COMMENT">Echo Büro</field>
                                                                          <next>
                                                                            <block type="controls_if" id="Q*.%Mdz1o?Cf!:DBr#Q|">
                                                                              <value name="IF0">
                                                                                <block type="logic_compare" id="yiMA(Vg`Q3X4.Y;rFv(Q">
                                                                                  <field name="OP">EQ</field>
                                                                                  <value name="A">
                                                                                    <block type="get_value" id="$~GO]KTvud};#`t~t!mH">
                                                                                      <field name="ATTR">val</field>
                                                                                      <field name="OID">javascript.0.ESP_Klingel</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <value name="B">
                                                                                    <block type="logic_boolean" id="qPdA,IaY39qa1d*!)^tq">
                                                                                      <field name="BOOL">TRUE</field>
                                                                                    </block>
                                                                                  </value>
                                                                                </block>
                                                                              </value>
                                                                              <statement name="DO0">
                                                                                <block type="control" id="Q-=FAS*?}Ae:_G6;0K,;" disabled="true">
                                                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                  <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.volume</field>
                                                                                  <field name="WITH_DELAY">FALSE</field>
                                                                                  <value name="VALUE">
                                                                                    <block type="math_number" id="++Pt}#%!yr6k;Pe6.(_4">
                                                                                      <field name="NUM">50</field>
                                                                                    </block>
                                                                                  </value>
                                                                                  <next>
                                                                                    <block type="control" id="3cc4@^HymktoS`sIqEt)">
                                                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                      <field name="OID">alexa2.0.Echo-Devices.G090LF1072260PUJ.Commands.speak</field>
                                                                                      <field name="WITH_DELAY">FALSE</field>
                                                                                      <value name="VALUE">
                                                                                        <block type="text" id="i%A-Vuruk.s/BTs2]L{_">
                                                                                          <field name="TEXT">Da hat jemand geklingelt</field>
                                                                                        </block>
                                                                                      </value>
                                                                                      <next>
                                                                                        <block type="debug" id="T={+z]]*g874b`1a$.4G">
                                                                                          <field name="Severity">warn</field>
                                                                                          <value name="TEXT">
                                                                                            <shadow type="text" id="T!Pd^A!NlGsXbdzxcJzK">
                                                                                              <field name="TEXT">Sprachausgabe: Büro es hat geklingelt</field>
                                                                                            </shadow>
                                                                                          </value>
                                                                                          <next>
                                                                                            <block type="debug" id="Et]LzFP79Cxm]2-c=PZ1">
                                                                                              <field name="Severity">warn</field>
                                                                                              <value name="TEXT">
                                                                                                <shadow type="text">
                                                                                                  <field name="TEXT">test</field>
                                                                                                </shadow>
                                                                                                <block type="text_join" id="O[Px{j,_Wi}Lh=1:{WkS">
                                                                                                  <mutation items="2"></mutation>
                                                                                                  <value name="ADD0">
                                                                                                    <block type="text" id="/i`{M,(m#N,$Y$fBg{qp">
                                                                                                      <field name="TEXT">Wert: Echo Büro Announcement Wert ist: </field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                  <value name="ADD1">
                                                                                                    <block type="get_value" id="8:%efADD?8|hac.HON:O">
                                                                                                      <field name="ATTR">val</field>
                                                                                                      <field name="OID">alexa2.0.Echo-Devices.G090LF1072260PUJ.Commands.speak</field>
                                                                                                    </block>
                                                                                                  </value>
                                                                                                </block>
                                                                                              </value>
                                                                                            </block>
                                                                                          </next>
                                                                                        </block>
                                                                                      </next>
                                                                                    </block>
                                                                                  </next>
                                                                                </block>
                                                                              </statement>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </statement>
                          <next>
                            <block type="comment" id="@Gc/]vyrExbb~9dlg2!]">
                              <field name="COMMENT">02.08.2020 </field>
                              <comment pinned="false" h="80" w="160">Funktioniert im Moment nicht da im Gerät der falsche MQTT Port eingegeben ist.&#10;</comment>
                              <next>
                                <block type="comment" id="zX2kNKceVK?.e)/RtFmI">
                                  <field name="COMMENT">11.10.2020</field>
                                  <comment pinned="false" h="80" w="160">Debug Text Anpassung. Doku hinzugefügt. &#10;</comment>
                                  <next>
                                    <block type="comment" id="..nD-2;3(~3lIaEyi7RD">
                                      <field name="COMMENT">30.10.2020</field>
                                      <comment pinned="false" h="73" w="424">Alexa Musik Ausgabe läuft immer noch nicht zuverlässig. Versuche noch zusätzlich den Play Button zu drücken. Mal sehen ob das was hilft. Timeoutx auf 500 ms eingestellt.</comment>
                                      <next>
                                        <block type="comment" id="MiyrYdfMQBr)GPb!k,{B">
                                          <field name="COMMENT">06.11.2020</field>
                                          <comment pinned="false" h="103" w="683">Das mit dem Play Button hat nicht geklappt. Er spielt dann Irgendeine Musik.&#10;&#10;Script im Player abgefragt was gespielt wird. </comment>
                                          <next>
                                            <block type="comment" id="BOE{NU]S4V#gZ]`g4Pl+">
                                              <field name="COMMENT">08.11.2020</field>
                                              <comment pinned="false" h="99" w="707">"maxLength": "50", anstatt 10 bei den Objet eigenschaften eingetragen.&#10;Versuche die Phrase mit etwas anderem zu füttern&#10;</comment>
                                              <next>
                                                <block type="comment" id="rf:;|l,E+eBB/1Q-{2p!">
                                                  <field name="COMMENT">09.11.2020</field>
                                                  <comment pinned="false" h="90" w="609">Löschen des Phrase Wert verbessert und Ausgabe eingeleitet.</comment>
                                                  <next>
                                                    <block type="comment" id="LE7yL;|=WnX{D0dR|7K[">
                                                      <field name="COMMENT">10.11.2020</field>
                                                      <comment pinned="false" h="80" w="160">ich habe gesehen das die Lautstärke eingestellt wurde eventuell läuft dann das Script zu schnell durch deshalb kurze verzögerung eingebaut.&#10;</comment>
                                                      <next>
                                                        <block type="comment" id=":ip#I$=@PbfNjO!I[]G+">
                                                          <field name="COMMENT">20.11.2020</field>
                                                          <comment pinned="false" h="126" w="645">Timing überprüft. The Final Countdown hinzugefügt</comment>
                                                          <next>
                                                            <block type="comment" id="Xl#1|im25s$IC]#H|f~r">
                                                              <field name="COMMENT">27.11.2020</field>
                                                              <comment pinned="false" h="80" w="160">Das script funktioniert mit in der Küche. Ausgabe im Büro ist noch zu testen. river flows in you eingestellt&#10;</comment>
                                                              <next>
                                                                <block type="comment" id="b6!nm3X2XZ*I{N4*3z1N">
                                                                  <field name="COMMENT">04.12.2020</field>
                                                                  <comment pinned="false" h="80" w="160">Script läuft soweit.&#10;Musik Stop nach 2 Minuten.</comment>
                                                                  <next>
                                                                    <block type="comment" id="KvX!cL{^;k_i4$uufcnV">
                                                                      <field name="COMMENT">18.12.2020</field>
                                                                      <comment pinned="false" h="90" w="527">Laustärke erhöht da meine Frau unter der Dunstabzugshabe nichts hört.&#10;&#10;Logs sind in Ordnung aber teilweise wird nichts abgespielt wie immer.&#10;Das Script hat aber sonst gut Funktioniert.&#10;</comment>
                                                                      <next>
                                                                        <block type="comment" id="2~bb/W!a4H)b,E@3}Pds">
                                                                          <field name="COMMENT">30.12.2020</field>
                                                                          <comment pinned="false" h="80" w="160">Zeit wie lange das Sound File abgespielt wird auf 30 sekunden reduziert. Latstärke Küche von Zahl 50 auf Text 50 geändert.&#10;</comment>
                                                                          <next>
                                                                            <block type="comment" id="+iYLMRMe$gNR]GvTs{!r">
                                                                              <field name="COMMENT">18.12.2021</field>
                                                                              <comment pinned="false" h="80" w="160">Anpassung auf den neuen Echo im Badezimmer&#10;</comment>
                                                                              <next>
                                                                                <block type="comment" id="r]p{RY~k8/*s7!;@0zby">
                                                                                  <field name="COMMENT">10.10.2022</field>
                                                                                  <comment pinned="false" h="80" w="160">Das mit dem Stoppen nach 30 Sekunden hat nicht geklappt. Änderung über den Sonos Adapter</comment>
                                                                                </block>
                                                                              </next>
                                                                            </block>
                                                                          </next>
                                                                        </block>
                                                                      </next>
                                                                    </block>
                                                                  </next>
                                                                </block>
                                                              </next>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </xml>
          
          
          
          paul53P Offline
          paul53P Offline
          paul53
          schrieb am zuletzt editiert von
          #8

          @spitfire4all sagte: der Datenpunkt also true ist.

          Immer oder nur, wenn gedrückt wird?

          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

          S 1 Antwort Letzte Antwort
          0
          • S Spitfire4all

            @paul53
            Hier wird auf einen Datenpunkt reagiert den die ESP Klingel selber generiert hat.
            Es wird nur auf etwas reagiert wenn die Klingel gedrückt wird, der Datenpunkt also true ist.

            275c669e-9953-4d9a-8089-1f70962dc211-image.png

            <xml xmlns="https://developers.google.com/blockly/xml">
              <variables>
                <variable id="*ht6-CTIjwG),d*|M3,v">cnt</variable>
                <variable type="timeout" id="timeout">timeout</variable>
                <variable type="timeout" id="timeout1">timeout1</variable>
                <variable type="timeout" id="timeout5">timeout5</variable>
              </variables>
              <block type="comment" id="9|1+-.P0XO58Q}(N|:)l" x="38" y="-87">
                <field name="COMMENT">Hier hat es etwas gedauert bis die Asage im Büro kommt.</field>
                <next>
                  <block type="comment" id="xCCEkvI//^H*DFanXQX[">
                    <field name="COMMENT">Allgemein - Es klingelt </field>
                    <next>
                      <block type="comment" id="USyd8{.fWWiL+6Y}i7b1">
                        <field name="COMMENT">Doku</field>
                        <comment pinned="false" h="110" w="766">Steuert einen selbst angelegten Datenpunkt über die Instanz Simple.APi.&#10;Kein MQTT !&#10;&#10;String IOBROKER_DP = "/set/javascript.0.ESP_Klingel?value=";&#10;&#10;Links zur Webseite und zu Github original script.&#10;&#10;https://forum.iobroker.net/topic/21975/fritzbox-tr064-esp-klingel-datenpunkt/9&#10;https://github.com/SBorg2014/ESP-Klingel&#10;&#10;https://www.amazon.de/XdreaM-PlayListPlayer/dp/B079NCQW4W&#10;https://forum.iobroker.net/topic/48920/ein-eigenen-mp3-song-%C3%BCber-alexa-wiedergeben/2&#10;&#10;</comment>
                        <next>
                          <block type="on_ext" id="V=X8j/cP;Y-,,[adJbUF">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                            <field name="CONDITION">true</field>
                            <field name="ACK_CONDITION"></field>
                            <value name="OID0">
                              <shadow type="field_oid" id="2hP2~Z-kkGhrtSItTNN-">
                                <field name="oid">javascript.0.ESP_Klingel</field>
                              </shadow>
                            </value>
                            <statement name="STATEMENT">
                              <block type="controls_if" id=")89r@b)GX]KEMi)rl)j.">
                                <value name="IF0">
                                  <block type="on_source" id="F]Lpl$}rt=!ly2ak65a2">
                                    <field name="ATTR">state.ts</field>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="math_change" id="52QL6[ewfv%4HdIiH_Tz">
                                    <field name="VAR" id="*ht6-CTIjwG),d*|M3,v">cnt</field>
                                    <value name="DELTA">
                                      <shadow type="math_number" id="mVUK2BVUSeINZSFf=aa1">
                                        <field name="NUM">1</field>
                                      </shadow>
                                    </value>
                                    <next>
                                      <block type="controls_if" id="gO6KS9k`:z9%cc_in9[p">
                                        <value name="IF0">
                                          <block type="logic_compare" id="Bdhf/CpQ[AY87j((a]J=">
                                            <field name="OP">EQ</field>
                                            <value name="A">
                                              <block type="variables_get" id="O:rY6iN~}Gi;NE=q$]V7">
                                                <field name="VAR" id="*ht6-CTIjwG),d*|M3,v">cnt</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="math_number" id="agxa-7Ws/RzMbDYsGseA">
                                                <field name="NUM">2</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="timeouts_settimeout" id="{6-FPNpi2]}H`aHFufS8">
                                            <field name="NAME">timeout</field>
                                            <field name="DELAY">5</field>
                                            <field name="UNIT">sec</field>
                                            <statement name="STATEMENT">
                                              <block type="variables_set" id="EfU1[9l]0ir#9Oy!NIoV">
                                                <field name="VAR" id="*ht6-CTIjwG),d*|M3,v">cnt</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="HfD%Jpy_Id2i0GP8Yk-U">
                                                    <field name="NUM">0</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                        <next>
                                          <block type="debug" id="*cU_g?iA|)fuqgZe@B[=">
                                            <field name="Severity">warn</field>
                                            <value name="TEXT">
                                              <shadow type="text" id="zT{a$$L|xB$8xzypv%.4">
                                                <field name="TEXT">info: Klingel wurde aktiviert</field>
                                              </shadow>
                                            </value>
                                            <next>
                                              <block type="telegram" id="~=NDBQiM,}$tF5cO^}-n">
                                                <field name="INSTANCE"></field>
                                                <field name="LOG"></field>
                                                <field name="SILENT">FALSE</field>
                                                <field name="PARSEMODE">default</field>
                                                <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                                <value name="MESSAGE">
                                                  <shadow type="text" id="3Em9PCajD!PqpeN$L`e$">
                                                    <field name="TEXT">info: Klingel wurde aktiviert</field>
                                                  </shadow>
                                                </value>
                                                <next>
                                                  <block type="timeouts_cleartimeout" id="la%]/f#+KC[3RU2.G4eZ">
                                                    <field name="NAME">timeout1</field>
                                                    <next>
                                                      <block type="timeouts_cleartimeout" id="9miNEQ37zr,^;Bk(gKwC">
                                                        <field name="NAME">timeout5</field>
                                                        <next>
                                                          <block type="comment" id="z$y7*P[e90KmsF-2.9d%">
                                                            <field name="COMMENT">Küche</field>
                                                            <next>
                                                              <block type="controls_if" id="-7Q_/S_ctD-tO+h#V+fC">
                                                                <value name="IF0">
                                                                  <block type="logic_compare" id="%X#fc1Ay%b2e(wFgUtH[">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="X0aCexhw_PfS6cY{}5s{">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">javascript.0.ESP_Klingel</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_boolean" id=".v,|;B]q3BxFI(@q/j(M">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO0">
                                                                  <block type="timeouts_settimeout" id="#eOf|7qL}bsu5om`nu(!">
                                                                    <field name="NAME">timeout1</field>
                                                                    <field name="DELAY">500</field>
                                                                    <field name="UNIT">ms</field>
                                                                    <statement name="STATEMENT">
                                                                      <block type="debug" id="S?lSzH+S;Rg7-qnywJan">
                                                                        <field name="Severity">warn</field>
                                                                        <value name="TEXT">
                                                                          <shadow type="text" id="8E:GqwL4+0Rz`=|MMagF">
                                                                            <field name="TEXT">test</field>
                                                                          </shadow>
                                                                          <block type="text" id="=R%@?@5:z}b.^9|q0ab@">
                                                                            <field name="TEXT">Ausgabe auf Küche / Eingang "textcommand" soll als nächstes gesetzt werden.</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="control" id="FiTl7G[oApi~lR8nPLMB">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <comment pinned="false" h="72" w="689">Hier ist es etwas undeutlich. Ich steuere zwar den Echo aber, dessen Musik Ausgabe ist in der Alexa App auf den Sonos Lautsprecher um geleitet. Das sollte ich wohl ändern.&#10;&#10;Den Echo-Lautsprecher nun auf eigene Ausgabe gesetzt.&#10;Weiß auch nicht ob die Gruppe Küche etwas damit zu tun hat.&#10;</comment>
                                                                            <value name="VALUE">
                                                                              <block type="text" id="4(B,?m6Jt5Z;]=jF-mmI">
                                                                                <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="debug" id="a$ON/-xwk/|9^9IC-b?j">
                                                                                <field name="Severity">warn</field>
                                                                                <value name="TEXT">
                                                                                  <shadow type="text">
                                                                                    <field name="TEXT">test</field>
                                                                                  </shadow>
                                                                                  <block type="text_join" id="DRDAs)=LOx!sM]+xblRE">
                                                                                    <mutation items="2"></mutation>
                                                                                    <value name="ADD0">
                                                                                      <block type="text" id="S,tDC9P[AE_dbrX5}ctu">
                                                                                        <field name="TEXT">Wert: von "textCommand" ist: </field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="ADD1">
                                                                                      <block type="get_value" id="mAO/|^LG|pxFE-wI^O0u">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="timeouts_wait" id="P0i?@3q3OFqKOb%EgzB+">
                                                                                    <field name="DELAY">500</field>
                                                                                    <field name="UNIT">ms</field>
                                                                                    <next>
                                                                                      <block type="controls_if" id=".!@iMVKB8Ld!W6Y=/}Ee">
                                                                                        <value name="IF0">
                                                                                          <block type="logic_compare" id="e^bGl;.wPgs?3_bqT1s!">
                                                                                            <field name="OP">NEQ</field>
                                                                                            <value name="A">
                                                                                              <block type="get_value" id="4eH^$6/KMX.F$G}~2ypK">
                                                                                                <field name="ATTR">val</field>
                                                                                                <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <value name="B">
                                                                                              <block type="text" id="op771oM]Y}#2--Ety_P@">
                                                                                                <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                                              </block>
                                                                                            </value>
                                                                                          </block>
                                                                                        </value>
                                                                                        <statement name="DO0">
                                                                                          <block type="control" id="VFkK*58:b0X-x4Tn,8WB">
                                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                            <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                                            <comment pinned="false" h="72" w="689">Hier ist es etwas undeutlich. Ich steuere zwar den Echo aber, dessen Musik Ausgabe ist in der Alexa App auf den Sonos Lautsprecher um geleitet. Das sollte ich wohl ändern.&#10;&#10;Den Echo-Lautsprecher nun auf eigene Ausgabe gesetzt.&#10;Weiß auch nicht ob die Gruppe Küche etwas damit zu tun hat.&#10;</comment>
                                                                                            <value name="VALUE">
                                                                                              <block type="text" id="2}oH?3;]^ab8(dj90EPV">
                                                                                                <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                                              </block>
                                                                                            </value>
                                                                                            <next>
                                                                                              <block type="debug" id="#Iq2-`XiWD2@X:%+}86T">
                                                                                                <field name="Severity">warn</field>
                                                                                                <value name="TEXT">
                                                                                                  <shadow type="text">
                                                                                                    <field name="TEXT">test</field>
                                                                                                  </shadow>
                                                                                                  <block type="text_join" id="8x*nVc;wrV%caKG`u+m$">
                                                                                                    <mutation items="2"></mutation>
                                                                                                    <value name="ADD0">
                                                                                                      <block type="text" id=",FHb0i2,y/qJEL[R$JJ2">
                                                                                                        <field name="TEXT">Zweiter Versuch aktiviert - Wert: von "textCommand" ist: </field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="ADD1">
                                                                                                      <block type="get_value" id="koou;P@`G;L^IEn4F)e_">
                                                                                                        <field name="ATTR">val</field>
                                                                                                        <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </statement>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                    <next>
                                                                      <block type="timeouts_settimeout" id="Je,5V[TjdPye_~%f$PeQ">
                                                                        <field name="NAME">timeout5</field>
                                                                        <field name="DELAY">35</field>
                                                                        <field name="UNIT">sec</field>
                                                                        <statement name="STATEMENT">
                                                                          <block type="debug" id=")gI-vda`lOICP0k}V#x8" disabled="true">
                                                                            <field name="Severity">warn</field>
                                                                            <comment pinned="false" h="48" w="620">Unter Player Titel wird wohl nichts eingetragen.&#10;Deshalb Debug aus.</comment>
                                                                            <value name="TEXT">
                                                                              <shadow type="text">
                                                                                <field name="TEXT">test</field>
                                                                              </shadow>
                                                                              <block type="text_join" id="rd??N#D)X}(mnO5*zqvh">
                                                                                <mutation items="2"></mutation>
                                                                                <value name="ADD0">
                                                                                  <block type="text" id="FXnsp1lQ(,R8(D|+HueA">
                                                                                    <field name="TEXT">Der Titel Wert im Echo Eingang ist :  </field>
                                                                                  </block>
                                                                                </value>
                                                                                <value name="ADD1">
                                                                                  <block type="get_value" id="=Wr($i?RxkeA37@|CI6K">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.currentTitle</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="debug" id="L-NNQ5V|%hBqmQb*f4WC">
                                                                                <field name="Severity">warn</field>
                                                                                <value name="TEXT">
                                                                                  <shadow type="text" id="3!~2w1!bC%O:JCn`wwh(">
                                                                                    <field name="TEXT">Script Ende</field>
                                                                                  </shadow>
                                                                                  <block type="text" id="x/uq}`iF.`_WQhl`S+)E">
                                                                                    <field name="TEXT">Script "Es klingelt" wurde beendet.</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </statement>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                                <next>
                                                                  <block type="comment" id="tBS.;yo|-jia:wUTj;u;">
                                                                    <field name="COMMENT">Echo Badezimmer</field>
                                                                    <next>
                                                                      <block type="controls_if" id="g@o$8!I17SB=rzODQq,w">
                                                                        <value name="IF0">
                                                                          <block type="logic_compare" id="t!4?mdG+}1#e)w}1V-Wf">
                                                                            <field name="OP">EQ</field>
                                                                            <value name="A">
                                                                              <block type="get_value" id="$puF7nMv_xSFB/~}D:Pj">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">javascript.0.ESP_Klingel</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="logic_boolean" id="eZ;oLNq::lGG{07JksMX">
                                                                                <field name="BOOL">TRUE</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <statement name="DO0">
                                                                          <block type="control" id="Q=f!6t(t#Xx+K`3alTzZ">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.volume</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="math_number" id="gsRx*}*Eq0Cz-!VqU*yo">
                                                                                <field name="NUM">50</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="control" id="51(VbCP5*;@bas$[Y!F,">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">alexa2.0.Echo-Devices.G2A1A60314660241.Commands.speak</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="text" id="=3u2f0})$H~A$6BFP(Hv">
                                                                                    <field name="TEXT">Da hat jemand geklingelt</field>
                                                                                  </block>
                                                                                </value>
                                                                                <next>
                                                                                  <block type="debug" id="7`P[%2c*i*{q[M8/vCIE">
                                                                                    <field name="Severity">warn</field>
                                                                                    <value name="TEXT">
                                                                                      <shadow type="text" id="mQYEu~vsP0J{nE7-0cy7">
                                                                                        <field name="TEXT">Sprachausgabe: Badezimmer es hat geklingelt.</field>
                                                                                      </shadow>
                                                                                    </value>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </statement>
                                                                        <next>
                                                                          <block type="comment" id="WTRJs?|5vd|_c6b;IBaH">
                                                                            <field name="COMMENT">Echo Büro</field>
                                                                            <next>
                                                                              <block type="controls_if" id="Q*.%Mdz1o?Cf!:DBr#Q|">
                                                                                <value name="IF0">
                                                                                  <block type="logic_compare" id="yiMA(Vg`Q3X4.Y;rFv(Q">
                                                                                    <field name="OP">EQ</field>
                                                                                    <value name="A">
                                                                                      <block type="get_value" id="$~GO]KTvud};#`t~t!mH">
                                                                                        <field name="ATTR">val</field>
                                                                                        <field name="OID">javascript.0.ESP_Klingel</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <value name="B">
                                                                                      <block type="logic_boolean" id="qPdA,IaY39qa1d*!)^tq">
                                                                                        <field name="BOOL">TRUE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </value>
                                                                                <statement name="DO0">
                                                                                  <block type="control" id="Q-=FAS*?}Ae:_G6;0K,;" disabled="true">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.volume</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="math_number" id="++Pt}#%!yr6k;Pe6.(_4">
                                                                                        <field name="NUM">50</field>
                                                                                      </block>
                                                                                    </value>
                                                                                    <next>
                                                                                      <block type="control" id="3cc4@^HymktoS`sIqEt)">
                                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                        <field name="OID">alexa2.0.Echo-Devices.G090LF1072260PUJ.Commands.speak</field>
                                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                                        <value name="VALUE">
                                                                                          <block type="text" id="i%A-Vuruk.s/BTs2]L{_">
                                                                                            <field name="TEXT">Da hat jemand geklingelt</field>
                                                                                          </block>
                                                                                        </value>
                                                                                        <next>
                                                                                          <block type="debug" id="T={+z]]*g874b`1a$.4G">
                                                                                            <field name="Severity">warn</field>
                                                                                            <value name="TEXT">
                                                                                              <shadow type="text" id="T!Pd^A!NlGsXbdzxcJzK">
                                                                                                <field name="TEXT">Sprachausgabe: Büro es hat geklingelt</field>
                                                                                              </shadow>
                                                                                            </value>
                                                                                            <next>
                                                                                              <block type="debug" id="Et]LzFP79Cxm]2-c=PZ1">
                                                                                                <field name="Severity">warn</field>
                                                                                                <value name="TEXT">
                                                                                                  <shadow type="text">
                                                                                                    <field name="TEXT">test</field>
                                                                                                  </shadow>
                                                                                                  <block type="text_join" id="O[Px{j,_Wi}Lh=1:{WkS">
                                                                                                    <mutation items="2"></mutation>
                                                                                                    <value name="ADD0">
                                                                                                      <block type="text" id="/i`{M,(m#N,$Y$fBg{qp">
                                                                                                        <field name="TEXT">Wert: Echo Büro Announcement Wert ist: </field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                    <value name="ADD1">
                                                                                                      <block type="get_value" id="8:%efADD?8|hac.HON:O">
                                                                                                        <field name="ATTR">val</field>
                                                                                                        <field name="OID">alexa2.0.Echo-Devices.G090LF1072260PUJ.Commands.speak</field>
                                                                                                      </block>
                                                                                                    </value>
                                                                                                  </block>
                                                                                                </value>
                                                                                              </block>
                                                                                            </next>
                                                                                          </block>
                                                                                        </next>
                                                                                      </block>
                                                                                    </next>
                                                                                  </block>
                                                                                </statement>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                            <next>
                              <block type="comment" id="@Gc/]vyrExbb~9dlg2!]">
                                <field name="COMMENT">02.08.2020 </field>
                                <comment pinned="false" h="80" w="160">Funktioniert im Moment nicht da im Gerät der falsche MQTT Port eingegeben ist.&#10;</comment>
                                <next>
                                  <block type="comment" id="zX2kNKceVK?.e)/RtFmI">
                                    <field name="COMMENT">11.10.2020</field>
                                    <comment pinned="false" h="80" w="160">Debug Text Anpassung. Doku hinzugefügt. &#10;</comment>
                                    <next>
                                      <block type="comment" id="..nD-2;3(~3lIaEyi7RD">
                                        <field name="COMMENT">30.10.2020</field>
                                        <comment pinned="false" h="73" w="424">Alexa Musik Ausgabe läuft immer noch nicht zuverlässig. Versuche noch zusätzlich den Play Button zu drücken. Mal sehen ob das was hilft. Timeoutx auf 500 ms eingestellt.</comment>
                                        <next>
                                          <block type="comment" id="MiyrYdfMQBr)GPb!k,{B">
                                            <field name="COMMENT">06.11.2020</field>
                                            <comment pinned="false" h="103" w="683">Das mit dem Play Button hat nicht geklappt. Er spielt dann Irgendeine Musik.&#10;&#10;Script im Player abgefragt was gespielt wird. </comment>
                                            <next>
                                              <block type="comment" id="BOE{NU]S4V#gZ]`g4Pl+">
                                                <field name="COMMENT">08.11.2020</field>
                                                <comment pinned="false" h="99" w="707">"maxLength": "50", anstatt 10 bei den Objet eigenschaften eingetragen.&#10;Versuche die Phrase mit etwas anderem zu füttern&#10;</comment>
                                                <next>
                                                  <block type="comment" id="rf:;|l,E+eBB/1Q-{2p!">
                                                    <field name="COMMENT">09.11.2020</field>
                                                    <comment pinned="false" h="90" w="609">Löschen des Phrase Wert verbessert und Ausgabe eingeleitet.</comment>
                                                    <next>
                                                      <block type="comment" id="LE7yL;|=WnX{D0dR|7K[">
                                                        <field name="COMMENT">10.11.2020</field>
                                                        <comment pinned="false" h="80" w="160">ich habe gesehen das die Lautstärke eingestellt wurde eventuell läuft dann das Script zu schnell durch deshalb kurze verzögerung eingebaut.&#10;</comment>
                                                        <next>
                                                          <block type="comment" id=":ip#I$=@PbfNjO!I[]G+">
                                                            <field name="COMMENT">20.11.2020</field>
                                                            <comment pinned="false" h="126" w="645">Timing überprüft. The Final Countdown hinzugefügt</comment>
                                                            <next>
                                                              <block type="comment" id="Xl#1|im25s$IC]#H|f~r">
                                                                <field name="COMMENT">27.11.2020</field>
                                                                <comment pinned="false" h="80" w="160">Das script funktioniert mit in der Küche. Ausgabe im Büro ist noch zu testen. river flows in you eingestellt&#10;</comment>
                                                                <next>
                                                                  <block type="comment" id="b6!nm3X2XZ*I{N4*3z1N">
                                                                    <field name="COMMENT">04.12.2020</field>
                                                                    <comment pinned="false" h="80" w="160">Script läuft soweit.&#10;Musik Stop nach 2 Minuten.</comment>
                                                                    <next>
                                                                      <block type="comment" id="KvX!cL{^;k_i4$uufcnV">
                                                                        <field name="COMMENT">18.12.2020</field>
                                                                        <comment pinned="false" h="90" w="527">Laustärke erhöht da meine Frau unter der Dunstabzugshabe nichts hört.&#10;&#10;Logs sind in Ordnung aber teilweise wird nichts abgespielt wie immer.&#10;Das Script hat aber sonst gut Funktioniert.&#10;</comment>
                                                                        <next>
                                                                          <block type="comment" id="2~bb/W!a4H)b,E@3}Pds">
                                                                            <field name="COMMENT">30.12.2020</field>
                                                                            <comment pinned="false" h="80" w="160">Zeit wie lange das Sound File abgespielt wird auf 30 sekunden reduziert. Latstärke Küche von Zahl 50 auf Text 50 geändert.&#10;</comment>
                                                                            <next>
                                                                              <block type="comment" id="+iYLMRMe$gNR]GvTs{!r">
                                                                                <field name="COMMENT">18.12.2021</field>
                                                                                <comment pinned="false" h="80" w="160">Anpassung auf den neuen Echo im Badezimmer&#10;</comment>
                                                                                <next>
                                                                                  <block type="comment" id="r]p{RY~k8/*s7!;@0zby">
                                                                                    <field name="COMMENT">10.10.2022</field>
                                                                                    <comment pinned="false" h="80" w="160">Das mit dem Stoppen nach 30 Sekunden hat nicht geklappt. Änderung über den Sonos Adapter</comment>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </xml>
            
            
            
            paul53P Offline
            paul53P Offline
            paul53
            schrieb am zuletzt editiert von paul53
            #9

            @spitfire4all
            Versuche es mal hiermit:

            <xml xmlns="https://developers.google.com/blockly/xml">
             <variables>
               <variable id="CyV%{3|97IkO578t@Az^">cnt</variable>
               <variable type="timeout" id="timeout">timeout</variable>
               <variable type="timeout" id="timeout2">timeout2</variable>
             </variables>
             <block type="comment" id="9|1+-.P0XO58Q}(N|:)l" x="38" y="-87">
               <field name="COMMENT">Hier hat es etwas gedauert bis die Asage im Büro kommt.</field>
               <next>
                 <block type="comment" id="xCCEkvI//^H*DFanXQX[">
                   <field name="COMMENT">Allgemein - Es klingelt </field>
                   <next>
                     <block type="comment" id="USyd8{.fWWiL+6Y}i7b1">
                       <field name="COMMENT">Doku</field>
                       <comment pinned="false" h="110" w="766">Steuert einen selbst angelegten Datenpunkt über die Instanz Simple.APi.&#10;Kein MQTT !&#10;&#10;String IOBROKER_DP = "/set/javascript.0.ESP_Klingel?value=";&#10;&#10;Links zur Webseite und zu Github original script.&#10;&#10;https://forum.iobroker.net/topic/21975/fritzbox-tr064-esp-klingel-datenpunkt/9&#10;https://github.com/SBorg2014/ESP-Klingel&#10;&#10;https://www.amazon.de/XdreaM-PlayListPlayer/dp/B079NCQW4W&#10;https://forum.iobroker.net/topic/48920/ein-eigenen-mp3-song-%C3%BCber-alexa-wiedergeben/2&#10;&#10;</comment>
                       <next>
                         <block type="on_ext" id="V=X8j/cP;Y-,,[adJbUF">
                           <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                           <field name="CONDITION">ne</field>
                           <field name="ACK_CONDITION"></field>
                           <value name="OID0">
                             <shadow type="field_oid" id="2hP2~Z-kkGhrtSItTNN-">
                               <field name="oid">javascript.0.ESP_Klingel</field>
                             </shadow>
                           </value>
                           <statement name="STATEMENT">
                             <block type="math_change" id="52QL6[ewfv%4HdIiH_Tz">
                               <field name="VAR" id="CyV%{3|97IkO578t@Az^">cnt</field>
                               <value name="DELTA">
                                 <shadow type="math_number" id="mVUK2BVUSeINZSFf=aa1">
                                   <field name="NUM">1</field>
                                 </shadow>
                               </value>
                               <next>
                                 <block type="controls_if" id="gO6KS9k`:z9%cc_in9[p">
                                   <value name="IF0">
                                     <block type="logic_compare" id="Bdhf/CpQ[AY87j((a]J=">
                                       <field name="OP">EQ</field>
                                       <value name="A">
                                         <block type="variables_get" id="O:rY6iN~}Gi;NE=q$]V7">
                                           <field name="VAR" id="CyV%{3|97IkO578t@Az^">cnt</field>
                                         </block>
                                       </value>
                                       <value name="B">
                                         <block type="math_number" id="agxa-7Ws/RzMbDYsGseA">
                                           <field name="NUM">2</field>
                                         </block>
                                       </value>
                                     </block>
                                   </value>
                                   <statement name="DO0">
                                     <block type="timeouts_settimeout" id="{6-FPNpi2]}H`aHFufS8">
                                       <field name="NAME">timeout</field>
                                       <field name="DELAY">5</field>
                                       <field name="UNIT">sec</field>
                                       <statement name="STATEMENT">
                                         <block type="variables_set" id="EfU1[9l]0ir#9Oy!NIoV">
                                           <field name="VAR" id="CyV%{3|97IkO578t@Az^">cnt</field>
                                           <value name="VALUE">
                                             <block type="math_number" id="HfD%Jpy_Id2i0GP8Yk-U">
                                               <field name="NUM">0</field>
                                             </block>
                                           </value>
                                           <next>
                                             <block type="debug" id="L-NNQ5V|%hBqmQb*f4WC">
                                               <field name="Severity">warn</field>
                                               <value name="TEXT">
                                                 <shadow type="text" id="3!~2w1!bC%O:JCn`wwh(">
                                                   <field name="TEXT">Script Ende</field>
                                                 </shadow>
                                                 <block type="text" id="x/uq}`iF.`_WQhl`S+)E">
                                                   <field name="TEXT">Script "Es klingelt" wurde beendet.</field>
                                                 </block>
                                               </value>
                                             </block>
                                           </next>
                                         </block>
                                       </statement>
                                       <next>
                                         <block type="debug" id="*cU_g?iA|)fuqgZe@B[=">
                                           <field name="Severity">warn</field>
                                           <value name="TEXT">
                                             <shadow type="text" id="zT{a$$L|xB$8xzypv%.4">
                                               <field name="TEXT">info: Klingel wurde aktiviert</field>
                                             </shadow>
                                           </value>
                                           <next>
                                             <block type="telegram" id="~=NDBQiM,}$tF5cO^}-n">
                                               <field name="INSTANCE"></field>
                                               <field name="LOG"></field>
                                               <field name="SILENT">FALSE</field>
                                               <field name="PARSEMODE">default</field>
                                               <field name="DISABLE_WEB_PAGE_PREVIEW">FALSE</field>
                                               <value name="MESSAGE">
                                                 <shadow type="text" id="3Em9PCajD!PqpeN$L`e$">
                                                   <field name="TEXT">info: Klingel wurde aktiviert</field>
                                                 </shadow>
                                               </value>
                                               <next>
                                                 <block type="comment" id="z$y7*P[e90KmsF-2.9d%">
                                                   <field name="COMMENT">Küche</field>
                                                   <next>
                                                     <block type="debug" id="S?lSzH+S;Rg7-qnywJan">
                                                       <field name="Severity">warn</field>
                                                       <value name="TEXT">
                                                         <shadow type="text" id="8E:GqwL4+0Rz`=|MMagF">
                                                           <field name="TEXT">test</field>
                                                         </shadow>
                                                         <block type="text" id="=R%@?@5:z}b.^9|q0ab@">
                                                           <field name="TEXT">Ausgabe auf Küche / Eingang "textcommand" soll als nächstes gesetzt werden.</field>
                                                         </block>
                                                       </value>
                                                       <next>
                                                         <block type="control" id="FiTl7G[oApi~lR8nPLMB">
                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                           <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                           <field name="WITH_DELAY">FALSE</field>
                                                           <comment pinned="false" h="72" w="689">Hier ist es etwas undeutlich. Ich steuere zwar den Echo aber, dessen Musik Ausgabe ist in der Alexa App auf den Sonos Lautsprecher um geleitet. Das sollte ich wohl ändern.&#10;&#10;Den Echo-Lautsprecher nun auf eigene Ausgabe gesetzt.&#10;Weiß auch nicht ob die Gruppe Küche etwas damit zu tun hat.&#10;</comment>
                                                           <value name="VALUE">
                                                             <block type="text" id="4(B,?m6Jt5Z;]=jF-mmI">
                                                               <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                             </block>
                                                           </value>
                                                           <next>
                                                             <block type="timeouts_settimeout" id="RCX8c2g7ME0xMZg{J/-O">
                                                               <field name="NAME">timeout2</field>
                                                               <field name="DELAY">500</field>
                                                               <field name="UNIT">ms</field>
                                                               <statement name="STATEMENT">
                                                                 <block type="controls_if" id=".!@iMVKB8Ld!W6Y=/}Ee">
                                                                   <value name="IF0">
                                                                     <block type="logic_compare" id="e^bGl;.wPgs?3_bqT1s!">
                                                                       <field name="OP">NEQ</field>
                                                                       <value name="A">
                                                                         <block type="get_value" id="4eH^$6/KMX.F$G}~2ypK">
                                                                           <field name="ATTR">val</field>
                                                                           <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                         </block>
                                                                       </value>
                                                                       <value name="B">
                                                                         <block type="text" id="op771oM]Y}#2--Ety_P@">
                                                                           <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                         </block>
                                                                       </value>
                                                                     </block>
                                                                   </value>
                                                                   <statement name="DO0">
                                                                     <block type="control" id="VFkK*58:b0X-x4Tn,8WB">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                       <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Commands.textCommand</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <comment pinned="false" h="72" w="689">Hier ist es etwas undeutlich. Ich steuere zwar den Echo aber, dessen Musik Ausgabe ist in der Alexa App auf den Sonos Lautsprecher um geleitet. Das sollte ich wohl ändern.&#10;&#10;Den Echo-Lautsprecher nun auf eigene Ausgabe gesetzt.&#10;Weiß auch nicht ob die Gruppe Küche etwas damit zu tun hat.&#10;</comment>
                                                                       <value name="VALUE">
                                                                         <block type="text" id="2}oH?3;]^ab8(dj90EPV">
                                                                           <field name="TEXT">öffne p.l.p und spiele klingel</field>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="debug" id="#Iq2-`XiWD2@X:%+}86T">
                                                                           <field name="Severity">warn</field>
                                                                           <value name="TEXT">
                                                                             <shadow type="text" id="SGzY(FKqQA5a(y${/~Hp">
                                                                               <field name="TEXT">test</field>
                                                                             </shadow>
                                                                             <block type="text" id=",FHb0i2,y/qJEL[R$JJ2">
                                                                               <field name="TEXT">Zweiter Versuch aktiviert - Wert: von "textCommand" ist: </field>
                                                                             </block>
                                                                           </value>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </statement>
                                                                 </block>
                                                               </statement>
                                                               <next>
                                                                 <block type="comment" id="tBS.;yo|-jia:wUTj;u;">
                                                                   <field name="COMMENT">Echo Badezimmer</field>
                                                                   <next>
                                                                     <block type="control" id="Q=f!6t(t#Xx+K`3alTzZ">
                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                       <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.volume</field>
                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                       <value name="VALUE">
                                                                         <block type="math_number" id="gsRx*}*Eq0Cz-!VqU*yo">
                                                                           <field name="NUM">50</field>
                                                                         </block>
                                                                       </value>
                                                                       <next>
                                                                         <block type="control" id="51(VbCP5*;@bas$[Y!F,">
                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                           <field name="OID">alexa2.0.Echo-Devices.G2A1A60314660241.Commands.speak</field>
                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                           <value name="VALUE">
                                                                             <block type="text" id="=3u2f0})$H~A$6BFP(Hv">
                                                                               <field name="TEXT">Da hat jemand geklingelt</field>
                                                                             </block>
                                                                           </value>
                                                                           <next>
                                                                             <block type="debug" id="7`P[%2c*i*{q[M8/vCIE">
                                                                               <field name="Severity">warn</field>
                                                                               <value name="TEXT">
                                                                                 <shadow type="text" id="mQYEu~vsP0J{nE7-0cy7">
                                                                                   <field name="TEXT">Sprachausgabe: Badezimmer es hat geklingelt.</field>
                                                                                 </shadow>
                                                                               </value>
                                                                               <next>
                                                                                 <block type="comment" id="WTRJs?|5vd|_c6b;IBaH">
                                                                                   <field name="COMMENT">Echo Büro</field>
                                                                                   <next>
                                                                                     <block type="control" id="Q-=FAS*?}Ae:_G6;0K,;" disabled="true">
                                                                                       <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                       <field name="OID">alexa2.0.Echo-Devices.G090VC0991641AMW.Player.volume</field>
                                                                                       <field name="WITH_DELAY">FALSE</field>
                                                                                       <value name="VALUE">
                                                                                         <block type="math_number" id="++Pt}#%!yr6k;Pe6.(_4">
                                                                                           <field name="NUM">50</field>
                                                                                         </block>
                                                                                       </value>
                                                                                       <next>
                                                                                         <block type="control" id="3cc4@^HymktoS`sIqEt)">
                                                                                           <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                           <field name="OID">alexa2.0.Echo-Devices.G090LF1072260PUJ.Commands.speak</field>
                                                                                           <field name="WITH_DELAY">FALSE</field>
                                                                                           <value name="VALUE">
                                                                                             <block type="text" id="i%A-Vuruk.s/BTs2]L{_">
                                                                                               <field name="TEXT">Da hat jemand geklingelt</field>
                                                                                             </block>
                                                                                           </value>
                                                                                           <next>
                                                                                             <block type="debug" id="T={+z]]*g874b`1a$.4G">
                                                                                               <field name="Severity">warn</field>
                                                                                               <value name="TEXT">
                                                                                                 <shadow type="text" id="T!Pd^A!NlGsXbdzxcJzK">
                                                                                                   <field name="TEXT">Sprachausgabe: Büro es hat geklingelt</field>
                                                                                                 </shadow>
                                                                                               </value>
                                                                                             </block>
                                                                                           </next>
                                                                                         </block>
                                                                                       </next>
                                                                                     </block>
                                                                                   </next>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </statement>
                                 </block>
                               </next>
                             </block>
                           </statement>
                           <next>
                             <block type="comment" id="@Gc/]vyrExbb~9dlg2!]">
                               <field name="COMMENT">02.08.2020 </field>
                               <comment pinned="false" h="80" w="160">Funktioniert im Moment nicht da im Gerät der falsche MQTT Port eingegeben ist.&#10;</comment>
                               <next>
                                 <block type="comment" id="zX2kNKceVK?.e)/RtFmI">
                                   <field name="COMMENT">11.10.2020</field>
                                   <comment pinned="false" h="80" w="160">Debug Text Anpassung. Doku hinzugefügt. &#10;</comment>
                                   <next>
                                     <block type="comment" id="..nD-2;3(~3lIaEyi7RD">
                                       <field name="COMMENT">30.10.2020</field>
                                       <comment pinned="false" h="73" w="424">Alexa Musik Ausgabe läuft immer noch nicht zuverlässig. Versuche noch zusätzlich den Play Button zu drücken. Mal sehen ob das was hilft. Timeoutx auf 500 ms eingestellt.</comment>
                                       <next>
                                         <block type="comment" id="MiyrYdfMQBr)GPb!k,{B">
                                           <field name="COMMENT">06.11.2020</field>
                                           <comment pinned="false" h="103" w="683">Das mit dem Play Button hat nicht geklappt. Er spielt dann Irgendeine Musik.&#10;&#10;Script im Player abgefragt was gespielt wird. </comment>
                                           <next>
                                             <block type="comment" id="BOE{NU]S4V#gZ]`g4Pl+">
                                               <field name="COMMENT">08.11.2020</field>
                                               <comment pinned="false" h="99" w="707">"maxLength": "50", anstatt 10 bei den Objet eigenschaften eingetragen.&#10;Versuche die Phrase mit etwas anderem zu füttern&#10;</comment>
                                               <next>
                                                 <block type="comment" id="rf:;|l,E+eBB/1Q-{2p!">
                                                   <field name="COMMENT">09.11.2020</field>
                                                   <comment pinned="false" h="90" w="609">Löschen des Phrase Wert verbessert und Ausgabe eingeleitet.</comment>
                                                   <next>
                                                     <block type="comment" id="LE7yL;|=WnX{D0dR|7K[">
                                                       <field name="COMMENT">10.11.2020</field>
                                                       <comment pinned="false" h="80" w="160">ich habe gesehen das die Lautstärke eingestellt wurde eventuell läuft dann das Script zu schnell durch deshalb kurze verzögerung eingebaut.&#10;</comment>
                                                       <next>
                                                         <block type="comment" id=":ip#I$=@PbfNjO!I[]G+">
                                                           <field name="COMMENT">20.11.2020</field>
                                                           <comment pinned="false" h="126" w="645">Timing überprüft. The Final Countdown hinzugefügt</comment>
                                                           <next>
                                                             <block type="comment" id="Xl#1|im25s$IC]#H|f~r">
                                                               <field name="COMMENT">27.11.2020</field>
                                                               <comment pinned="false" h="80" w="160">Das script funktioniert mit in der Küche. Ausgabe im Büro ist noch zu testen. river flows in you eingestellt&#10;</comment>
                                                               <next>
                                                                 <block type="comment" id="b6!nm3X2XZ*I{N4*3z1N">
                                                                   <field name="COMMENT">04.12.2020</field>
                                                                   <comment pinned="false" h="80" w="160">Script läuft soweit.&#10;Musik Stop nach 2 Minuten.</comment>
                                                                   <next>
                                                                     <block type="comment" id="KvX!cL{^;k_i4$uufcnV">
                                                                       <field name="COMMENT">18.12.2020</field>
                                                                       <comment pinned="false" h="90" w="527">Laustärke erhöht da meine Frau unter der Dunstabzugshabe nichts hört.&#10;&#10;Logs sind in Ordnung aber teilweise wird nichts abgespielt wie immer.&#10;Das Script hat aber sonst gut Funktioniert.&#10;</comment>
                                                                       <next>
                                                                         <block type="comment" id="2~bb/W!a4H)b,E@3}Pds">
                                                                           <field name="COMMENT">30.12.2020</field>
                                                                           <comment pinned="false" h="80" w="160">Zeit wie lange das Sound File abgespielt wird auf 30 sekunden reduziert. Latstärke Küche von Zahl 50 auf Text 50 geändert.&#10;</comment>
                                                                           <next>
                                                                             <block type="comment" id="+iYLMRMe$gNR]GvTs{!r">
                                                                               <field name="COMMENT">18.12.2021</field>
                                                                               <comment pinned="false" h="80" w="160">Anpassung auf den neuen Echo im Badezimmer&#10;</comment>
                                                                               <next>
                                                                                 <block type="comment" id="r]p{RY~k8/*s7!;@0zby">
                                                                                   <field name="COMMENT">10.10.2022</field>
                                                                                   <comment pinned="false" h="80" w="160">Das mit dem Stoppen nach 30 Sekunden hat nicht geklappt. Änderung über den Sonos Adapter</comment>
                                                                                 </block>
                                                                               </next>
                                                                             </block>
                                                                           </next>
                                                                         </block>
                                                                       </next>
                                                                     </block>
                                                                   </next>
                                                                 </block>
                                                               </next>
                                                             </block>
                                                           </next>
                                                         </block>
                                                       </next>
                                                     </block>
                                                   </next>
                                                 </block>
                                               </next>
                                             </block>
                                           </next>
                                         </block>
                                       </next>
                                     </block>
                                   </next>
                                 </block>
                               </next>
                             </block>
                           </next>
                         </block>
                       </next>
                     </block>
                   </next>
                 </block>
               </next>
             </block>
            </xml>
            

            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

            1 Antwort Letzte Antwort
            0
            • paul53P paul53

              @spitfire4all sagte: der Datenpunkt also true ist.

              Immer oder nur, wenn gedrückt wird?

              S Offline
              S Offline
              Spitfire4all
              schrieb am zuletzt editiert von
              #10

              @paul53
              Immer nur, wenn gedrückt wird, springt er auf wahr.
              So wie es für mich aussieht, setzt die ESP klingel den Datenpunkt wieder auf false, da er jetzt, im nicht gedrückten Zustand false ist.
              Grundsätzlich funktioniert der Trigger ja, mein Script wird ja durchlaufen, so zeigt es jedenfalls das log.

              Auszug aus dem History Adapter
              4220a030-b76e-4123-8a9b-c6ce2386cf33-image.png

              paul53P 1 Antwort Letzte Antwort
              0
              • S Spitfire4all

                @paul53
                Immer nur, wenn gedrückt wird, springt er auf wahr.
                So wie es für mich aussieht, setzt die ESP klingel den Datenpunkt wieder auf false, da er jetzt, im nicht gedrückten Zustand false ist.
                Grundsätzlich funktioniert der Trigger ja, mein Script wird ja durchlaufen, so zeigt es jedenfalls das log.

                Auszug aus dem History Adapter
                4220a030-b76e-4123-8a9b-c6ce2386cf33-image.png

                paul53P Offline
                paul53P Offline
                paul53
                schrieb am zuletzt editiert von paul53
                #11

                @spitfire4all sagte: setzt die ESP klingel den Datenpunkt wieder auf false

                Dann versuche es mal mit dem geposteten Blockly, bei dem auf "wurde geändert" getriggert und erst beim Loslassen (false) agiert wird.

                EDIT: Falls das mit Rückkehr auf false nicht funktioniert, triggere auf "ist wahr" und prüfe auf "cnt = 1":

                Bild_2022-11-23_164632533.png

                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                S 2 Antworten Letzte Antwort
                0
                • paul53P paul53

                  @spitfire4all sagte: setzt die ESP klingel den Datenpunkt wieder auf false

                  Dann versuche es mal mit dem geposteten Blockly, bei dem auf "wurde geändert" getriggert und erst beim Loslassen (false) agiert wird.

                  EDIT: Falls das mit Rückkehr auf false nicht funktioniert, triggere auf "ist wahr" und prüfe auf "cnt = 1":

                  Bild_2022-11-23_164632533.png

                  S Offline
                  S Offline
                  Spitfire4all
                  schrieb am zuletzt editiert von
                  #12

                  @paul53
                  Habe es mal implementiert und beim ersten Versuch hat es auch richtig funktioniert.

                  Erst einmal vielen Dank.
                  Ich werde es mal beobachten und dann berichten.

                  Gruß Hans-Dieter

                  1 Antwort Letzte Antwort
                  0
                  • paul53P paul53

                    @spitfire4all sagte: setzt die ESP klingel den Datenpunkt wieder auf false

                    Dann versuche es mal mit dem geposteten Blockly, bei dem auf "wurde geändert" getriggert und erst beim Loslassen (false) agiert wird.

                    EDIT: Falls das mit Rückkehr auf false nicht funktioniert, triggere auf "ist wahr" und prüfe auf "cnt = 1":

                    Bild_2022-11-23_164632533.png

                    S Offline
                    S Offline
                    Spitfire4all
                    schrieb am zuletzt editiert von
                    #13

                    @paul53
                    Noch einmal Danke, das Script scheint jetzt richtig zu funktionieren.
                    Wenn du möchtest, kannst du mir mitteilen, was denn nun schiefgelaufen ist.

                    Ich verstehe es nicht so richtig, was da los war, denn das Script wurde ja angeblich gestartet, aber es gab keine Ausgabe auf dem Echo. Was das genau mit dem Trigger zu tun hat ist mir schleierhaft.

                    Gruß
                    HDM

                    paul53P 1 Antwort Letzte Antwort
                    0
                    • S Spitfire4all

                      @paul53
                      Noch einmal Danke, das Script scheint jetzt richtig zu funktionieren.
                      Wenn du möchtest, kannst du mir mitteilen, was denn nun schiefgelaufen ist.

                      Ich verstehe es nicht so richtig, was da los war, denn das Script wurde ja angeblich gestartet, aber es gab keine Ausgabe auf dem Echo. Was das genau mit dem Trigger zu tun hat ist mir schleierhaft.

                      Gruß
                      HDM

                      paul53P Offline
                      paul53P Offline
                      paul53
                      schrieb am zuletzt editiert von
                      #14

                      @spitfire4all sagte: was denn nun schiefgelaufen ist.

                      Vermutlich wird zu oft getriggert (Prellen), was dazu führt, dass die Sprachausgaben unterbrochen werden.
                      Der Timeout führt in Verbindung mit der Zählvariablen nun dazu, dass das Programm innerhalb von 5 s nur einmal durchlaufen wird.

                      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                      1 Antwort Letzte Antwort
                      0
                      Antworten
                      • In einem neuen Thema antworten
                      Anmelden zum Antworten
                      • Älteste zuerst
                      • Neuste zuerst
                      • Meiste Stimmen


                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      689

                      Online

                      32.6k

                      Benutzer

                      82.2k

                      Themen

                      1.3m

                      Beiträge
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                      ioBroker Community 2014-2025
                      logo
                      • Anmelden

                      • Du hast noch kein Konto? Registrieren

                      • Anmelden oder registrieren, um zu suchen
                      • Erster Beitrag
                        Letzter Beitrag
                      0
                      • Home
                      • Aktuell
                      • Tags
                      • Ungelesen 0
                      • Kategorien
                      • Unreplied
                      • Beliebt
                      • GitHub
                      • Docu
                      • Hilfe