Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Verständnisfrage Blockly / Trigger <-> mehrere Bedingungen

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Verständnisfrage Blockly / Trigger <-> mehrere Bedingungen

    This topic has been deleted. Only users with topic management privileges can see it.
    • hydrotec
      hydrotec @Cinimod last edited by

      @cinimod

      Sind eigentlich nur noch drei Schalter davor.
      Blockly_Trigger_Bedingungen_05.png

      @cinimod sagte in Verständnisfrage Blockly / Trigger <-> mehrere Bedingungen:

      @hydrotec

      ... müsste man vielleicht parallel mal nen ganz neues Puzzle´n ...

      Meinst du damit, das die Schalter dann auch noch mit in den "Trigger mit Objekt ID Liste" integriert werden sollten?
      Wird es dann nicht etwas unübersichtlich?
      Schau mir das nachher mal an, wie ich das umsetzen kann.

      Gruß, Karsten

      Cinimod 1 Reply Last reply Reply Quote 0
      • Cinimod
        Cinimod Most Active @hydrotec last edited by Cinimod

        @hydrotec

        Ich meinte nur bevor du deins was ja mehr oder weniger funktionert, zerlegst, lieber ein zweites aufbauen und dieses nacher weg donnern wenn das neue gut funktioniert.

        hydrotec 1 Reply Last reply Reply Quote 0
        • hydrotec
          hydrotec @Cinimod last edited by hydrotec

          @cinimod
          in etwas so?
          Blockly_Trigger_Bedingungen_06.png

          <xml xmlns="https://developers.google.com/blockly/xml">
            <block type="on_ext" id="*|#mcW[?)%S%x[SlEG,a" x="313" y="1138">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="q,D5hL!um?3EjegVTtJ7">
                  <field name="oid">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id="n}#i8blXZhTv{yU:W?b8">
                  <field name="oid">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                </shadow>
              </value>
              <value name="OID2">
                <shadow type="field_oid" id="mZ[TOtA:Sgg8iI|)5g~?">
                  <field name="oid">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="/L+oZ{ge73[67}1YgoU5">
                  <mutation else="1"></mutation>
                  <value name="IF0">
                    <block type="logic_operation" id="EAw{Rq(2V_Iag7f?eP5b" inline="false">
                      <field name="OP">OR</field>
                      <value name="A">
                        <block type="logic_operation" id="cqy(sqhVhWFV]9mG2,Gf" inline="false">
                          <field name="OP">AND</field>
                          <value name="A">
                            <block type="logic_compare" id="=o^/)A,8ICg$o3@+_$sW" inline="false">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="u4NXX(yeVKWh#=qbngmW">
                                  <field name="ATTR">val</field>
                                  <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="sFVgj5:r.cel1i3;@_P{">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_operation" id="NbHR!`:cyQ6=H+CD4B5f" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="4@Yt$YM9?*#WCLty[@m(" inline="false">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="3h?ChJJZ~C_!{j%w4G}Z">
                                      <field name="ATTR">val</field>
                                      <field name="OID">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="_vDSTn`VctJhcNdWbF4u">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_compare" id=":{CLp$%}N5~$0Eq|Mg]w" inline="false">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="K#}t72~$1Z)r]IW7(Axn">
                                      <field name="ATTR">val</field>
                                      <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="8.roj?sYokn2}nXc0:Ci">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                      <value name="B">
                        <block type="logic_operation" id="ml0ADE^d*(Ai2#-u}imi" inline="false">
                          <field name="OP">OR</field>
                          <value name="A">
                            <block type="logic_operation" id="q|]NT7$1tn-#}uG{FNV|" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="9#+a!9JOClE5ah*s]-GC" inline="false">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="-fs,W0hd|W![YEO.v}$w">
                                      <field name="ATTR">val</field>
                                      <field name="OID">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="E-pquXJ`Y{?AFtThKyFw">
                                      <field name="BOOL">FALSE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_operation" id="oHGPY9R`6^?`9.?~Ws)0" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_compare" id=",{nO|f_hNiBZ8}qk};UO" inline="false">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="J(/b-/Ixu-d)?|_ebq;N">
                                          <field name="ATTR">val</field>
                                          <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="iIXc@=pa8M|9QHk9dt+8">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="rCEv;(*w*fohm$Vc^_Z8" inline="false">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="p:CcW]25i}fufEXNFjNM">
                                          <field name="ATTR">val</field>
                                          <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="c}AOvg?qhXQlEm7a,?39">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <value name="B">
                            <block type="logic_operation" id="N3ZRcSj)CVt^-zH`,L+w" inline="false">
                              <field name="OP">AND</field>
                              <value name="A">
                                <block type="logic_compare" id="5m@Rc5%Y;MsjVG+|4d~}" inline="false">
                                  <field name="OP">EQ</field>
                                  <value name="A">
                                    <block type="get_value" id="D=)m6[9P7;%I6U$[%nu/">
                                      <field name="ATTR">val</field>
                                      <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_boolean" id="8B.@}A?,v?tk}F,[imH(">
                                      <field name="BOOL">TRUE</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_operation" id="8D,]llSFHJN3CBF0@#,^" inline="false">
                                  <field name="OP">AND</field>
                                  <value name="A">
                                    <block type="logic_compare" id="yB|r|[{/UO+T*$fD4:Ks" inline="false">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="xzRxn#~X57ziEMYc;;kV">
                                          <field name="ATTR">val</field>
                                          <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="Zf[t^lZ`/+36{e2s;q17">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="B">
                                    <block type="logic_compare" id="lM%N0swHcj=-f,of5H;~" inline="false">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="_6A:W~t@+^=ENQXZ5S|O">
                                          <field name="ATTR">val</field>
                                          <field name="OID">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="YjyD9Q*(aDrD1tx7UWG]">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                        </block>
                      </value>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="control" id=")I,9P?!E!RO^cbno|!7U">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">hue.0.z_hallway_ceiling.scene_entspannen</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="!s(|beogfTZuuXJZTriJ">
                          <field name="BOOL">TRUE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                  <statement name="ELSE">
                    <block type="control" id="7(5]MTf=grqx8#P!tRv`">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                      <field name="OID">hue.0.z_hallway_ceiling.on</field>
                      <field name="WITH_DELAY">FALSE</field>
                      <value name="VALUE">
                        <block type="logic_boolean" id="Gb:jwNvxB]W`?LZkR#qK">
                          <field name="BOOL">FALSE</field>
                        </block>
                      </value>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </xml>
          

          EDIT: Wenn etwas funktioniert (ganz oder teilweise), und ich möchte Veränderungen anbringen, wird ein Backup gemacht.
          Gebranntes Kind...usw 😉

          Cinimod 1 Reply Last reply Reply Quote 0
          • Cinimod
            Cinimod Most Active @hydrotec last edited by Cinimod

            @hydrotec

            Ja etwa so, die Prüfung auf wahr kannst du dir allerdings sparen.

            Und du kannst auch „sonst falls“ nutzen, anstatt „oder“ Ist etwas unübersichtlich jetzt …

            Die Schalter in einem Trigger… weiß auch nicht so recht ob das sinn macht … ggf. schon, weil du immer das selbe Ergebnis haben willst… „aber“ einmal auf „geändert“ und zwei mal auf „aktualisiert“ getriggert wird… wenn das mit dem dritten auch geht auf „aktualisiert “ würd ich‘s vielleicht machen

            hydrotec 2 Replies Last reply Reply Quote 0
            • hydrotec
              hydrotec @Cinimod last edited by

              @cinimod

              War jetzt nur mal auf die Schnelle zusammengestellt.

              Code habe ich oben eingefügt.

              1 Reply Last reply Reply Quote 1
              • hydrotec
                hydrotec @Cinimod last edited by

                @cinimod

                Jetzt habe ich mal "sonst falls" mit eingebaut.
                Blockly_Trigger_Bedingungen_07.png

                <xml xmlns="https://developers.google.com/blockly/xml">
                  <block type="on_ext" id="*|#mcW[?)%S%x[SlEG,a" x="331" y="1196">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
                    <field name="CONDITION">ne</field>
                    <field name="ACK_CONDITION"></field>
                    <value name="OID0">
                      <shadow type="field_oid" id="q,D5hL!um?3EjegVTtJ7">
                        <field name="oid">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                      </shadow>
                    </value>
                    <value name="OID1">
                      <shadow type="field_oid" id="n}#i8blXZhTv{yU:W?b8">
                        <field name="oid">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                      </shadow>
                    </value>
                    <value name="OID2">
                      <shadow type="field_oid" id="mZ[TOtA:Sgg8iI|)5g~?">
                        <field name="oid">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                      </shadow>
                    </value>
                    <statement name="STATEMENT">
                      <block type="controls_if" id="/L+oZ{ge73[67}1YgoU5">
                        <mutation elseif="2" else="1"></mutation>
                        <value name="IF0">
                          <block type="logic_operation" id="cqy(sqhVhWFV]9mG2,Gf" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="get_value" id="u4NXX(yeVKWh#=qbngmW">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="NbHR!`:cyQ6=H+CD4B5f" inline="false">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="4@Yt$YM9?*#WCLty[@m(" inline="false">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="3h?ChJJZ~C_!{j%w4G}Z">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="_vDSTn`VctJhcNdWbF4u">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id=":{CLp$%}N5~$0Eq|Mg]w" inline="false">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="K#}t72~$1Z)r]IW7(Axn">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="8.roj?sYokn2}nXc0:Ci">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id=")I,9P?!E!RO^cbno|!7U">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">hue.0.z_hallway_ceiling.scene_entspannen</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="!s(|beogfTZuuXJZTriJ">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_operation" id="q|]NT7$1tn-#}uG{FNV|" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_negate" id="SZOUWGY(:S.x3g{{i}V2">
                                <value name="BOOL">
                                  <block type="get_value" id="-fs,W0hd|W![YEO.v}$w">
                                    <field name="ATTR">val</field>
                                    <field name="OID">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="oHGPY9R`6^?`9.?~Ws)0" inline="false">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id=",{nO|f_hNiBZ8}qk};UO" inline="false">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="J(/b-/Ixu-d)?|_ebq;N">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="iIXc@=pa8M|9QHk9dt+8">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="rCEv;(*w*fohm$Vc^_Z8" inline="false">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="p:CcW]25i}fufEXNFjNM">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="c}AOvg?qhXQlEm7a,?39">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="control" id="H)84y#{rFxa6#SJA_UMU">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">hue.0.z_hallway_ceiling.scene_entspannen</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="5f$jiJ5qq!QTyXA(OZh4">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF2">
                          <block type="logic_operation" id="N3ZRcSj)CVt^-zH`,L+w" inline="false">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="get_value" id="D=)m6[9P7;%I6U$[%nu/">
                                <field name="ATTR">val</field>
                                <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_operation" id="8D,]llSFHJN3CBF0@#,^" inline="false">
                                <field name="OP">AND</field>
                                <value name="A">
                                  <block type="logic_compare" id="yB|r|[{/UO+T*$fD4:Ks" inline="false">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="xzRxn#~X57ziEMYc;;kV">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="Zf[t^lZ`/+36{e2s;q17">
                                        <field name="BOOL">TRUE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="logic_compare" id="lM%N0swHcj=-f,of5H;~" inline="false">
                                    <field name="OP">EQ</field>
                                    <value name="A">
                                      <block type="get_value" id="_6A:W~t@+^=ENQXZ5S|O">
                                        <field name="ATTR">val</field>
                                        <field name="OID">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                                      </block>
                                    </value>
                                    <value name="B">
                                      <block type="logic_boolean" id="YjyD9Q*(aDrD1tx7UWG]">
                                        <field name="BOOL">FALSE</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO2">
                          <block type="control" id="/3}i6JCVJwlWd$:sYI]2">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">hue.0.z_hallway_ceiling.scene_entspannen</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="4f=iYE@lLAnTDhN9J9sd">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <statement name="ELSE">
                          <block type="control" id="7(5]MTf=grqx8#P!tRv`">
                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                            <field name="OID">hue.0.z_hallway_ceiling.on</field>
                            <field name="WITH_DELAY">FALSE</field>
                            <value name="VALUE">
                              <block type="logic_boolean" id="Gb:jwNvxB]W`?LZkR#qK">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                  </block>
                </xml>
                

                Bei den Schaltern von Xiaomi musste ich "aktualisiere" nehmen, das sie bei einmaligem betätigen eben nur einen Wert übermitteln. Ansonsten hätte ich noch "double" mit hinzunehmen müssen, und das wollte ich nicht.

                N 1 Reply Last reply Reply Quote 0
                • N
                  Nordischerjung @hydrotec last edited by

                  @hydrotec Moin,

                  ich arbeite gerne mir Variablen, finde ich, ist übersichtlicher. Nur so als Idee

                  a69e09d4-1d2f-4163-8286-1f9945a8b152-grafik.png

                  hydrotec 1 Reply Last reply Reply Quote 0
                  • hydrotec
                    hydrotec @Nordischerjung last edited by

                    @nordischerjung

                    Guten Morgen,

                    auch dir ein Dankeschön für deinen Hinweis 🙂

                    Mit Variablen kann man das auch noch etwas aufhübschen.
                    Werde ich mal mit einbauen. 😉

                    Gruß, Karsten

                    Cinimod 1 Reply Last reply Reply Quote 0
                    • Cinimod
                      Cinimod Most Active @hydrotec last edited by Cinimod

                      @hydrotec

                      Fragst du nicht drei mal genau die selben Bedingungen ab ?

                      Bildschirmfoto 2021-10-19 um 10.28.02.png

                      hydrotec 1 Reply Last reply Reply Quote 0
                      • hydrotec
                        hydrotec @Cinimod last edited by hydrotec

                        @cinimod

                        Vom Prinzip her sogar dreimal.

                        Ich dachte das ich auf jede Bedingung reagieren muss. Denkfehler 😢

                        Edit: Du warst schneller 😉

                        Edit die Zweite:
                        Das ist noch der Struktur von drei verschiedenen Triggern geschuldet.

                        Bau ich gleich mal um

                        Cinimod 1 Reply Last reply Reply Quote 0
                        • Cinimod
                          Cinimod Most Active @hydrotec last edited by Cinimod

                          @hydrotec

                          Nein musst du nicht. Nur bei welcher du eine Aktion haben möchtest.

                          EDIT: Ah verstehe... hast jetzt alles dreifach weil die Trigger zusammen gelegt hast.

                          Die Variablen machen dann natürlich auch nicht viel Sinn, wenn du sie nicht mehrfach benutzt in dem Skript.

                          hydrotec 2 Replies Last reply Reply Quote 1
                          • hydrotec
                            hydrotec @Cinimod last edited by

                            @cinimod
                            Bei allen drei Bedingungen soll auch getriggert werden.

                            Wenn isDay sich ändert, dann soll auch die Lampe geschaltet werden.
                            Unter der Vorraussetzung das die anderen beiden Bedingungen übereinstimmen.
                            Und genauso soll es sich bei den beiden anderen Bedingungen auch verhalten.
                            Also, wenn iCal sich ändert, usw.

                            1 Reply Last reply Reply Quote 0
                            • hydrotec
                              hydrotec @Cinimod last edited by

                              @cinimod sagte in Verständnisfrage Blockly / Trigger <-> mehrere Bedingungen:

                              EDIT: Ah verstehe... hast jetzt alles dreifach weil die Trigger zusammen gelegt hast.

                              👍

                              Cinimod 1 Reply Last reply Reply Quote 0
                              • Cinimod
                                Cinimod Most Active @hydrotec last edited by Cinimod

                                @hydrotec

                                Alle drei Objekte im Trigger lösen den Trigger aus wenn sie sich verändern.

                                Dann müssen natürlich noch alle drei Bedingungen erfüllt sein zum EINSCHALTEN.
                                Sollte einer dieser Bedingung nicht erfüllt sein schaltet er aus, nach aktuellem Stand.

                                Bildschirmfoto 2021-10-19 um 10.36.48.png

                                Du kannst natürlich für das ausschalten auch Bedingungen definieren, dann musst du einen "sonst falls" einbauen, statt dem "sonst"

                                hydrotec 1 Reply Last reply Reply Quote 1
                                • hydrotec
                                  hydrotec @Cinimod last edited by

                                  @cinimod

                                  Das ist genau das was ich wollte 👍

                                  Man lernt halt nie aus. 😉

                                  Auf dieser Grundlage kann ich wieder etwas weiter basteln.
                                  Vielen Dank für deine Geduld, und noch einen angenehmen Tag 🙂

                                  Gruß, Karsten

                                  Cinimod 1 Reply Last reply Reply Quote 0
                                  • Cinimod
                                    Cinimod Most Active @hydrotec last edited by

                                    @hydrotec Immer gern, wünsche ich dir auch.

                                    1 Reply Last reply Reply Quote 0
                                    • hydrotec
                                      hydrotec last edited by

                                      Nur der Vollständigkeit halber, nochmal das ganze script inklusive Schalter.
                                      Anstatt 680 Zeilen, nur noch 311 Zeilen an Code.
                                      Das kann sich sehen lassen 😉

                                      Blockly_Trigger_Bedingungen_08.png

                                      <xml xmlns="https://developers.google.com/blockly/xml">
                                        <block type="on_ext" id="A@hLFm%=f,-t)_p~5;Ck" x="363" y="337">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                          <field name="CONDITION">any</field>
                                          <field name="ACK_CONDITION"></field>
                                          <value name="OID0">
                                            <shadow type="field_oid" id="L?#|2YS]$o7!/nz}+6Kl">
                                              <field name="oid">mqtt.1.zigbee2mqtt.xi_switch_01.action</field>
                                            </shadow>
                                          </value>
                                          <value name="OID1">
                                            <shadow type="field_oid" id="#Miu][z7z%=0;T_5lUvZ">
                                              <field name="oid">mqtt.1.zigbee2mqtt.xi_switch_02.action</field>
                                            </shadow>
                                          </value>
                                          <statement name="STATEMENT">
                                            <block type="controls_if" id="_4Is,2PE0{{s;Ub8JHaQ">
                                              <mutation elseif="1"></mutation>
                                              <value name="IF0">
                                                <block type="logic_operation" id="Qq0{~;5/Juz):X(#fH0F" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="logic_operation" id="cmKKJT[XtHs5[eu7fSFY" inline="false">
                                                      <field name="OP">OR</field>
                                                      <value name="A">
                                                        <block type="logic_compare" id="d-mUr/_G$*Gp/gw?o$.|">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="(_O?$k2_.vB+Z(@cXJU[">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_01.action</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="text" id="b|w6^%!zi$UxcI[y|N=B">
                                                              <field name="TEXT">single</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_compare" id="CguO%DZ/~DEiYA8cxh.Y">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="*qpVLDhkVY[L@RmsfxRy">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_02.action</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="text" id="WWq%Ind[Bt2Xrho0n.j:">
                                                              <field name="TEXT">single</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_compare" id="JWRqy^.A{}jE3ro7a9*x">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id="nPF^F;yVRK87msS~ph3C">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">hue.0.z_hallway_ceiling.on</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="}^2jX]hdHR/Y^#dptLzX">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="control" id="d6^Bj@_$L@d*D)kLOwt-">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">hue.0.z_hallway_ceiling.scene_entspannen</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="6gj_[tUX$*IK09#mWl(j">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                              <value name="IF1">
                                                <block type="logic_operation" id="W.]bz|NZL8^t0*eO4a9a" inline="false">
                                                  <field name="OP">AND</field>
                                                  <value name="A">
                                                    <block type="logic_operation" id="mCOAEFKy;=xJh{c9e(q-" inline="false">
                                                      <field name="OP">OR</field>
                                                      <value name="A">
                                                        <block type="logic_compare" id="^Ee81fc]m`]2%OLr:Lg[">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="_~)7TAlh~yN7J?7.X!ud">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_01.action</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="text" id="VC:tW0ln!k60.ITWjIw)">
                                                              <field name="TEXT">single</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_compare" id="VD[(T$#(QMx;bKSrU$?-">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="iO9*V;cy`4RIq:}J$p$j">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_02.action</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="text" id="~I0w~~V]IZ_,|Hq0:$dB">
                                                              <field name="TEXT">single</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_compare" id="`Sm/G#6s+5kNBaklTQ@h">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id=",vHU(%n{94y-~bUNOF@9">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">hue.0.z_hallway_ceiling.on</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="PX?lqN5`BL}YnE5HNYXE">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO1">
                                                <block type="control" id="16!faWg[OYmoOmq=FqS+">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">hue.0.z_hallway_ceiling.on</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="nUZ7:G_{-@o.la$qepYY">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                          <next>
                                            <block type="on" id="nyDQxdsX}/5jI`;q2eQ]">
                                              <field name="OID">mqtt.1.zigbee2mqtt.hue_dimmer_switch_01.action</field>
                                              <field name="CONDITION">ne</field>
                                              <field name="ACK_CONDITION"></field>
                                              <statement name="STATEMENT">
                                                <block type="controls_if" id="vP]u{ZL*qzm$TW2P;Y8!">
                                                  <mutation elseif="1"></mutation>
                                                  <value name="IF0">
                                                    <block type="logic_compare" id="DRgLJQB{2L5XxuZ[xb9(">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="on_source" id="wCQ3BFiDtcN6^rYL|qZj">
                                                          <field name="ATTR">state.val</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="text" id="pIF`P@/0-l}+P+([Y;b.">
                                                          <field name="TEXT">on_press_release</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO0">
                                                    <block type="control" id="{%R$|avQPJq7J8h7ohPQ">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">hue.0.z_hallway_ceiling.scene_entspannen</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="GJP}KpgWEWDvg.YzB;Ok">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                  <value name="IF1">
                                                    <block type="logic_compare" id="^$#@e(v|TUy7zag:YF}Z">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="on_source" id="Glb3vYG`:WGg@;k%S/-(">
                                                          <field name="ATTR">state.val</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="text" id="Z.{3@@JabqW_4-Il.t4P">
                                                          <field name="TEXT">off_press_release</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="DO1">
                                                    <block type="control" id="bz]YzxN);~+edl$00wL#">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">hue.0.z_hallway_ceiling.on</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="logic_boolean" id="+Ge$S$C2+VsHc=s][RR+">
                                                          <field name="BOOL">FALSE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </statement>
                                              <next>
                                                <block type="on_ext" id="*|#mcW[?)%S%x[SlEG,a">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
                                                  <field name="CONDITION">ne</field>
                                                  <field name="ACK_CONDITION"></field>
                                                  <value name="OID0">
                                                    <shadow type="field_oid" id="q,D5hL!um?3EjegVTtJ7">
                                                      <field name="oid">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="OID1">
                                                    <shadow type="field_oid" id="n}#i8blXZhTv{yU:W?b8">
                                                      <field name="oid">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                                                    </shadow>
                                                  </value>
                                                  <value name="OID2">
                                                    <shadow type="field_oid" id="mZ[TOtA:Sgg8iI|)5g~?">
                                                      <field name="oid">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                                    </shadow>
                                                  </value>
                                                  <statement name="STATEMENT">
                                                    <block type="controls_if" id="/L+oZ{ge73[67}1YgoU5">
                                                      <mutation else="1"></mutation>
                                                      <value name="IF0">
                                                        <block type="logic_operation" id="cqy(sqhVhWFV]9mG2,Gf" inline="false">
                                                          <field name="OP">AND</field>
                                                          <value name="A">
                                                            <block type="get_value" id="n~LZ,LV)qor$OJ#DLZH#">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_operation" id="NbHR!`:cyQ6=H+CD4B5f" inline="false">
                                                              <field name="OP">AND</field>
                                                              <value name="A">
                                                                <block type="logic_negate" id="Mz./9Mt=Pyb8UhoV5+@b">
                                                                  <value name="BOOL">
                                                                    <block type="get_value" id="ort4i|M;OVF+VsTBQXL-">
                                                                      <field name="ATTR">val</field>
                                                                      <field name="OID">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                              <value name="B">
                                                                <block type="get_value" id="P3@Xw,v@yj7Ag1El*5-D">
                                                                  <field name="ATTR">val</field>
                                                                  <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <statement name="DO0">
                                                        <block type="control" id="~vSQzYjEiTQ|p@T=:o!Q">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">hue.0.z_hallway_ceiling.scene_entspannen</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="48`/T8+GE1xdIyULKD@u">
                                                              <field name="BOOL">TRUE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                      <statement name="ELSE">
                                                        <block type="control" id="D_qrgPs{?qDtS0}pY~Xy">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">hue.0.z_hallway_ceiling.on</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="logic_boolean" id="Gws9V?:Xr#(_%_PkYH;*">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </statement>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </next>
                                            </block>
                                          </next>
                                        </block>
                                      </xml>
                                      
                                      Cinimod T 2 Replies Last reply Reply Quote 0
                                      • Cinimod
                                        Cinimod Most Active @hydrotec last edited by Cinimod

                                        @hydrotec Falls sich der dritte Schalter auch mit "aktualisiert" trigger funktioniert, kannst daraus ja auch eins machen, dann mit nem oder block "wert = "on press releae"" verknüpfen.

                                        Bildschirmfoto 2021-10-19 um 11.49.55.png

                                        hydrotec 1 Reply Last reply Reply Quote 0
                                        • hydrotec
                                          hydrotec @Cinimod last edited by

                                          @cinimod

                                          Das war mein erster Versuch, funktioniert leider nicht.
                                          Selbst wenn die Lampe aus ist, und "off_press_release" betätigt wird, schaltet sich die Lampe ein.
                                          Ist jetzt, aus meiner Sicht, nicht so dramatisch, wenn das ein extra Trigger ist.
                                          Wenn ich mal wieder die Muse habe, werde ich mich damit beschäftigen, warum das so ist.
                                          Für's Erste bin ich soweit zufrieden. Funktion ist wie gewünscht.
                                          Und das Wichtigste, ich habe wieder etwas dazu gelernt 😉
                                          Danke dir nochmal.

                                          Gruß, Karsten

                                          Cinimod 1 Reply Last reply Reply Quote 0
                                          • hydrotec
                                            hydrotec last edited by

                                            Jetzt muss ich doch noch einmal nachhaken.

                                            Wenn ich folgendes script, welches in dieser Form funktioniert, umstrukturiere, dann wird bei der Lautstärkenänderung das Radio ausgeschaltet und anschließend wieder eingeschaltet.
                                            Ein und ausschalten funktioniert bei beiden scripten wie es soll.
                                            Wo liegt mein Denkfehler?

                                            Basis script
                                            Blockly_Trigger_Bedingungen_09.png

                                            <xml xmlns="https://developers.google.com/blockly/xml">
                                              <block type="comment" id="|hu]OPgX!qta+29}/G;u" x="438" y="-887">
                                                <field name="COMMENT">192_168_78_113 manually</field>
                                                <next>
                                                  <block type="on" id="]EDrUB(`|b#ZkvDo;;s(">
                                                    <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_05.action</field>
                                                    <field name="CONDITION">any</field>
                                                    <field name="ACK_CONDITION"></field>
                                                    <statement name="STATEMENT">
                                                      <block type="controls_if" id="g+#*tlvP_aoAqSF!]]4N">
                                                        <mutation elseif="1"></mutation>
                                                        <value name="IF0">
                                                          <block type="logic_operation" id="uk^ax4eXRhj-=R1JBF^b" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_compare" id="9V9=jLk2:bEucI-O%KgS">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="B#@Ool0#DI/_EAa8+e9J">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_05.action</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="o:%7-=zwT7SOcR^N(I(X">
                                                                    <field name="TEXT">single</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="m@BiE$o%-{DyrNE/BuZ5">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="cK7V|UwOq^1FRFO)$~y)">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="T9rM6c+-5=S^(A1M2X@~">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="comment" id="j)Sl$T^lnG`:+-ME8a}%">
                                                            <field name="COMMENT">192_168_78_113.play</field>
                                                            <next>
                                                              <block type="control" id="Tu6Y}c|0HGeTs,{re~TY">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">sonos.0.root.192_168_78_113.play</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="[FY!zE4uuzDKm;1jK1uj">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                        <value name="IF1">
                                                          <block type="logic_operation" id="SEDgkY(j!WQce]~eIX.," inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_compare" id="?96xn!HU[k7$gkcS=,7^">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="h=_1{GGLcN7/Zx7s;p(B">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_05.action</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="Drz(N:^J`KDV/|m:_0?N">
                                                                    <field name="TEXT">single</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="zw^QcQDHcM1~mvTJ-o8*">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="on]xh~1|E`C{eni@3ZMu">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="?fP=@DW$cS}Ff6vhdY,9">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO1">
                                                          <block type="comment" id="R@m.^{uV9a%-;VX.i~@p">
                                                            <field name="COMMENT">192_168_78_113.stop</field>
                                                            <next>
                                                              <block type="control" id="~BX[1(b*O*#t8SYDG,ph">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">sonos.0.root.192_168_78_113.stop</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="y5JMaV|]I)[VA#Om0K:r">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="on" id="5:qkeqjSlxRf35Fy@9#p">
                                                        <field name="OID">mqtt.1.zigbee2mqtt.ik_remote_symfonisk_02.action</field>
                                                        <field name="CONDITION">any</field>
                                                        <field name="ACK_CONDITION"></field>
                                                        <statement name="STATEMENT">
                                                          <block type="controls_if" id="0sk?fA:QXcbH3:p.=~Gc">
                                                            <mutation elseif="3"></mutation>
                                                            <value name="IF0">
                                                              <block type="logic_operation" id="30LVRQ=(W1+E;@SI#R}E" inline="false">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="F*Mvq6qe`qtf=E.Z6#,(">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="+R:Unj85lZi!E`u_.5AX">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">mqtt.1.zigbee2mqtt.ik_remote_symfonisk_02.action</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="text" id="[Ow1k.-DpO*x-VI[zQ}L">
                                                                        <field name="TEXT">toggle</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="dQukAP:Ciks]Lf*b3~#t">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="`_cAb0pu!0sQ9^8^E*PZ">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_boolean" id="A=tK8yRX5uZduuzQ.t?+">
                                                                        <field name="BOOL">FALSE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO0">
                                                              <block type="comment" id="b_Q[o[!7H87C]Hu/a5x-">
                                                                <field name="COMMENT">192_168_78_113.play</field>
                                                                <next>
                                                                  <block type="control" id="G~hr5%t2)gfJ4CW{kOsN">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">sonos.0.root.192_168_78_113.play</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="R,1fB+:VkD3F!x[0dtfQ">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <value name="IF1">
                                                              <block type="logic_operation" id="LyT;RS6Xt1w#!KtxvtWd" inline="false">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="Aii@JCeq=,/Eg|P_kn~u">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="n``w1Gi@`EP%/~~n2^]E">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">mqtt.1.zigbee2mqtt.ik_remote_symfonisk_02.action</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="text" id="dP9XWDKStK572W5A4yDT">
                                                                        <field name="TEXT">toggle</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="xfu?0[LvZ4(AgZ+v(Z4]">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="n6[,/I$KWR4_N2||XNQ9">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_boolean" id="k|Q|m?3{$gTTIte!G+ki">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO1">
                                                              <block type="comment" id="`(rvV}LfD}X5_Le?Qr8m">
                                                                <field name="COMMENT">192_168_78_113.stop</field>
                                                                <next>
                                                                  <block type="control" id="!RbuUyGZ)8QFw,`R+4q3">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">sonos.0.root.192_168_78_113.stop</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="logic_boolean" id="VqVZWV]AIeMfSjs5l=He">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <value name="IF2">
                                                              <block type="logic_operation" id="mh[((L=_3oB:N+ApV!Rw" inline="false">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="TdHr=0B*0A8SGu#rF~5r">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="9V@e/6l:!b4C4|et7%j=">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">mqtt.1.zigbee2mqtt.ik_remote_symfonisk_02.action</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="text" id="#Zi^55bSD.=y_+O.Vn7F">
                                                                        <field name="TEXT">brightness_move_down</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="@vm-_k%@raTT~_Bd{{B3">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="aSLIK/@V(}R|LUjRN#um">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_boolean" id="[gbH:}1XFo24P~Nm,jLo">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO2">
                                                              <block type="comment" id="3B8=ATk!6g[MMLE+d!y_">
                                                                <field name="COMMENT">192_168_78_113.group_volume down</field>
                                                                <next>
                                                                  <block type="control" id="qV97K``8QAkW3GN(SuqO">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">sonos.0.root.192_168_78_113.group_volume</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_arithmetic" id="lxGS_~s(lo%/@ECge+X@">
                                                                        <field name="OP">MINUS</field>
                                                                        <value name="A">
                                                                          <shadow type="math_number" id="%wH-rIkC^(*GX}]O!(WD">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="get_value" id="mc$4Ze1nXs40.T?n2rRt">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">sonos.0.root.192_168_78_113.group_volume</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id="(3)}c=t-7A^u#,_?.G5I">
                                                                            <field name="NUM">2</field>
                                                                          </shadow>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                            <value name="IF3">
                                                              <block type="logic_operation" id="#P%^nv]g^J~;RO0-:x0P" inline="false">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="2daA{Fu=x$V]EIZX;o2(">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="2W.^J{q|yD*ln@9ZK,{^">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">mqtt.1.zigbee2mqtt.ik_remote_symfonisk_02.action</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="text" id="Uo34{vyC*//jA^Pbt[1K">
                                                                        <field name="TEXT">brightness_move_up</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="a@Zjz:/@!)6?uhIm)JmT">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="GGC5.[sPf5Ni%rsc.Zy_">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_boolean" id="K?[`iF:%C+!,fUy!bjYs">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <statement name="DO3">
                                                              <block type="comment" id="3i!_IQQ`*@mTupiC0z(a">
                                                                <field name="COMMENT">192_168_78_113.group_volume up</field>
                                                                <next>
                                                                  <block type="control" id="HE%#VC{b!gO=Y]K_M8,J">
                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                    <field name="OID">sonos.0.root.192_168_78_113.group_volume</field>
                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                    <value name="VALUE">
                                                                      <block type="math_arithmetic" id="8{g;v)W*I,P_MGxs]Gj.">
                                                                        <field name="OP">ADD</field>
                                                                        <value name="A">
                                                                          <shadow type="math_number">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="get_value" id="CcV$.b`@7y1B%7/SKIb+">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">sonos.0.root.192_168_78_113.group_volume</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id="}@W.6znn)L+L#N+6Ry8.">
                                                                            <field name="NUM">2</field>
                                                                          </shadow>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </next>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </statement>
                                                        <next>
                                                          <block type="comment" id="Y;E/TqHDYg[md%RKNHw/">
                                                            <field name="COMMENT">192_168_78_113 automatic</field>
                                                            <next>
                                                              <block type="on_ext" id="pQi.%,OhPQz?`4Vdz6s3">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                                                <field name="CONDITION">ne</field>
                                                                <field name="ACK_CONDITION"></field>
                                                                <value name="OID0">
                                                                  <shadow type="field_oid" id="cJS[o(p::!QU@oRo}:Ue">
                                                                    <field name="oid">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                                                  </shadow>
                                                                </value>
                                                                <value name="OID1">
                                                                  <shadow type="field_oid" id="G}CnwOt9RdiY]vT56MX%">
                                                                    <field name="oid">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                                                  </shadow>
                                                                </value>
                                                                <statement name="STATEMENT">
                                                                  <block type="controls_if" id="U-^hwn%g_#T@I(6P-pbB">
                                                                    <mutation elseif="1"></mutation>
                                                                    <value name="IF0">
                                                                      <block type="logic_operation" id="CNOVL(NO9~LVxM89Zed-" inline="false">
                                                                        <field name="OP">AND</field>
                                                                        <value name="A">
                                                                          <block type="logic_operation" id="z#^t?UUidxU!V[j(P~X7" inline="false">
                                                                            <field name="OP">AND</field>
                                                                            <value name="A">
                                                                              <block type="get_value" id="cB_-%t5Nt-aTHpXIfRgn">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="get_value" id="]9;a)[E$V^q{b#/y3]/0">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_compare" id="HTwu~l_5Zs|DDB@40(!j">
                                                                            <field name="OP">EQ</field>
                                                                            <value name="A">
                                                                              <block type="get_value" id="%0M:(5|~8^#w6g~0xx1{">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="logic_boolean" id="27JWLa5{hCLlC]#i2l-;">
                                                                                <field name="BOOL">FALSE</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO0">
                                                                      <block type="comment" id="*7S_y$,,*E[{bta|:(W}">
                                                                        <field name="COMMENT">192_168_78_113.group_volume</field>
                                                                        <next>
                                                                          <block type="control" id="`|1LwE!UbzR9Yak@~=a%">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">sonos.0.root.192_168_78_113.group_volume</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="math_number" id="[zEf)WQT(pu/n`:gq+`[">
                                                                                <field name="NUM">16</field>
                                                                              </block>
                                                                            </value>
                                                                            <next>
                                                                              <block type="comment" id="gTE#33GT27Rx-,U}f4{1">
                                                                                <field name="COMMENT">192_168_78_113.play</field>
                                                                                <next>
                                                                                  <block type="control" id="rGbvudP^s_3}1xaJR[Eu">
                                                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                    <field name="OID">sonos.0.root.192_168_78_113.play</field>
                                                                                    <field name="WITH_DELAY">FALSE</field>
                                                                                    <value name="VALUE">
                                                                                      <block type="logic_boolean" id="y@1ABCgvmq@H$+/.gQ{5">
                                                                                        <field name="BOOL">TRUE</field>
                                                                                      </block>
                                                                                    </value>
                                                                                  </block>
                                                                                </next>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                    <value name="IF1">
                                                                      <block type="logic_operation" id="U6g{p{=R/ja^8A8lRGzB" inline="false">
                                                                        <field name="OP">AND</field>
                                                                        <value name="A">
                                                                          <block type="logic_operation" id="U~er*6{Oavo~,i5E.YN]" inline="false">
                                                                            <field name="OP">OR</field>
                                                                            <value name="A">
                                                                              <block type="logic_negate" id="l%;I`CeXn`ME*^EspWss">
                                                                                <value name="BOOL">
                                                                                  <block type="get_value" id="aW,.{LoAgB#jOUY(bN~z">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="logic_negate" id="?TK9!xtLwNgh;R![7]Ij">
                                                                                <value name="BOOL">
                                                                                  <block type="get_value" id="aT~UP]XA3eaa76v)2N;t">
                                                                                    <field name="ATTR">val</field>
                                                                                    <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_compare" id="C%lc)QT;i5Kef`v2*YxX">
                                                                            <field name="OP">EQ</field>
                                                                            <value name="A">
                                                                              <block type="get_value" id="JZ@lMpDvw*J05I?LdWGk">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                              </block>
                                                                            </value>
                                                                            <value name="B">
                                                                              <block type="logic_boolean" id="2fF9aSo^moL6pA=^|HE!">
                                                                                <field name="BOOL">TRUE</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <statement name="DO1">
                                                                      <block type="comment" id="E952D?u66HgnhpqK3O~Q">
                                                                        <field name="COMMENT">192_168_78_113.stop</field>
                                                                        <next>
                                                                          <block type="control" id="rW.(7CW0r2!{*th##75g">
                                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                            <field name="OID">sonos.0.root.192_168_78_113.stop</field>
                                                                            <field name="WITH_DELAY">FALSE</field>
                                                                            <value name="VALUE">
                                                                              <block type="logic_boolean" id="{L#fAaZFdMqc)cU0V@Ec">
                                                                                <field name="BOOL">TRUE</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </statement>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </xml>
                                            

                                            umstrukturiertes script
                                            Blockly_Trigger_Bedingungen_10.png

                                            <xml xmlns="https://developers.google.com/blockly/xml">
                                              <block type="comment" id=":aD+m^UU`o2S+obB*Co{" x="438" y="-585">
                                                <field name="COMMENT">192_168_78_113 manually</field>
                                                <next>
                                                  <block type="on_ext" id="_|fb$VE*@CpLjZ9@7)~s">
                                                    <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                                    <field name="CONDITION">any</field>
                                                    <field name="ACK_CONDITION"></field>
                                                    <value name="OID0">
                                                      <shadow type="field_oid" id="jLf[molnI1Z}K/OrfZ5r">
                                                        <field name="oid">mqtt.1.zigbee2mqtt.ik_remote_symfonisk_02.action</field>
                                                      </shadow>
                                                    </value>
                                                    <value name="OID1">
                                                      <shadow type="field_oid" id="RJjNT8Alvup-B#/1Td$p">
                                                        <field name="oid">mqtt.1.zigbee2mqtt.xi_switch_05.action</field>
                                                      </shadow>
                                                    </value>
                                                    <statement name="STATEMENT">
                                                      <block type="controls_if" id="21sX(|_V8yH?3.[E5by{">
                                                        <mutation elseif="3"></mutation>
                                                        <value name="IF0">
                                                          <block type="logic_operation" id="?]WD/oNi~Se*hXHX*)=U" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_operation" id="p*LHLi9t^sVnB?n_||)M" inline="false">
                                                                <field name="OP">OR</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="PEgVJru[KYlNUZ1A::iM">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="h;dzZwnoV3ygy_LRtZQJ">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">mqtt.1.zigbee2mqtt.ik_remote_symfonisk_02.action</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="text" id="%Ps|$]w=yND$J42t5}kI">
                                                                        <field name="TEXT">toggle</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="bCa~3|e#hKF*,P?8Twuo">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="ETkEp9l*g8oJ|xr93Oqq">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_05.action</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="text" id="VMlDERw@o=T_1Ch?Bplk">
                                                                        <field name="TEXT">single</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="joyG{1WdQ]wgHHI[q:Ja">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="(Rg?e4zOBGh*[48SV;X7">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="1qs@5i_qC{Kz,gqFgHrN">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="comment" id=".Md_CV0)[D@r(rW#c`@/">
                                                            <field name="COMMENT">192_168_78_113.play</field>
                                                            <next>
                                                              <block type="control" id="ZNrOB)^*cVS2zL6lO:cL">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">sonos.0.root.192_168_78_113.play</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="`afBuH-Q[KtEbQ5PT[Tk">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                        <value name="IF1">
                                                          <block type="logic_operation" id="AcMBpXut2)-ctKTS{V75" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_operation" id="krD?*(Y@~3nd)i_ZgM+r" inline="false">
                                                                <field name="OP">OR</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="2QKUS:FS#2[P9el]$;+7">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="81Drs.S$1P_S71-3Up49">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">mqtt.1.zigbee2mqtt.ik_remote_symfonisk_02.action</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="text" id="T|r9f)H#s4R)6A}BFrwE">
                                                                        <field name="TEXT">toggle</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id=";Hylb!)aIFH:_8Qj-}?E">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="#bir1B.0*:QaF9hmx0IW">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_05.action</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="text" id="{uNy/L7!G,jlh$+}*p`3">
                                                                        <field name="TEXT">single</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="3JKvmod(v0.6l?u@I-fU">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="gzK~PURwdkEu/isx7%U`">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="[Jv{M.V7[b;D:$5TU$}v">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO1">
                                                          <block type="comment" id="s:;q{Bt,nt*.LXWH[_bb">
                                                            <field name="COMMENT">192_168_78_113.stop</field>
                                                            <next>
                                                              <block type="control" id="/}!:-:qt/#plx+Q2*jA3">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">sonos.0.root.192_168_78_113.stop</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="logic_boolean" id="js`HpeMy;wRyv;ETb$($">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                        <value name="IF2">
                                                          <block type="logic_operation" id="mh[((L=_3oB:N+ApV!Rw" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_compare" id="TdHr=0B*0A8SGu#rF~5r">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="9V@e/6l:!b4C4|et7%j=">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">mqtt.1.zigbee2mqtt.ik_remote_symfonisk_02.action</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="#Zi^55bSD.=y_+O.Vn7F">
                                                                    <field name="TEXT">brightness_move_down</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="cNaIWrsNjP82b{0$B`Xp">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="1:xChr5Fhvxkl4d9^|w$">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="aOjC%mqR5+$P:+tC33xy">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO2">
                                                          <block type="comment" id="3B8=ATk!6g[MMLE+d!y_">
                                                            <field name="COMMENT">192_168_78_113.group_volume down</field>
                                                            <next>
                                                              <block type="control" id="qV97K``8QAkW3GN(SuqO">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">sonos.0.root.192_168_78_113.group_volume</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_arithmetic" id="lxGS_~s(lo%/@ECge+X@">
                                                                    <field name="OP">MINUS</field>
                                                                    <value name="A">
                                                                      <shadow type="math_number" id="%wH-rIkC^(*GX}]O!(WD">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="get_value" id="mc$4Ze1nXs40.T?n2rRt">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">sonos.0.root.192_168_78_113.group_volume</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <shadow type="math_number" id="(3)}c=t-7A^u#,_?.G5I">
                                                                        <field name="NUM">2</field>
                                                                      </shadow>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                        <value name="IF3">
                                                          <block type="logic_operation" id="#P%^nv]g^J~;RO0-:x0P" inline="false">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="logic_compare" id="2daA{Fu=x$V]EIZX;o2(">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="2W.^J{q|yD*ln@9ZK,{^">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">mqtt.1.zigbee2mqtt.ik_remote_symfonisk_02.action</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="text" id="Uo34{vyC*//jA^Pbt[1K">
                                                                    <field name="TEXT">brightness_move_up</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_compare" id="bpZ/F-!_=}5;~Kb)(%ul">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="@S{d;Xw2a6FU-L1Lb?(.">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="!9p`EbmK/@up`e-W-^kX">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO3">
                                                          <block type="comment" id="3i!_IQQ`*@mTupiC0z(a">
                                                            <field name="COMMENT">192_168_78_113.group_volume up</field>
                                                            <next>
                                                              <block type="control" id="HE%#VC{b!gO=Y]K_M8,J">
                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                <field name="OID">sonos.0.root.192_168_78_113.group_volume</field>
                                                                <field name="WITH_DELAY">FALSE</field>
                                                                <value name="VALUE">
                                                                  <block type="math_arithmetic" id="8{g;v)W*I,P_MGxs]Gj.">
                                                                    <field name="OP">ADD</field>
                                                                    <value name="A">
                                                                      <shadow type="math_number">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="get_value" id="CcV$.b`@7y1B%7/SKIb+">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">sonos.0.root.192_168_78_113.group_volume</field>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <shadow type="math_number" id="}@W.6znn)L+L#N+6Ry8.">
                                                                        <field name="NUM">2</field>
                                                                      </shadow>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </statement>
                                                    <next>
                                                      <block type="comment" id="Y;E/TqHDYg[md%RKNHw/">
                                                        <field name="COMMENT">192_168_78_113 automatic</field>
                                                        <next>
                                                          <block type="on_ext" id="pQi.%,OhPQz?`4Vdz6s3">
                                                            <mutation xmlns="http://www.w3.org/1999/xhtml" items="2"></mutation>
                                                            <field name="CONDITION">ne</field>
                                                            <field name="ACK_CONDITION"></field>
                                                            <value name="OID0">
                                                              <shadow type="field_oid" id="cJS[o(p::!QU@oRo}:Ue">
                                                                <field name="oid">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                                              </shadow>
                                                            </value>
                                                            <value name="OID1">
                                                              <shadow type="field_oid" id="G}CnwOt9RdiY]vT56MX%">
                                                                <field name="oid">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                                              </shadow>
                                                            </value>
                                                            <statement name="STATEMENT">
                                                              <block type="controls_if" id="U-^hwn%g_#T@I(6P-pbB">
                                                                <mutation elseif="1"></mutation>
                                                                <value name="IF0">
                                                                  <block type="logic_operation" id="CNOVL(NO9~LVxM89Zed-" inline="false">
                                                                    <field name="OP">AND</field>
                                                                    <value name="A">
                                                                      <block type="logic_operation" id="z#^t?UUidxU!V[j(P~X7" inline="false">
                                                                        <field name="OP">AND</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="cB_-%t5Nt-aTHpXIfRgn">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="get_value" id="]9;a)[E$V^q{b#/y3]/0">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_compare" id="HTwu~l_5Zs|DDB@40(!j">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="%0M:(5|~8^#w6g~0xx1{">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="27JWLa5{hCLlC]#i2l-;">
                                                                            <field name="BOOL">FALSE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO0">
                                                                  <block type="comment" id="*7S_y$,,*E[{bta|:(W}">
                                                                    <field name="COMMENT">192_168_78_113.group_volume</field>
                                                                    <next>
                                                                      <block type="control" id="`|1LwE!UbzR9Yak@~=a%">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">sonos.0.root.192_168_78_113.group_volume</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="math_number" id="[zEf)WQT(pu/n`:gq+`[">
                                                                            <field name="NUM">16</field>
                                                                          </block>
                                                                        </value>
                                                                        <next>
                                                                          <block type="comment" id="gTE#33GT27Rx-,U}f4{1">
                                                                            <field name="COMMENT">192_168_78_113.play</field>
                                                                            <next>
                                                                              <block type="control" id="rGbvudP^s_3}1xaJR[Eu">
                                                                                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                                <field name="OID">sonos.0.root.192_168_78_113.play</field>
                                                                                <field name="WITH_DELAY">FALSE</field>
                                                                                <value name="VALUE">
                                                                                  <block type="logic_boolean" id="y@1ABCgvmq@H$+/.gQ{5">
                                                                                    <field name="BOOL">TRUE</field>
                                                                                  </block>
                                                                                </value>
                                                                              </block>
                                                                            </next>
                                                                          </block>
                                                                        </next>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                                <value name="IF1">
                                                                  <block type="logic_operation" id="U6g{p{=R/ja^8A8lRGzB" inline="false">
                                                                    <field name="OP">AND</field>
                                                                    <value name="A">
                                                                      <block type="logic_operation" id="U~er*6{Oavo~,i5E.YN]" inline="false">
                                                                        <field name="OP">OR</field>
                                                                        <value name="A">
                                                                          <block type="logic_negate" id="l%;I`CeXn`ME*^EspWss">
                                                                            <value name="BOOL">
                                                                              <block type="get_value" id="aW,.{LoAgB#jOUY(bN~z">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_negate" id="?TK9!xtLwNgh;R![7]Ij">
                                                                            <value name="BOOL">
                                                                              <block type="get_value" id="aT~UP]XA3eaa76v)2N;t">
                                                                                <field name="ATTR">val</field>
                                                                                <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                                                              </block>
                                                                            </value>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <block type="logic_compare" id="C%lc)QT;i5Kef`v2*YxX">
                                                                        <field name="OP">EQ</field>
                                                                        <value name="A">
                                                                          <block type="get_value" id="JZ@lMpDvw*J05I?LdWGk">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">sonos.0.root.192_168_78_113.state_simple</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <block type="logic_boolean" id="2fF9aSo^moL6pA=^|HE!">
                                                                            <field name="BOOL">TRUE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <statement name="DO1">
                                                                  <block type="comment" id="E952D?u66HgnhpqK3O~Q">
                                                                    <field name="COMMENT">192_168_78_113.stop</field>
                                                                    <next>
                                                                      <block type="control" id="rW.(7CW0r2!{*th##75g">
                                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                                        <field name="OID">sonos.0.root.192_168_78_113.stop</field>
                                                                        <field name="WITH_DELAY">FALSE</field>
                                                                        <value name="VALUE">
                                                                          <block type="logic_boolean" id="{L#fAaZFdMqc)cU0V@Ec">
                                                                            <field name="BOOL">TRUE</field>
                                                                          </block>
                                                                        </value>
                                                                      </block>
                                                                    </next>
                                                                  </block>
                                                                </statement>
                                                              </block>
                                                            </statement>
                                                          </block>
                                                        </next>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </xml>
                                            

                                            Gruß, Karsten

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            877
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly
                                            5
                                            33
                                            2519
                                            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