brauch eure Hilfe.
Möchte eine indirekte Beleuchtung ausschalten wenn das Hauptlicht ein war und ausgeschaltet wird.
Indirekte Beleuchtung wird durch Türsensor eingeschaltet (Shelly RGB) nach gewisser Zeit aus. <-- läuft auch mit dem Skript.
Mir fehlt die zündende Idee wie ich alles ausschalte (wenn Hauptlicht Shelly mit Schalter ausgeschaltet wird.
Einer einen Tipp oder ein Blockly???
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<variables>
<variable type="undefined" id="timeout">timeout</variable>
</variables>
<block type="on" id="S]N31~jQZzh{_q(:FTY4" x="-2112" y="-1487">
<field name="OID">deconz.0.Sensors.14.open</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="P3Ml,ZiexWT?MLs_Lczw">
<value name="IF0">
<block type="logic_operation" id="lhjOxG8:~:ZMbv!Bh`X4" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="1y],WMQ:4O2kBSq`f1IF">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="tto{8[wGUlZT}vz8H:O,">
<field name="ATTR">val</field>
<field name="OID">deconz.0.Sensors.14.open</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="JI9#uTdkR0Z`bK0qt9R^">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation" id="O)$/S5}nAFzx)m|+ua(E" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="time_compare_ex" id="Q8Jx+%ov%S17W~hcl4/#">
<mutation end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">not between</field>
<value name="START_TIME">
<shadow type="text" id="S~S{,I?hVkWXMmZ!1UZH">
<field name="TEXT">12:00</field>
</shadow>
<block type="time_astro" id="/{t!U+-me;{MMwBX]m+o">
<field name="TYPE">dawn</field>
<field name="OFFSET">60</field>
</block>
</value>
<value name="END_TIME">
<shadow type="text" id="4iC7h,kDo~lzxsnudB.k">
<field name="TEXT">18:00</field>
</shadow>
<block type="time_astro" id="/bfFfsh}rLpTp#wN1c?~">
<field name="TYPE">dusk</field>
<field name="OFFSET">-45</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="time_compare_ex" id="$HPKetmb),J2`aXwyXb7">
<mutation end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">not between</field>
<value name="START_TIME">
<shadow type="text" id="S~S{,I?hVkWXMmZ!1UZH">
<field name="TEXT">12:00</field>
</shadow>
<block type="time_astro" id="_6`}iFDo@G]1K/YwTf_l">
<field name="TYPE">dawn</field>
<field name="OFFSET">120</field>
</block>
</value>
<value name="END_TIME">
<shadow type="text" id="4iC7h,kDo~lzxsnudB.k">
<field name="TEXT">18:00</field>
</shadow>
<block type="time_astro" id="DdFg0?*%ztIE5z#760tZ">
<field name="TYPE">dusk</field>
<field name="OFFSET">-105</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="ILm3qQh5E|B=c`2EZniY">
<mutation delay_input="false"></mutation>
<field name="OID">shelly.0.SHRGBW2#6D7F01#1.color.rgbw</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="text" id="`H{]UruncXrT~Gg$aSL4">
<field name="TEXT">#00F00000</field>
</block>
</value>
<next>
<block type="control" id="]VJok3LGjR2~Gj~jPbP2">
<mutation delay_input="false"></mutation>
<field name="OID">shelly.0.SHRGBW2#6D7F01#1.color.Switch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id=".B`kj^ZW[pj:?*0rK:gF">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="comment" id="S81%1s%WkHGqYN*bqf;j">
<field name="COMMENT">duch den timeout ignoriert er das</field>
<next>
<block type="comment" id="9LJ@i2TnZNu.;_ZWLQ2.">
<field name="COMMENT">erneute öffnen des Kontaktes</field>
<next>
<block type="timeouts_settimeout" id="o0O0c^2/c=rgV[|1El?v">
<field name="NAME">timeout</field>
<field name="DELAY">6</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="-zedwS9tLU^8)9;pqF|p">
<mutation delay_input="false"></mutation>
<field name="OID">shelly.0.SHRGBW2#6D7F01#1.color.Switch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id=",c3ER+CPIfD`(1IG]xPg">
<field name="BOOL">FALSE</field>
</block>
</value>
<next>
<block type="timeouts_cleartimeout" id="%#-V|[DyGW3oVEVg8ACw">
<field name="NAME">timeout</field>
</block>
</next>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Alles anzeigen