Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Badradio

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Badradio

    This topic has been deleted. Only users with topic management privileges can see it.
    • crunchip
      crunchip Forum Testing Most Active @lustig29 last edited by crunchip

      @lustig29 sagte in Badradio:

      @crunchip genauso habe ich es gemacht. Aber es funktioniert leider nur so wie oben beschrieben

      kann nicht sein, dann hast du irgendwo was durcheinander gebracht, oder läuft irgendwo noch ein zweites script und vllt vergessen zu deaktivieren?

      @lustig29 sagte in Badradio:

      Ich habe jetzt nochmal einem im Alexa/Player Ordner erstellt.

      dort erstellt man nichts, das wird alles automatisch angelegt

      1 Reply Last reply Reply Quote 0
      • J
        Jan1 @lustig29 last edited by

        @lustig29
        So langsam versteh ich Dich nicht mehr. Ich schreib Dir schon von Anfang an, dass Du eventuell den falschen DP verwendest und mit welchem ich das mache und anstatt Du endlich mal den DP verwendest, den jeder andere der Dein Problem nicht hat auch verwendet, verwendest Du einen selbst erstellten und verrätst nicht mal was der genau macht oder was der überhaupt steuert, wunderst Dich aber immer noch, dass Du Dein altes Problem hast. Im Alexa Adapter wird für jedes Gerät ein passender DP zur Verfügung gestellt, der exakt das macht was Du haben möchtest. Nimm endlich diese und es läuft.
        Ich bin dann raus hier.

        L 1 Reply Last reply Reply Quote 0
        • L
          lustig29 @Jan1 last edited by

          @Jan1 sorry,wollte dich nicht verärgern, aber vielleicht bin ich ja nur zu blöd dazu.
          Anbei mein aktuell laufendes Skript. Mit dem aktivierten Datenpunkt des Alexa2 Adapters.
          Ich gehe ins Bad, Hr3 startet. Gehe dann in die Küche sage, Alexa: " Alexa starte Antenne Bayern auf Tunein" Echo im Bad wechselt den Sender auf Antenne Bayern, in der Küche kommt nichts...Jan1.png Jan2.png

          J 1 Reply Last reply Reply Quote 0
          • J
            Jan1 @lustig29 last edited by

            @lustig29
            Und das ist eben der allgemeine DP und somit der falsche. Schau mal was unter Player drin steht, da ist nämlich genau der den ich die ganze Zeit poste und Du das fleißig ignorierst 😉

            Somit ist meine Aussage, dass Du den falschen DP verwendest von Beginn an richtig.

            L 1 Reply Last reply Reply Quote 0
            • L
              lustig29 @Jan1 last edited by

              @Jan1 habe den Datenpunkt unter Player genommen. Ist aber leider immer noch so, dass der Sender umgeschaltet wird. Kann es vielleicht mit der Multiroomgruppe Bad/Küche zu tun haben?

              J 1 Reply Last reply Reply Quote 0
              • J
                Jan1 @lustig29 last edited by

                @lustig29
                na daran kann es auch liegen, da das ne Gruppe ist und somit verbunden. Ein Grund warum ich das bei mir nicht mehr verwende, da das etwas seltsam reagiert.

                L 1 Reply Last reply Reply Quote 0
                • L
                  lustig29 @Jan1 last edited by

                  @Jan1 habe alle Multiroomgruppen in der Alexa App gelöscht und siehe da, jetzt läuft es. 😊
                  Wenn ich nun Multiroom nutzen möchte kann ich das doch bestimmt auch mit Hilfe eines Skriptes oder? Ich meine, wenn ich zum Beispiel zu Alexa sage: " Starte Multiroom, dass ein Skript gestartet wird, dass die Musikwiedergabe auf mehreren Echo´s gleichzeitig startet.

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    Jan1 @lustig29 last edited by

                    @lustig29
                    musst probieren

                    L 2 Replies Last reply Reply Quote 0
                    • L
                      lustig29 @Jan1 last edited by

                      @Jan1 ok, danke nochmal🙋‍♂️

                      1 Reply Last reply Reply Quote 0
                      • L
                        lustig29 @Jan1 last edited by

                        @Jan1 wie passe ich das Skript am besten an? Möchte gerne, dass das Skript von Sonntag bis Donnerstag von 4:30 bis 21 Uhr läuft und Freitag / Samstag von 4:30 bis 23 Uhr läuft.

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          Jan1 @lustig29 last edited by

                          @lustig29
                          poste mal den Export, ist einfacher das gleich selber umzubauen 😉

                          L 1 Reply Last reply Reply Quote 0
                          • L
                            lustig29 @Jan1 last edited by

                            <xml xmlns="https://developers.google.com/blockly/xml">
                              <block type="on" id="{!Ow5W{xI=1u8E[NnSUK" x="-462" y="-837">
                                <field name="OID">deconz.0.Sensors.14.presence</field>
                                <field name="CONDITION">ne</field>
                                <field name="ACK_CONDITION"></field>
                                <statement name="STATEMENT">
                                  <block type="controls_if" id="Kx3vNe=R:}qK8)0gWt@">
                                    <value name="IF0">
                                      <block type="logic_operation" id="mQ/dx2,-_w5IG$iE;)@J" inline="false">
                                        <field name="OP">AND</field>
                                        <value name="A">
                                          <block type="time_compare_ex" id="Tt0_xmUcA.@q=R^6c?K">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                            <field name="USE_ACTUAL_TIME">TRUE</field>
                                            <field name="OPTION">not between</field>
                                            <value name="START_TIME">
                                              <shadow type="text" id="Ds2^t-6oqCLq{#P9fh(/">
                                                <field name="TEXT">23:00</field>
                                              </shadow>
                                            </value>
                                            <value name="END_TIME">
                                              <shadow type="text" id="gu#LKi_N|YJrLy[.i6XR">
                                                <field name="TEXT">04:30</field>
                                              </shadow>
                                            </value>
                                          </block>
                                        </value>
                                        <value name="B">
                                          <block type="on_source" id="9crFy+ImY/x|/4%_|Iuh">
                                            <field name="ATTR">state.val</field>
                                          </block>
                                        </value>
                                      </block>
                                    </value>
                                    <statement name="DO0">
                                      <block type="control" id="0caXwgeFdZ2+*-%4$]n7" disabled="true">
                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                        <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Commands.speak-volume</field>
                                        <field name="WITH_DELAY">TRUE</field>
                                        <field name="DELAY_MS">1</field>
                                        <field name="UNIT">sec</field>
                                        <field name="CLEAR_RUNNING">FALSE</field>
                                        <value name="VALUE">
                                          <block type="math_number" id="qgnMFdS`CHLm~05gl|0$">
                                            <field name="NUM">30</field>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="control" id="beIy{b}b`o+JDO}s--G*" disabled="true">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Commands.ssml</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="text" id="@8xQbOq8H?PQJA?Obn$x">
                                                <field name="TEXT">&lt;speak&gt;&lt;voice name="Hans"&gt;Hallo, ich wünsche dir viel Erfolg bei deinem Geschäft. Hände waschen bitte nicht vergessen!&lt;/voice&gt;.&lt;/speak&gt;</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="k!y+]`TjgB*YNCulFP(b" disabled="true">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Player.volume</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="math_number" id="|,.2zG8A2}c;nn9~X%3Z">
                                                    <field name="NUM">20</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="!l0yy;jVq!YL4RH3xD/8" disabled="true">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                    <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Music-Provider.TuneIn</field>
                                                    <field name="WITH_DELAY">TRUE</field>
                                                    <field name="DELAY_MS">4</field>
                                                    <field name="UNIT">sec</field>
                                                    <field name="CLEAR_RUNNING">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="text" id="V4T*~XZ),3.JVa}:sLV,">
                                                        <field name="TEXT">HR 3</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="DENupJe1)#Ft`L$5)c^,">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Player.controlPlay</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="I%X3.ec/A@FYni-5!MvP">
                                                            <field name="BOOL">TRUE</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="-K*]=!?T(x=t3aH]yXB">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">javascript.0.scriptEnabled.Alexa.Musik_an</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="R4Lwk@QMSU7wLUUR_{)">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                  </block>
                                </statement>
                                <next>
                                  <block type="on" id="sM:.Y~^%@f(]1=[;xCd]">
                                    <field name="OID">deconz.0.Sensors.9.open</field>
                                    <field name="CONDITION">true</field>
                                    <field name="ACK_CONDITION"></field>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id="5cj)P381Yi%K(%Q6B4l">
                                        <value name="IF0">
                                          <block type="logic_operation" id="xRm)qTm9{hP%Om6X$S" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="on_source" id="FQBb^YFSsXxvNU,7?;g7">
                                                <field name="ATTR">state.val</field>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="get_value" id="I,5DN_vB(m]L_X%%l0C">
                                                <field name="ATTR">val</field>
                                                <field name="OID">javascript.0.scriptEnabled.Alexa.Musik_an</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="-YhxQx;-Ohq38S3jpH,F">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                            <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Player.controlPause</field>
                                            <field name="WITH_DELAY">FALSE</field>
                                            <value name="VALUE">
                                              <block type="logic_boolean" id=".=Zr.OXX+3jD[5g4N84O">
                                                <field name="BOOL">TRUE</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="z.h$,n|N2GUp46ne8_SS">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">javascript.0.scriptEnabled.Alexa.Musik_an</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id="#Lz~5_ooORwjdqU#Xd|]">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="oQu-RS?b?*%VTU/wm#PF" disabled="true">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">deconz.0.Sensors.6.presence</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="J5VYYL98Ib}qaE`GTXmi">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                  </block>
                                </next>
                              </block>
                            </xml>_text
                            
                            J 1 Reply Last reply Reply Quote 0
                            • J
                              Jan1 @lustig29 last edited by

                              @lustig29
                              kann das nicht importieren, kommt ein Fehler. Poste das noch mal.

                              L 1 Reply Last reply Reply Quote 0
                              • L
                                lustig29 @Jan1 last edited by

                                @Jan1

                                code_text
                                ```<xml xmlns="https://developers.google.com/blockly/xml">
                                  <block type="on" id="{!Ow5W{xI=1u8E[NnSUK" x="-462" y="-837">
                                    <field name="OID">deconz.0.Sensors.14.presence</field>
                                    <field name="CONDITION">ne</field>
                                    <field name="ACK_CONDITION"></field>
                                    <statement name="STATEMENT">
                                      <block type="controls_if" id="Kx3vNe=R:}qK8)0gWt@">
                                        <value name="IF0">
                                          <block type="logic_operation" id="mQ/dx2,-_w5IG$iE;)@J" inline="false">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="time_compare_ex" id="Tt0_xmUcA.@q=R^6c?K">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                                <field name="USE_ACTUAL_TIME">TRUE</field>
                                                <field name="OPTION">not between</field>
                                                <value name="START_TIME">
                                                  <shadow type="text" id="Ds2^t-6oqCLq{#P9fh(/">
                                                    <field name="TEXT">23:00</field>
                                                  </shadow>
                                                </value>
                                                <value name="END_TIME">
                                                  <shadow type="text" id="gu#LKi_N|YJrLy[.i6XR">
                                                    <field name="TEXT">04:30</field>
                                                  </shadow>
                                                </value>
                                              </block>
                                            </value>
                                            <value name="B">
                                              <block type="on_source" id="9crFy+ImY/x|/4%_|Iuh">
                                                <field name="ATTR">state.val</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO0">
                                          <block type="control" id="0caXwgeFdZ2+*-%4$]n7" disabled="true">
                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                            <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Commands.speak-volume</field>
                                            <field name="WITH_DELAY">TRUE</field>
                                            <field name="DELAY_MS">1</field>
                                            <field name="UNIT">sec</field>
                                            <field name="CLEAR_RUNNING">FALSE</field>
                                            <value name="VALUE">
                                              <block type="math_number" id="qgnMFdS`CHLm~05gl|0$">
                                                <field name="NUM">30</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="control" id="beIy{b}b`o+JDO}s--G*" disabled="true">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Commands.ssml</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="text" id="@8xQbOq8H?PQJA?Obn$x">
                                                    <field name="TEXT">&lt;speak&gt;&lt;voice name="Hans"&gt;Hallo, ich wünsche dir viel Erfolg bei deinem Geschäft. Hände waschen bitte nicht vergessen!&lt;/voice&gt;.&lt;/speak&gt;</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="k!y+]`TjgB*YNCulFP(b" disabled="true">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Player.volume</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="math_number" id="|,.2zG8A2}c;nn9~X%3Z">
                                                        <field name="NUM">20</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="!l0yy;jVq!YL4RH3xD/8" disabled="true">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                        <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Music-Provider.TuneIn</field>
                                                        <field name="WITH_DELAY">TRUE</field>
                                                        <field name="DELAY_MS">4</field>
                                                        <field name="UNIT">sec</field>
                                                        <field name="CLEAR_RUNNING">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="text" id="V4T*~XZ),3.JVa}:sLV,">
                                                            <field name="TEXT">HR 3</field>
                                                          </block>
                                                        </value>
                                                        <next>
                                                          <block type="control" id="DENupJe1)#Ft`L$5)c^,">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                            <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Player.controlPlay</field>
                                                            <field name="WITH_DELAY">FALSE</field>
                                                            <value name="VALUE">
                                                              <block type="logic_boolean" id="I%X3.ec/A@FYni-5!MvP">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                            <next>
                                                              <block type="control" id="-K*]=!?T(x=t3aH]yXB">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">javascript.0.scriptEnabled.Alexa.Musik_an</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="R4Lwk@QMSU7wLUUR_{)">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="on" id="sM:.Y~^%@f(]1=[;xCd]">
                                        <field name="OID">deconz.0.Sensors.9.open</field>
                                        <field name="CONDITION">true</field>
                                        <field name="ACK_CONDITION"></field>
                                        <statement name="STATEMENT">
                                          <block type="controls_if" id="5cj)P381Yi%K(%Q6B4l">
                                            <value name="IF0">
                                              <block type="logic_operation" id="xRm)qTm9{hP%Om6X$S" inline="false">
                                                <field name="OP">AND</field>
                                                <value name="A">
                                                  <block type="on_source" id="FQBb^YFSsXxvNU,7?;g7">
                                                    <field name="ATTR">state.val</field>
                                                  </block>
                                                </value>
                                                <value name="B">
                                                  <block type="get_value" id="I,5DN_vB(m]L_X%%l0C">
                                                    <field name="ATTR">val</field>
                                                    <field name="OID">javascript.0.scriptEnabled.Alexa.Musik_an</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                            <statement name="DO0">
                                              <block type="control" id="-YhxQx;-Ohq38S3jpH,F">
                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Player.controlPause</field>
                                                <field name="WITH_DELAY">FALSE</field>
                                                <value name="VALUE">
                                                  <block type="logic_boolean" id=".=Zr.OXX+3jD[5g4N84O">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                                <next>
                                                  <block type="control" id="z.h$,n|N2GUp46ne8_SS">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                    <field name="OID">javascript.0.scriptEnabled.Alexa.Musik_an</field>
                                                    <field name="WITH_DELAY">FALSE</field>
                                                    <value name="VALUE">
                                                      <block type="logic_boolean" id="#Lz~5_ooORwjdqU#Xd|]">
                                                        <field name="BOOL">FALSE</field>
                                                      </block>
                                                    </value>
                                                    <next>
                                                      <block type="control" id="oQu-RS?b?*%VTU/wm#PF" disabled="true">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                        <field name="OID">deconz.0.Sensors.6.presence</field>
                                                        <field name="WITH_DELAY">FALSE</field>
                                                        <value name="VALUE">
                                                          <block type="logic_boolean" id="J5VYYL98Ib}qaE`GTXmi">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </xml>
                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  Jan1 @lustig29 last edited by Jan1

                                  @lustig29
                                  sollte so laufen:

                                  <xml xmlns="https://developers.google.com/blockly/xml">
                                    <block type="on" id="{!Ow5W{xI=1u8E[NnSUK" x="-713" y="-962">
                                      <field name="OID">deconz.0.Sensors.14.presence</field>
                                      <field name="CONDITION">gt</field>
                                      <field name="ACK_CONDITION"></field>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="Kx3vNe=R:}qK8)0gWt@">
                                          <mutation elseif="1"></mutation>
                                          <value name="IF0">
                                            <block type="logic_operation" id="4?*WfIKqZiI!c(5PfJ@j" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_operation" id="x`2E4DnQ.BgSd,iRP*c8" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="logic_compare" id="Ohd:_Bw/iju]Awl-^=z-">
                                                      <field name="OP">NEQ</field>
                                                      <value name="A">
                                                        <block type="time_get" id="O^x[v[!?catkP4RCpOz]">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                          <field name="OPTION">wd</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="Ja2f??qvp!GX*YKtcJ]6">
                                                          <field name="NUM">5</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_compare" id=")oLQU@bu6a5/?n_Dhv1h">
                                                      <field name="OP">NEQ</field>
                                                      <value name="A">
                                                        <block type="time_get" id="NN4DT)!uI~)C([1SECM*">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                          <field name="OPTION">wd</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="My8hqgd2/OACXUvdMGC{">
                                                          <field name="NUM">6</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="time_compare_ex" id="Tt0_xmUcA.@q=R^6c?K">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                                  <field name="USE_ACTUAL_TIME">TRUE</field>
                                                  <field name="OPTION">not between</field>
                                                  <value name="START_TIME">
                                                    <shadow type="text" id="Ds2^t-6oqCLq{#P9fh(/">
                                                      <field name="TEXT">21:00</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="END_TIME">
                                                    <shadow type="text" id="gu#LKi_N|YJrLy[.i6XR">
                                                      <field name="TEXT">04:30</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="procedures_callnoreturn" id="HYDQ4AV{{wC}d6ksPT*]">
                                              <mutation name="mach Musik"></mutation>
                                            </block>
                                          </statement>
                                          <value name="IF1">
                                            <block type="logic_operation" id="H:r0a@jlkAc9sL$O(O#V" inline="false">
                                              <field name="OP">AND</field>
                                              <value name="A">
                                                <block type="logic_operation" id="P$fbDr7:773XkVU2=BJp" inline="false">
                                                  <field name="OP">OR</field>
                                                  <value name="A">
                                                    <block type="logic_compare" id="i3/O:|ti/LY/uHR/fEU+">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="time_get" id="^G;Psf~+o2]}Uob(]b2a">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                          <field name="OPTION">wd</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="_.Mul65$$G*j*sZ^bQ.r">
                                                          <field name="NUM">5</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_compare" id="iK:{R?msG0E(6C}XAUog">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="time_get" id="H{FxEk#$^~Rwn5uv]37Y">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                                                          <field name="OPTION">wd</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="math_number" id="_P;Wn7P;KOm7#aLJNC)}">
                                                          <field name="NUM">6</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="B">
                                                <block type="time_compare_ex" id="^lfh?S(toOnFPFKDFi+g">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                                  <field name="USE_ACTUAL_TIME">TRUE</field>
                                                  <field name="OPTION">not between</field>
                                                  <value name="START_TIME">
                                                    <shadow type="text" id="8dK5/$+^{fKNNFd^zvf/">
                                                      <field name="TEXT">23:00</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="END_TIME">
                                                    <shadow type="text" id="z=Vk@M/,CRI+E`n8`bUU">
                                                      <field name="TEXT">04:30</field>
                                                    </shadow>
                                                  </value>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                          <statement name="DO1">
                                            <block type="procedures_callnoreturn" id="dz?2/:3,Q*Br%A9/HRYS">
                                              <mutation name="mach Musik"></mutation>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="on" id="sM:.Y~^%@f(]1=[;xCd]">
                                          <field name="OID">deconz.0.Sensors.9.open</field>
                                          <field name="CONDITION">gt</field>
                                          <field name="ACK_CONDITION"></field>
                                          <statement name="STATEMENT">
                                            <block type="controls_if" id="5cj)P381Yi%K(%Q6B4l">
                                              <value name="IF0">
                                                <block type="get_value" id="I,5DN_vB(m]L_X%%l0C">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">javascript.0.scriptEnabled.Alexa.Musik_an</field>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="control" id="-YhxQx;-Ohq38S3jpH,F">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Player.controlPause</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id=".=Zr.OXX+3jD[5g4N84O">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="z.h$,n|N2GUp46ne8_SS">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">javascript.0.scriptEnabled.Alexa.Musik_an</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="#Lz~5_ooORwjdqU#Xd|]">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="oQu-RS?b?*%VTU/wm#PF" disabled="true">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">deconz.0.Sensors.6.presence</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="J5VYYL98Ib}qaE`GTXmi">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                    <block type="procedures_defnoreturn" id="zDn%EJ=R{.L40rH7~+|Q" x="62" y="-962">
                                      <field name="NAME">mach Musik</field>
                                      <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                                      <statement name="STACK">
                                        <block type="control" id="0caXwgeFdZ2+*-%4$]n7" disabled="true">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                          <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Commands.speak-volume</field>
                                          <field name="WITH_DELAY">TRUE</field>
                                          <field name="DELAY_MS">1</field>
                                          <field name="UNIT">sec</field>
                                          <field name="CLEAR_RUNNING">FALSE</field>
                                          <value name="VALUE">
                                            <block type="math_number" id="qgnMFdS`CHLm~05gl|0$">
                                              <field name="NUM">30</field>
                                            </block>
                                          </value>
                                          <next>
                                            <block type="control" id="beIy{b}b`o+JDO}s--G*" disabled="true">
                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                              <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Commands.ssml</field>
                                              <field name="WITH_DELAY">FALSE</field>
                                              <value name="VALUE">
                                                <block type="text" id="@8xQbOq8H?PQJA?Obn$x">
                                                  <field name="TEXT">&lt;speak&gt;&lt;voice name="Hans"&gt;Hallo, ich wünsche dir viel Erfolg bei deinem Geschäft. Hände waschen bitte nicht vergessen!&lt;/voice&gt;.&lt;/speak&gt;</field>
                                                </block>
                                              </value>
                                              <next>
                                                <block type="control" id="k!y+]`TjgB*YNCulFP(b" disabled="true">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Player.volume</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="math_number" id="|,.2zG8A2}c;nn9~X%3Z">
                                                      <field name="NUM">20</field>
                                                    </block>
                                                  </value>
                                                  <next>
                                                    <block type="control" id="!l0yy;jVq!YL4RH3xD/8" disabled="true">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="true"></mutation>
                                                      <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Music-Provider.TuneIn</field>
                                                      <field name="WITH_DELAY">TRUE</field>
                                                      <field name="DELAY_MS">4</field>
                                                      <field name="UNIT">sec</field>
                                                      <field name="CLEAR_RUNNING">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="text" id="V4T*~XZ),3.JVa}:sLV,">
                                                          <field name="TEXT">HR 3</field>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="control" id="DENupJe1)#Ft`L$5)c^,">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">alexa2.0.Echo-Devices.G2A0QU0574740N2B.Player.controlPlay</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="I%X3.ec/A@FYni-5!MvP">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                          <next>
                                                            <block type="control" id="-K*]=!?T(x=t3aH]yXB">
                                                              <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                              <field name="OID">javascript.0.scriptEnabled.Alexa.Musik_an</field>
                                                              <field name="WITH_DELAY">FALSE</field>
                                                              <value name="VALUE">
                                                                <block type="logic_boolean" id="R4Lwk@QMSU7wLUUR_{)">
                                                                  <field name="BOOL">TRUE</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </next>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </next>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </statement>
                                    </block>
                                  </xml>
                                  
                                  L 1 Reply Last reply Reply Quote 0
                                  • L
                                    lustig29 @Jan1 last edited by

                                    @Jan1 Hallo, das Skript läuft soweit ganz gut. Ich muss es nur beim ersten betreten selbst starten...?
                                    Beim ersten Betreten passiert nichts. Wenn ich Alexa sage: "Spiele... auf Tunein", geht es los.
                                    Beim nächsten Betreten des Bades funktioniert dann das Skript wie gewollt. Bewegung wird erkannt, Wiedergabe startet.
                                    Ich vermute das es mit dem Control Play / Control Pause zusammen hängt. Sind ja Buttons.
                                    Ich habe leider noch keine Lösung gefunden.
                                    Den BMW, schließe ich als Fehler aus. Ich habe noch einen LED Streifen im Bad, der über diesen und den Türkontakt gestört wird. Das geht ohne Probleme

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      Jan1 @lustig29 last edited by

                                      @lustig29
                                      Schau doch einfach mal die Trigger DPs an, wie die zuerst stehen und ob die sich wie angegeben ändern.

                                      L 1 Reply Last reply Reply Quote 0
                                      • L
                                        lustig29 @Jan1 last edited by

                                        @Jan1 Control Play steht schon auf true. Das dürfte doch nicht sein, oder?

                                        J dslraser 2 Replies Last reply Reply Quote 0
                                        • J
                                          Jan1 @lustig29 last edited by

                                          @lustig29
                                          Du startest ja ein weiteres Script und kein Plan was das macht. Wenn irgendwas auf true steht, hast einfach vergessen das per Script auch wieder auf false zu schalten. Schau einfach wo was nicht passt und ergänzt es. Das Grundgerüst läuft ja und der Rest ist Kindergeburtstag.

                                          L 1 Reply Last reply Reply Quote 0
                                          • dslraser
                                            dslraser Forum Testing Most Active @lustig29 last edited by dslraser

                                            @lustig29
                                            das geht schon so wie Du das machen möchtest, aber warum so kompliziert ?
                                            Ich habe mir mal eine Routine in der Alexa App gemacht (spiele ndr zwei). Diese Routine ist im Alexa Adapter (nach dem Routine erstellen den Adapter neu starten) verfügbar. Bei mir ist der Trigger eine HUE Lampe (weil die sowieso über einen Bewegungsmelder eingeschaltet wird) Diese Routine läuft immer zuverlässig und das Blockly wird sehr einfach (bis auf Deine Zusatzeinschränkungen)
                                            Geht das Licht an, startet der Radiosender, geht das Licht aus, dann auch der Radiosender...

                                            Routine
                                            Screenshot_20200709-170423_Amazon Alexa.jpg

                                            Screenshot_20200709-170445_Amazon Alexa.jpg

                                            Mein kurzes Blockly

                                            Bildschirmfoto 2020-07-09 um 17.00.56.png

                                            Edit: und hier schaltest Du ganze Scripte an und aus, das ist ohnehin nicht empfohlen...

                                            Bildschirmfoto 2020-07-09 um 17.10.01.png

                                            und hier...

                                            Bildschirmfoto 2020-07-09 um 17.10.09.png

                                            L 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            585
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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