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

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

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Blockly
  5. Verständnisfrage Blockly / Trigger <-> mehrere Bedingungen

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.7k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.2k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.2k

Verständnisfrage Blockly / Trigger <-> mehrere Bedingungen

Geplant Angeheftet Gesperrt Verschoben Blockly
blockly
33 Beiträge 5 Kommentatoren 3.1k Aufrufe 3 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • CinimodC 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

    hydrotecH Offline
    hydrotecH Offline
    hydrotec
    schrieb am zuletzt editiert von
    #9

    @cinimod

    War jetzt nur mal auf die Schnelle zusammengestellt.

    Code habe ich oben eingefügt.

    Ubuntu 22.04 LTS (LXD/LXC)
    admin: v6.3.5
    js-controller: v4.0.24
    node: v18.16.1
    npm: v9.5.1
    repository: stable

    1 Antwort Letzte Antwort
    1
    • CinimodC 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

      hydrotecH Offline
      hydrotecH Offline
      hydrotec
      schrieb am zuletzt editiert von
      #10

      @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.

      Ubuntu 22.04 LTS (LXD/LXC)
      admin: v6.3.5
      js-controller: v4.0.24
      node: v18.16.1
      npm: v9.5.1
      repository: stable

      N 1 Antwort Letzte Antwort
      0
      • hydrotecH hydrotec

        @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 Offline
        N Offline
        Nordischerjung
        schrieb am zuletzt editiert von
        #11

        @hydrotec Moin,

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

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

        Gruß Nordischerjung

        sonnige Grüße von der Ostsee

        hydrotecH 1 Antwort Letzte Antwort
        0
        • N Nordischerjung

          @hydrotec Moin,

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

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

          hydrotecH Offline
          hydrotecH Offline
          hydrotec
          schrieb am zuletzt editiert von
          #12

          @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

          Ubuntu 22.04 LTS (LXD/LXC)
          admin: v6.3.5
          js-controller: v4.0.24
          node: v18.16.1
          npm: v9.5.1
          repository: stable

          CinimodC 1 Antwort Letzte Antwort
          0
          • hydrotecH hydrotec

            @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

            CinimodC Offline
            CinimodC Offline
            Cinimod
            Most Active
            schrieb am zuletzt editiert von Cinimod
            #13

            @hydrotec

            Fragst du nicht drei mal genau die selben Bedingungen ab ?

            Bildschirmfoto 2021-10-19 um 10.28.02.png

            Synology DS918+, Fritzbox 6690 Cable, #Docker #Blockly #Vis2 #Deconz #Tasmota

            hydrotecH 1 Antwort Letzte Antwort
            0
            • CinimodC Cinimod

              @hydrotec

              Fragst du nicht drei mal genau die selben Bedingungen ab ?

              Bildschirmfoto 2021-10-19 um 10.28.02.png

              hydrotecH Offline
              hydrotecH Offline
              hydrotec
              schrieb am zuletzt editiert von hydrotec
              #14

              @cinimod

              Vom Prinzip her sogar dreimal.

              Ich dachte das ich auf jede Bedingung reagieren muss. Denkfehler :cry:

              Edit: Du warst schneller ;-)

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

              Bau ich gleich mal um

              Ubuntu 22.04 LTS (LXD/LXC)
              admin: v6.3.5
              js-controller: v4.0.24
              node: v18.16.1
              npm: v9.5.1
              repository: stable

              CinimodC 1 Antwort Letzte Antwort
              0
              • hydrotecH hydrotec

                @cinimod

                Vom Prinzip her sogar dreimal.

                Ich dachte das ich auf jede Bedingung reagieren muss. Denkfehler :cry:

                Edit: Du warst schneller ;-)

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

                Bau ich gleich mal um

                CinimodC Offline
                CinimodC Offline
                Cinimod
                Most Active
                schrieb am zuletzt editiert von Cinimod
                #15

                @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.

                Synology DS918+, Fritzbox 6690 Cable, #Docker #Blockly #Vis2 #Deconz #Tasmota

                hydrotecH 2 Antworten Letzte Antwort
                1
                • CinimodC 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.

                  hydrotecH Offline
                  hydrotecH Offline
                  hydrotec
                  schrieb am zuletzt editiert von
                  #16

                  @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.

                  Ubuntu 22.04 LTS (LXD/LXC)
                  admin: v6.3.5
                  js-controller: v4.0.24
                  node: v18.16.1
                  npm: v9.5.1
                  repository: stable

                  1 Antwort Letzte Antwort
                  0
                  • CinimodC 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.

                    hydrotecH Offline
                    hydrotecH Offline
                    hydrotec
                    schrieb am zuletzt editiert von
                    #17

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

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

                    :+1:

                    Ubuntu 22.04 LTS (LXD/LXC)
                    admin: v6.3.5
                    js-controller: v4.0.24
                    node: v18.16.1
                    npm: v9.5.1
                    repository: stable

                    CinimodC 1 Antwort Letzte Antwort
                    0
                    • hydrotecH hydrotec

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

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

                      :+1:

                      CinimodC Offline
                      CinimodC Offline
                      Cinimod
                      Most Active
                      schrieb am zuletzt editiert von Cinimod
                      #18

                      @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"

                      Synology DS918+, Fritzbox 6690 Cable, #Docker #Blockly #Vis2 #Deconz #Tasmota

                      hydrotecH 1 Antwort Letzte Antwort
                      1
                      • CinimodC 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"

                        hydrotecH Offline
                        hydrotecH Offline
                        hydrotec
                        schrieb am zuletzt editiert von
                        #19

                        @cinimod

                        Das ist genau das was ich wollte :+1:

                        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

                        Ubuntu 22.04 LTS (LXD/LXC)
                        admin: v6.3.5
                        js-controller: v4.0.24
                        node: v18.16.1
                        npm: v9.5.1
                        repository: stable

                        CinimodC 1 Antwort Letzte Antwort
                        0
                        • hydrotecH hydrotec

                          @cinimod

                          Das ist genau das was ich wollte :+1:

                          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

                          CinimodC Offline
                          CinimodC Offline
                          Cinimod
                          Most Active
                          schrieb am zuletzt editiert von
                          #20

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

                          Synology DS918+, Fritzbox 6690 Cable, #Docker #Blockly #Vis2 #Deconz #Tasmota

                          1 Antwort Letzte Antwort
                          0
                          • hydrotecH Offline
                            hydrotecH Offline
                            hydrotec
                            schrieb am zuletzt editiert von
                            #21

                            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>
                            

                            Ubuntu 22.04 LTS (LXD/LXC)
                            admin: v6.3.5
                            js-controller: v4.0.24
                            node: v18.16.1
                            npm: v9.5.1
                            repository: stable

                            CinimodC T 2 Antworten Letzte Antwort
                            0
                            • hydrotecH hydrotec

                              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>
                              
                              CinimodC Offline
                              CinimodC Offline
                              Cinimod
                              Most Active
                              schrieb am zuletzt editiert von Cinimod
                              #22

                              @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

                              Synology DS918+, Fritzbox 6690 Cable, #Docker #Blockly #Vis2 #Deconz #Tasmota

                              hydrotecH 1 Antwort Letzte Antwort
                              0
                              • CinimodC 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

                                hydrotecH Offline
                                hydrotecH Offline
                                hydrotec
                                schrieb am zuletzt editiert von
                                #23

                                @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

                                Ubuntu 22.04 LTS (LXD/LXC)
                                admin: v6.3.5
                                js-controller: v4.0.24
                                node: v18.16.1
                                npm: v9.5.1
                                repository: stable

                                CinimodC 1 Antwort Letzte Antwort
                                0
                                • hydrotecH Offline
                                  hydrotecH Offline
                                  hydrotec
                                  schrieb am zuletzt editiert von
                                  #24

                                  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

                                  Ubuntu 22.04 LTS (LXD/LXC)
                                  admin: v6.3.5
                                  js-controller: v4.0.24
                                  node: v18.16.1
                                  npm: v9.5.1
                                  repository: stable

                                  1 Antwort Letzte Antwort
                                  0
                                  • hydrotecH hydrotec

                                    @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

                                    CinimodC Offline
                                    CinimodC Offline
                                    Cinimod
                                    Most Active
                                    schrieb am zuletzt editiert von
                                    #25

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

                                    @cinimod

                                    Das war mein erster Versuch, funktioniert leider nicht.

                                    Ok hätte ja klappen können :)

                                    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.

                                    Da hast du recht.

                                    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

                                    Gern :)

                                    Synology DS918+, Fritzbox 6690 Cable, #Docker #Blockly #Vis2 #Deconz #Tasmota

                                    1 Antwort Letzte Antwort
                                    0
                                    • hydrotecH hydrotec

                                      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>
                                      
                                      T Offline
                                      T Offline
                                      TDCroPower
                                      schrieb am zuletzt editiert von
                                      #26

                                      @hydrotec ich hätte für dich hier den Tipp, das du versuchen solltest eine doppelte Prüfung zu vermeiden, falls natürlich möglich.
                                      Im ersten Fall kannst du es durch eine doppelte "Falls" Verschachtelung erreichen.
                                      Ist dann immer aufwändig/fehleranfällig wenn man den Datenpunkt ändert.
                                      Auch den Trigger würde ich versuchen immer auf "wurde geändert" anstatt "wurde aktualisiert" zu setzen, wenn man nur auf eine Änderung des Datenpunktes reagieren möchte z.B. ein Wechsel von "true" auf "false".

                                      Bildschirmfoto 2021-10-29 um 02.15.12.png

                                      auch die doppelte Prüfung auf "hue.0.z_hallwall_ceiling_on", kannst du dir sparen wenn er nur "true" oder "false" als Zustand besitzt...

                                      Bildschirmfoto 2021-10-29 um 02.20.15.png

                                      hydrotecH 1 Antwort Letzte Antwort
                                      1
                                      • T TDCroPower

                                        @hydrotec ich hätte für dich hier den Tipp, das du versuchen solltest eine doppelte Prüfung zu vermeiden, falls natürlich möglich.
                                        Im ersten Fall kannst du es durch eine doppelte "Falls" Verschachtelung erreichen.
                                        Ist dann immer aufwändig/fehleranfällig wenn man den Datenpunkt ändert.
                                        Auch den Trigger würde ich versuchen immer auf "wurde geändert" anstatt "wurde aktualisiert" zu setzen, wenn man nur auf eine Änderung des Datenpunktes reagieren möchte z.B. ein Wechsel von "true" auf "false".

                                        Bildschirmfoto 2021-10-29 um 02.15.12.png

                                        auch die doppelte Prüfung auf "hue.0.z_hallwall_ceiling_on", kannst du dir sparen wenn er nur "true" oder "false" als Zustand besitzt...

                                        Bildschirmfoto 2021-10-29 um 02.20.15.png

                                        hydrotecH Offline
                                        hydrotecH Offline
                                        hydrotec
                                        schrieb am zuletzt editiert von
                                        #27

                                        @tdcropower

                                        Guten Morgen TDCroPower,

                                        @tdcropower sagte ...

                                        Auch den Trigger würde ich versuchen immer auf "wurde geändert" anstatt "wurde aktualisiert" zu setzen, wenn man nur auf eine Änderung des Datenpunktes reagieren möchte z.B. ein Wechsel von "true" auf "false".

                                        Der Datenpunkt "action" ändert sich nicht bei den Xiaomi WXKG12LM wenn man den button nur einmal betätigt.
                                        Deswegen muss ich "wurde aktualisiert" verwenden.

                                        ... das du versuchen solltest eine doppelte Prüfung zu vermeiden, falls natürlich möglich.
                                        ... auch die doppelte Prüfung auf "hue.0.z_hallwall_ceiling_on", kannst du dir sparen wenn er nur "true" oder "false" als Zustand besitzt...

                                        Das ist ein guter Tipp, den ich gleich mal umgesetzt, und erfolgreich getestet, habe.

                                        ... Ist dann immer aufwändig/fehleranfällig wenn man den Datenpunkt ändert.

                                        Ja, stimme dir zu, doch da bin ich noch am überlegen, wie ich das am Besten realisiere.
                                        (Alias Manager, Blockly Gruppen/Listen, usw.)
                                        Bin ja noch Frischling in Sachen ioBroker und seine Möglichkeiten.
                                        Bis jetzt habe ich mich vorrangig erst einmal damit beschäftigt,
                                        das die Automatisationen der vorherigen Software funktionieren.

                                        Auf jeden Fall einmal Dankeschön für deine Tipps :-)

                                        Noch einen angenehmen Tag
                                        Gruß, Karsten

                                        Ubuntu 22.04 LTS (LXD/LXC)
                                        admin: v6.3.5
                                        js-controller: v4.0.24
                                        node: v18.16.1
                                        npm: v9.5.1
                                        repository: stable

                                        T 1 Antwort Letzte Antwort
                                        0
                                        • hydrotecH hydrotec

                                          @tdcropower

                                          Guten Morgen TDCroPower,

                                          @tdcropower sagte ...

                                          Auch den Trigger würde ich versuchen immer auf "wurde geändert" anstatt "wurde aktualisiert" zu setzen, wenn man nur auf eine Änderung des Datenpunktes reagieren möchte z.B. ein Wechsel von "true" auf "false".

                                          Der Datenpunkt "action" ändert sich nicht bei den Xiaomi WXKG12LM wenn man den button nur einmal betätigt.
                                          Deswegen muss ich "wurde aktualisiert" verwenden.

                                          ... das du versuchen solltest eine doppelte Prüfung zu vermeiden, falls natürlich möglich.
                                          ... auch die doppelte Prüfung auf "hue.0.z_hallwall_ceiling_on", kannst du dir sparen wenn er nur "true" oder "false" als Zustand besitzt...

                                          Das ist ein guter Tipp, den ich gleich mal umgesetzt, und erfolgreich getestet, habe.

                                          ... Ist dann immer aufwändig/fehleranfällig wenn man den Datenpunkt ändert.

                                          Ja, stimme dir zu, doch da bin ich noch am überlegen, wie ich das am Besten realisiere.
                                          (Alias Manager, Blockly Gruppen/Listen, usw.)
                                          Bin ja noch Frischling in Sachen ioBroker und seine Möglichkeiten.
                                          Bis jetzt habe ich mich vorrangig erst einmal damit beschäftigt,
                                          das die Automatisationen der vorherigen Software funktionieren.

                                          Auf jeden Fall einmal Dankeschön für deine Tipps :-)

                                          Noch einen angenehmen Tag
                                          Gruß, Karsten

                                          T Offline
                                          T Offline
                                          TDCroPower
                                          schrieb am zuletzt editiert von
                                          #28

                                          @hydrotec den Taster habe ich sogar ebenfalls, jedoch reagiere ich auf den Datenpunkt "click" der "true"/"false" switched.
                                          Habe aber keinen Datenpunkt "action" bei meinem Taster!?
                                          Liegt vielleicht daran das ich den "ZigBee" Adapter nutze?
                                          Hier reagiere ich sogar lediglich beim Trigger mit "ist wahr", wodurch der Trigger beim drücken nur 1x ausgeführt wird.
                                          Beim single drücken wechselt dieser nämlich von "false" -> "true" -> "false", sodass "wurde aktualisiert" und "wurde geändert" den Trigger 2x ausführen würde.

                                          Bildschirmfoto 2021-10-29 um 11.02.46.png

                                          hier meine Datenpunkte bei dem Switch...
                                          Bildschirmfoto 2021-10-29 um 11.03.59.png

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


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          775

                                          Online

                                          32.4k

                                          Benutzer

                                          81.5k

                                          Themen

                                          1.3m

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

                                          • Du hast noch kein Konto? Registrieren

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