Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    17
    1
    500

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

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

Verständnisfrage Blockly / Trigger <-> mehrere Bedingungen

Scheduled Pinned Locked Moved Blockly
blockly
33 Posts 5 Posters 3.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • hydrotecH hydrotec

    @cinimod

    Dankeschön für die schnelle Rückmeldung. :-)

    Werde ich mir mal in Ruhe ansehen, ob es damit einfacher umzusetzen ist.
    (Hab da noch weitere Geräte, die ich ähnlich ansteuern möchte)

    Gruß, Karsten

    CinimodC Offline
    CinimodC Offline
    Cinimod
    Most Active
    wrote on last edited by
    #4

    @hydrotec

    Dein Skript ist ganz schön gewaltig, hab eben mal rein geschaut, das müsste man vielleicht parallel mal nen ganz neues Puzzle´n ... bevor du das funktionierende ganz zerpflückst.

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

    hydrotecH 1 Reply Last reply
    0
    • CinimodC Cinimod

      @hydrotec

      Dein Skript ist ganz schön gewaltig, hab eben mal rein geschaut, das müsste man vielleicht parallel mal nen ganz neues Puzzle´n ... bevor du das funktionierende ganz zerpflückst.

      hydrotecH Offline
      hydrotecH Offline
      hydrotec
      wrote on last edited by
      #5

      @cinimod

      Sind eigentlich nur noch drei Schalter davor.
      Blockly_Trigger_Bedingungen_05.png

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

      @hydrotec

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

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

      Gruß, Karsten

      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 Reply Last reply
      0
      • hydrotecH hydrotec

        @cinimod

        Sind eigentlich nur noch drei Schalter davor.
        Blockly_Trigger_Bedingungen_05.png

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

        @hydrotec

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

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

        Gruß, Karsten

        CinimodC Offline
        CinimodC Offline
        Cinimod
        Most Active
        wrote on last edited by Cinimod
        #6

        @hydrotec

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

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

        hydrotecH 1 Reply Last reply
        0
        • CinimodC Cinimod

          @hydrotec

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

          hydrotecH Offline
          hydrotecH Offline
          hydrotec
          wrote on last edited by hydrotec
          #7

          @cinimod
          in etwas so?
          Blockly_Trigger_Bedingungen_06.png

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

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

          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 Reply Last reply
          0
          • hydrotecH hydrotec

            @cinimod
            in etwas so?
            Blockly_Trigger_Bedingungen_06.png

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

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

            CinimodC Offline
            CinimodC Offline
            Cinimod
            Most Active
            wrote on last edited by Cinimod
            #8

            @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

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

            hydrotecH 2 Replies Last reply
            0
            • 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
              wrote on last edited by
              #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 Reply Last reply
              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
                wrote on last edited by
                #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 Reply Last reply
                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
                  wrote on last edited by
                  #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 Reply Last reply
                  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
                    wrote on last edited by
                    #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 Reply Last reply
                    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
                      wrote on last edited by 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 Reply Last reply
                      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
                        wrote on last edited by 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 Reply Last reply
                        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
                          wrote on last edited by 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 Replies Last reply
                          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
                            wrote on last edited by
                            #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 Reply Last reply
                            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
                              wrote on last edited by
                              #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 Reply Last reply
                              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
                                wrote on last edited by 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 Reply Last reply
                                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
                                  wrote on last edited by
                                  #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 Reply Last reply
                                  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
                                    wrote on last edited by
                                    #20

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

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

                                    1 Reply Last reply
                                    0
                                    • hydrotecH Offline
                                      hydrotecH Offline
                                      hydrotec
                                      wrote on last edited by
                                      #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 Replies Last reply
                                      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
                                        wrote on last edited by 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 Reply Last reply
                                        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
                                          wrote on last edited by
                                          #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 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          860

                                          Online

                                          32.5k

                                          Users

                                          81.6k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe