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

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

Community Forum

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

NEWS

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

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

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

Verständnisfrage Blockly / Trigger <-> mehrere Bedingungen

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

    Hallo @all

    Bin gerade dabei mich etwas mit Blockly anzufreunden.
    Prinzipiell ist es ja recht Anwenderfreundlich, man kann schnell und unkompliziert Automatismen erstellen.
    Doch bei der folgenden Aufgabenstellung bin ich mir etwas unsicher, ob man das so umsetzt.
    Ziel ist es, eine Lampe mittels drei Trigger, bzw. drei Bedingungen zu schalten.

    Muss ich dann zu jeder Bedingung einen Trigger in Blockly erstellen, oder geht das auch anders?

    Etwas genauer.

    Datenpunkte:
    Trigger/Bedingungen
    0_userdata.0.general.presence.MyPhone11Pro.presence
    0_userdata.0.general.presence.iCal_4_Anwesenheit.timer
    0_userdata.0.general.sensor.xi_sensor_light_01.isday
    Lampe
    hue.0.z_hallway_ceiling.on
    hue.0.z_hallway_ceiling.scene_entspannen
    Blockly_Trigger_Bedingungen_01.png

    Was ich bisher umgesetzt habe. (Die Abfrage, ob die Lampe ein oder ausgeschaltet ist, baue ich später noch mit ein)

    Wenn iCal_4_Anwesenheit.timer auf true/false wechselt, soll in Abhängigkeit von xi_sensor_light_01.isday und MyPhone11Pro.presence die Lampe geschaltet werden.
    Blockly_Trigger_Bedingungen_02.png

    Wenn xi_sensor_light_01.isday auf true/false wechselt, soll in Abhängigkeit von iCal_4_Anwesenheit.timer und MyPhone11Pro.presence die Lampe geschaltet werden.
    Blockly_Trigger_Bedingungen_03.png

    Wenn MyPhone11Pro.presence auf true/false wechselt, soll in Abhängigkeit von iCal_4_Anwesenheit.timer und xi_sensor_light_01.isday die Lampe geschaltet werden.
    Blockly_Trigger_Bedingungen_04.png

    Kompletter Code

    <xml xmlns="https://developers.google.com/blockly/xml">
      <block type="on" id="6Gx2G6W~oER|W2wF+4yG" x="313" y="88">
        <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_01.action</field>
        <field name="CONDITION">any</field>
        <field name="ACK_CONDITION"></field>
        <statement name="STATEMENT">
          <block type="controls_if" id="TaZ~a:+mPDAS]%ApmQ4~">
            <mutation elseif="1"></mutation>
            <value name="IF0">
              <block type="logic_operation" id="F+-%-)P*z|2Hd(]pvPV^">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="logic_compare" id="B_dBpt]VkG-bFZvo^mj)">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="on_source" id="NNLTZTkG0V180QD0)YX]">
                        <field name="ATTR">state.val</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="text" id="n1nlW|AkJ9rP^J]CR^m$">
                        <field name="TEXT">single</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_compare" id=")?qVx{$`#6b}BL5-u-DN">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="./RXjkI+Lp|7nHFv5~@W">
                        <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=",C[1Odz*+WDkb$Xs01BL">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="control" id="AR%-^;EhDHPNl{vjisV[">
                <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="UjZc:~NR`x6vXya%t4G0">
                    <field name="BOOL">TRUE</field>
                  </block>
                </value>
              </block>
            </statement>
            <value name="IF1">
              <block type="logic_operation" id="Z%(x==SKFwTA-lVYbT1g">
                <field name="OP">AND</field>
                <value name="A">
                  <block type="logic_compare" id="k|iY4[jqz8.cy4+[mlFP">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="on_source" id="5R$C#/|;;|(`Ol~Zhou]">
                        <field name="ATTR">state.val</field>
                      </block>
                    </value>
                    <value name="B">
                      <block type="text" id="-N5z9x_O`DJci)`,)E,W">
                        <field name="TEXT">single</field>
                      </block>
                    </value>
                  </block>
                </value>
                <value name="B">
                  <block type="logic_compare" id="xo1usY2|u0Y8nDAxSn60">
                    <field name="OP">EQ</field>
                    <value name="A">
                      <block type="get_value" id="U:H3`%p^`{|p$B#OA+zO">
                        <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="1r[M!P6Y:m3-%{sF~b^n">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO1">
              <block type="control" id="s:fs%|AMI?Sx{tBg~%AU">
                <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="?TSOYus2c10u4S-;n^y=">
                    <field name="BOOL">FALSE</field>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </statement>
        <next>
          <block type="on" id="shYCT.Mh_7-k]qWQna].">
            <field name="OID">mqtt.1.zigbee2mqtt.xi_switch_02.action</field>
            <field name="CONDITION">any</field>
            <field name="ACK_CONDITION"></field>
            <statement name="STATEMENT">
              <block type="controls_if" id="b8A?FCryQ)%=K{5I_i|5">
                <mutation elseif="1"></mutation>
                <value name="IF0">
                  <block type="logic_operation" id="}/gyoQD;Xi(ZAD:9Z30?">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id="jRsCsJw)Wb+zNvP,ehCd">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="on_source" id="3,E(_XWD_7n6FomO$!~F">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id=",d+@R,9qY+vfZ`0TV4XZ">
                            <field name="TEXT">single</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="%6F.F_7:=#7xIG5Ch_Nm">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id="-A}-/C]%d:cwv|y#hZ?P">
                            <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="%(cF|0q.@vrE/?n1h{5F">
                            <field name="BOOL">FALSE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="control" id="?6y^X4%jP*`bE.wO`A_Z">
                    <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="=ZLy[2W@#LR=giq%|i_W">
                        <field name="BOOL">TRUE</field>
                      </block>
                    </value>
                  </block>
                </statement>
                <value name="IF1">
                  <block type="logic_operation" id=".B5pR=w-Vy:[TfuP,39F">
                    <field name="OP">AND</field>
                    <value name="A">
                      <block type="logic_compare" id=".=eiTd;rT]~S!mh~aZ#C">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="on_source" id="O7|/}m5)7p#_%_v$N9uW">
                            <field name="ATTR">state.val</field>
                          </block>
                        </value>
                        <value name="B">
                          <block type="text" id="94UL!fN|;.=!X/UmS3r=">
                            <field name="TEXT">single</field>
                          </block>
                        </value>
                      </block>
                    </value>
                    <value name="B">
                      <block type="logic_compare" id="npe*y-vP/tj2.*}IWOaq">
                        <field name="OP">EQ</field>
                        <value name="A">
                          <block type="get_value" id=".fS{9l*6gPC^}t=;Y_1U">
                            <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="+m7;C}lmxeoQj(*Gha/6">
                            <field name="BOOL">TRUE</field>
                          </block>
                        </value>
                      </block>
                    </value>
                  </block>
                </value>
                <statement name="DO1">
                  <block type="control" id="HC9Jl)l*lLt0R*/6U=uL">
                    <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="Hvb._`?u}qhyx?pqmHoC">
                        <field name="BOOL">FALSE</field>
                      </block>
                    </value>
                  </block>
                </statement>
              </block>
            </statement>
            <next>
              <block type="comment" id="?2`fm/*aM%)7^sJWttAX">
                <field name="COMMENT">hue_dimmer_switch_01</field>
                <next>
                  <block type="on" id="/tr{w[Q5nNph^03BFG.;">
                    <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="bD1Ls+;F$N)~x0E!8%pn">
                        <mutation elseif="1"></mutation>
                        <value name="IF0">
                          <block type="logic_operation" id="q1p?FCzRs?mP+fn)P|#9">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="5QUTUHa;Jr4BI[g}$=cp">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="on_source" id="PBN}S9J,+dIIwVX(=ZU,">
                                    <field name="ATTR">state.val</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="g?2wdKwyvUUX%#tWljZ#">
                                    <field name="TEXT">on_press_release</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="FR@.A}i?q=uzZGTav#[C">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="n+/YRfD85:5R[`31@F@Q">
                                    <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="MK1IOmE8$exhZ]J/A8Ka">
                                    <field name="BOOL">FALSE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO0">
                          <block type="control" id="4j%v98D7k40H]klnsNK=">
                            <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="5FkV6gQEn6a2:C!7h8DY">
                                <field name="BOOL">TRUE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                        <value name="IF1">
                          <block type="logic_operation" id="|kx]e*}5rEKv5/kWFJKY">
                            <field name="OP">AND</field>
                            <value name="A">
                              <block type="logic_compare" id="uU}.dKBfyX1|ly6nLr9^">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="on_source" id="C-}dv!Th@+JzH4]aqi[i">
                                    <field name="ATTR">state.val</field>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text" id="7*d)$:+`!HSQ4_wW1aW_">
                                    <field name="TEXT">off_press_release</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <value name="B">
                              <block type="logic_compare" id="]9C6o$3QprH0AvbTTDG$">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="get_value" id="mz!bfr*v@.`1/by/p--r">
                                    <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=":MFH5v^o-!vj(BYoKg5$">
                                    <field name="BOOL">TRUE</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <statement name="DO1">
                          <block type="control" id="dC89i_#:V@fIwQ-bSi:i">
                            <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="#5:+5#Q_Ju.=d~h7,TIx">
                                <field name="BOOL">FALSE</field>
                              </block>
                            </value>
                          </block>
                        </statement>
                      </block>
                    </statement>
                    <next>
                      <block type="comment" id="|W#|W9Kx3~Uws$Y5!`o-">
                        <field name="COMMENT">iCal_4_Anwesenheit.timer</field>
                        <next>
                          <block type="on" id="?]?.8Q:/7xJ299cf*6P*">
                            <field name="OID">0_userdata.0.general.presence.iCal_4_Anwesenheit.timer</field>
                            <field name="CONDITION">ne</field>
                            <field name="ACK_CONDITION"></field>
                            <statement name="STATEMENT">
                              <block type="comment" id="6ybo:d}aAhs@X.:}Qw*?">
                                <field name="COMMENT">xi_sensor_light_01.isday - false</field>
                                <next>
                                  <block type="comment" id=":CD@R8u04P=]8T7QH#?w">
                                    <field name="COMMENT">MyPhone11Pro.presence - true</field>
                                    <next>
                                      <block type="controls_if" id="74ONvKjG#g^t(6Q,?%Vz">
                                        <mutation elseif="1"></mutation>
                                        <value name="IF0">
                                          <block type="logic_operation" id="#-ywE|74[Mk]JL2SZZR|">
                                            <field name="OP">AND</field>
                                            <value name="A">
                                              <block type="on_source" id="62pQCCgsc6L*exvr?VM*">
                                                <field name="ATTR">state.val</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(">
                                                    <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">
                                                    <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="comment" id=":4C3(mP!ZYsgZ7NTZ*6O">
                                            <field name="COMMENT">hue.0.z_hallway_ceiling.scene_entspannen - true</field>
                                            <next>
                                              <block type="control" id="+ug7^gwvlS:}Q1eV.h]^">
                                                <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="Fhm7KQ+-.PGo`Sbgw!(2">
                                                    <field name="BOOL">TRUE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                        <value name="IF1">
                                          <block type="logic_negate" id="LvefMg;L0+{saFXB~)}/">
                                            <value name="BOOL">
                                              <block type="on_source" id="r93pz6CF^VbqIih_#k]l">
                                                <field name="ATTR">state.val</field>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <statement name="DO1">
                                          <block type="comment" id="Q`KoP;!xq@V^5CwAT@8`">
                                            <field name="COMMENT">hue.0.z_hallway_ceiling.on - false</field>
                                            <next>
                                              <block type="control" id="LJT|;M3QGf;uj9z/@[LX">
                                                <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="Rw3MP$*ay;?|1*.4zVYj">
                                                    <field name="BOOL">FALSE</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </next>
                                          </block>
                                        </statement>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </statement>
                            <next>
                              <block type="comment" id="%wu`{V/ZhiCd.fbcV[*z">
                                <field name="COMMENT">xi_sensor_light_01.isday</field>
                                <next>
                                  <block type="on" id="qq,!e)cO`J*gdxu@{2Bz">
                                    <field name="OID">0_userdata.0.general.sensor.xi_sensor_light_01.isday</field>
                                    <field name="CONDITION">ne</field>
                                    <field name="ACK_CONDITION"></field>
                                    <statement name="STATEMENT">
                                      <block type="comment" id="xl9LGnZwt(ppT28Hw-{L">
                                        <field name="COMMENT">iCal_4_Anwesenheit.timer - true</field>
                                        <next>
                                          <block type="comment" id="(vn{~ZgIT!tcAq70B~10">
                                            <field name="COMMENT">MyPhone11Pro.presence - true</field>
                                            <next>
                                              <block type="controls_if" id="2/=Ag}M%4.e=Q42:{}{E">
                                                <mutation elseif="1"></mutation>
                                                <value name="IF0">
                                                  <block type="logic_operation" id="-@.4N/awl.3nOp;J%lns">
                                                    <field name="OP">AND</field>
                                                    <value name="A">
                                                      <block type="logic_negate" id="#UBJy%EE`kV^mlQDH)va">
                                                        <value name="BOOL">
                                                          <block type="on_source" id="ZkUurj1;aO]b2OfQ$4R=">
                                                            <field name="ATTR">state.val</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="B">
                                                      <block type="logic_operation" id="EX|!i~h{uOkDxOk}G$tP" inline="false">
                                                        <field name="OP">AND</field>
                                                        <value name="A">
                                                          <block type="logic_compare" id="UmaBo5hgP.w|28$UEX]0">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="VU=+kBk03=,,y%k_88jW">
                                                                <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="JbEayaP9:z;9KCrJB:UU">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="B">
                                                          <block type="logic_compare" id="(SUFOiG)E)zW+Z*_4U4L">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="O$bKW.3RsqSk}(kuTcci">
                                                                <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="]E$(^rb#tcLm?R(-p|!z">
                                                                <field name="BOOL">TRUE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <statement name="DO0">
                                                  <block type="comment" id=",);M94A,Jf00KLZ`W#T^">
                                                    <field name="COMMENT">hue.0.z_hallway_ceiling.scene_entspannen - true</field>
                                                    <next>
                                                      <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>
                                                    </next>
                                                  </block>
                                                </statement>
                                                <value name="IF1">
                                                  <block type="on_source" id="x_f`WZMy]a.8i$Pm|qns">
                                                    <field name="ATTR">state.val</field>
                                                  </block>
                                                </value>
                                                <statement name="DO1">
                                                  <block type="comment" id="cfqi*fMOL6zT;#CE|nuN">
                                                    <field name="COMMENT">hue.0.z_hallway_ceiling.on - false</field>
                                                    <next>
                                                      <block type="control" id="6Gh+GtbS[W62?87tJ^AJ">
                                                        <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="|]bpuWnxp}C:3VQ8Xci6">
                                                            <field name="BOOL">FALSE</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </statement>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </statement>
                                    <next>
                                      <block type="comment" id="@Xm_i4XICH_nmj@R/48G">
                                        <field name="COMMENT">MyPhone11Pro.presence</field>
                                        <next>
                                          <block type="on" id="f2d/?P=4gSGDM`e8e2H:">
                                            <field name="OID">0_userdata.0.general.presence.MyPhone11Pro.presence</field>
                                            <field name="CONDITION">ne</field>
                                            <field name="ACK_CONDITION"></field>
                                            <statement name="STATEMENT">
                                              <block type="comment" id="Z@b]ND7B8n_9WMvc7cXa">
                                                <field name="COMMENT">iCal_4_Anwesenheit.timer - true</field>
                                                <next>
                                                  <block type="comment" id="q!u8$P.M%cPKrrS#I(=2">
                                                    <field name="COMMENT">xi_sensor_light_01.isday - false</field>
                                                    <next>
                                                      <block type="controls_if" id="o%NEYhfR.OUIi:rm,HnF">
                                                        <mutation elseif="1"></mutation>
                                                        <value name="IF0">
                                                          <block type="logic_operation" id="ea]E`/xy;}5NtiWv{ox)">
                                                            <field name="OP">AND</field>
                                                            <value name="A">
                                                              <block type="on_source" id="^z-[PdKp4pqZjd2XO-Bj">
                                                                <field name="ATTR">state.val</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_operation" id="7J;mk:s@u1~n,fKBn4KQ" inline="false">
                                                                <field name="OP">AND</field>
                                                                <value name="A">
                                                                  <block type="logic_compare" id="m0jx~p=i3KD^E|:UZ.vY">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="2zp2ESNQFs]y6s:^W!Kf">
                                                                        <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="QCe2Pb4tBAoXa`$+!F90">
                                                                        <field name="BOOL">TRUE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_compare" id="F5/x/w^OMFvLOTQcozjk">
                                                                    <field name="OP">EQ</field>
                                                                    <value name="A">
                                                                      <block type="get_value" id="2RUw_5O=]*`_f*_;G*cG">
                                                                        <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="v@daY?1`l{mo9j5w,BpI">
                                                                        <field name="BOOL">FALSE</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO0">
                                                          <block type="comment" id="{bOw4(Uxv`W.+LwkS:ZH">
                                                            <field name="COMMENT">hue.0.z_hallway_ceiling.scene_entspannen - true</field>
                                                            <next>
                                                              <block type="control" id="dGArAczn5t7Akifm$%I#">
                                                                <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="{IXws~W_QJKHyn02^h}]">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                        <value name="IF1">
                                                          <block type="logic_negate" id="ZW11dUIiJ/;B/p~o+=~l">
                                                            <value name="BOOL">
                                                              <block type="on_source" id="(=V3.vq]6Ec-:TC4$cq~">
                                                                <field name="ATTR">state.val</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <statement name="DO1">
                                                          <block type="comment" id="Eu3nnc6`@;g+5s_Vqv?K">
                                                            <field name="COMMENT">hue.0.z_hallway_ceiling.on - false</field>
                                                            <next>
                                                              <block type="control" id="1nmkuYyJD#1hN!7RxO._">
                                                                <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="!|YW4h;D,]z`(gFhLdQr">
                                                                    <field name="BOOL">FALSE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </next>
                                                          </block>
                                                        </statement>
                                                      </block>
                                                    </next>
                                                  </block>
                                                </next>
                                              </block>
                                            </statement>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </xml>
    

    Für eine freundliche Unterstützung bedanke ich mich schon einmal vorab.

    Gruß, Karsten

      "hosts":
          "version": "3.3.18",
          "platform": "Javascript/Node.js",
          "type": "linux"
      "node": "v14.18.1",
      "npm": "v6.14.15"
      "arch": "x64",
    
      "adapters": 
        "admin": "v5.1.25",
        "javascript": "v5.2.8"
    
    CinimodC Offline
    CinimodC Offline
    Cinimod
    Most Active
    schrieb am zuletzt editiert von Cinimod
    #2

    @hydrotec

    du kannst den andere Trigger Block nehmen, dort auf das Zahnrad, dann kannst dir mehrere darein ziehen. Das sind allerdings nicht alles Bedingungen, sondern einer der Datenpunkte löst den Trigger aus, egal welcher sich verändert.

    Als bedingungen musst du dann anschließend Falls benutzten wie du es ja schon in deinem Skript hast.

    Du kannst aus dem "und" block auch "oder" machen ... und nimm dann nicht mehr den "wert" block.

    Bildschirmfoto 2021-10-18 um 19.13.56.png

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

    hydrotecH 1 Antwort Letzte Antwort
    0
    • CinimodC Cinimod

      @hydrotec

      du kannst den andere Trigger Block nehmen, dort auf das Zahnrad, dann kannst dir mehrere darein ziehen. Das sind allerdings nicht alles Bedingungen, sondern einer der Datenpunkte löst den Trigger aus, egal welcher sich verändert.

      Als bedingungen musst du dann anschließend Falls benutzten wie du es ja schon in deinem Skript hast.

      Du kannst aus dem "und" block auch "oder" machen ... und nimm dann nicht mehr den "wert" block.

      Bildschirmfoto 2021-10-18 um 19.13.56.png

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

      @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

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

      CinimodC 1 Antwort Letzte Antwort
      0
      • hydrotecH hydrotec

        @cinimod

        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
        schrieb am zuletzt editiert von
        #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 Antwort Letzte Antwort
        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
          schrieb am zuletzt editiert von
          #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 Antwort Letzte Antwort
          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
            schrieb am zuletzt editiert von 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 Antwort Letzte Antwort
            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
              schrieb am zuletzt editiert von 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 Antwort Letzte Antwort
              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
                schrieb am zuletzt editiert von 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 Antworten Letzte Antwort
                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
                  schrieb am zuletzt editiert von
                  #9

                  @cinimod

                  War jetzt nur mal auf die Schnelle zusammengestellt.

                  Code habe ich oben eingefügt.

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

                  1 Antwort Letzte Antwort
                  1
                  • CinimodC Cinimod

                    @hydrotec

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

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

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

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

                    @cinimod

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

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

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

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

                    N 1 Antwort Letzte Antwort
                    0
                    • hydrotecH hydrotec

                      @cinimod

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

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

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

                      N Offline
                      N Offline
                      Nordischerjung
                      schrieb am zuletzt editiert von
                      #11

                      @hydrotec Moin,

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

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

                      Gruß Nordischerjung

                      sonnige Grüße von der Ostsee

                      hydrotecH 1 Antwort Letzte Antwort
                      0
                      • N Nordischerjung

                        @hydrotec Moin,

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

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

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

                        @nordischerjung

                        Guten Morgen,

                        auch dir ein Dankeschön für deinen Hinweis :-)

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

                        Gruß, Karsten

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

                        CinimodC 1 Antwort Letzte Antwort
                        0
                        • hydrotecH hydrotec

                          @nordischerjung

                          Guten Morgen,

                          auch dir ein Dankeschön für deinen Hinweis :-)

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

                          Gruß, Karsten

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

                          @hydrotec

                          Fragst du nicht drei mal genau die selben Bedingungen ab ?

                          Bildschirmfoto 2021-10-19 um 10.28.02.png

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

                          hydrotecH 1 Antwort Letzte Antwort
                          0
                          • CinimodC Cinimod

                            @hydrotec

                            Fragst du nicht drei mal genau die selben Bedingungen ab ?

                            Bildschirmfoto 2021-10-19 um 10.28.02.png

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

                            @cinimod

                            Vom Prinzip her sogar dreimal.

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

                            Edit: Du warst schneller ;-)

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

                            Bau ich gleich mal um

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

                            CinimodC 1 Antwort Letzte Antwort
                            0
                            • hydrotecH hydrotec

                              @cinimod

                              Vom Prinzip her sogar dreimal.

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

                              Edit: Du warst schneller ;-)

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

                              Bau ich gleich mal um

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

                              @hydrotec

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

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

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

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

                              hydrotecH 2 Antworten Letzte Antwort
                              1
                              • CinimodC Cinimod

                                @hydrotec

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

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

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

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

                                @cinimod
                                Bei allen drei Bedingungen soll auch getriggert werden.

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

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

                                1 Antwort Letzte Antwort
                                0
                                • CinimodC Cinimod

                                  @hydrotec

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

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

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

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

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

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

                                  :+1:

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

                                  CinimodC 1 Antwort Letzte Antwort
                                  0
                                  • hydrotecH hydrotec

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

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

                                    :+1:

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

                                    @hydrotec

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

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

                                    Bildschirmfoto 2021-10-19 um 10.36.48.png

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

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

                                    hydrotecH 1 Antwort Letzte Antwort
                                    1
                                    • CinimodC Cinimod

                                      @hydrotec

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

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

                                      Bildschirmfoto 2021-10-19 um 10.36.48.png

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

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

                                      @cinimod

                                      Das ist genau das was ich wollte :+1:

                                      Man lernt halt nie aus. ;-)

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

                                      Gruß, Karsten

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

                                      CinimodC 1 Antwort Letzte Antwort
                                      0
                                      • hydrotecH hydrotec

                                        @cinimod

                                        Das ist genau das was ich wollte :+1:

                                        Man lernt halt nie aus. ;-)

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

                                        Gruß, Karsten

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

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

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

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

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

                                          Blockly_Trigger_Bedingungen_08.png

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

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

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


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          370

                                          Online

                                          32.4k

                                          Benutzer

                                          81.5k

                                          Themen

                                          1.3m

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

                                          • Du hast noch kein Konto? Registrieren

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