Hi zusammen. Ich möchte eigentlich eine Bewegungsteuerung aktivieren die nur läuft wenn es nacht ist, ja ich kann auch mit Uhrzeit arbeiten , das mache ich aktuell aber im sommer ist es nunmal länger hell und ich möchte nicht immer an den zeiten spielen.
Kann mir jemand sagen warum das Script so nicht funktioniert ? Anbei ein Screen und der Code. Danke schonmal vorab
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on" id="O!Nt:TG-7m1]E}YOQ/q`" x="-1112" y="-963">
<field name="OID">mihome.0.devices.motion_158d0000d4b645.state</field>
<field name="CONDITION">any</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="X?jm3]+06ScU#u;XqB=f">
<value name="IF0">
<block type="logic_operation" id="@yRtQDt548s4?6x!nvnB">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="@X_8JR@F*3o=E1?1-4[e">
<field name="OP">EQ</field>
<value name="A">
<block type="time_astro" id="@dAg%]GVU/HQelO[v2VN">
<field name="TYPE">night</field>
<field name="OFFSET">0</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="Fy{(bS[w?s^g8`ENgk/O">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare" id="hs*B.`fNhHq(,n!/Fz7,">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="GH`M6qv5q^JHGPA}.!/@">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.motion_158d0000d4b645.state</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id=")Jkvyf/olrnVz2iL~p3+">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="Lf7u%r79)U;Y%rSH#`BE">
<mutation delay_input="false"></mutation>
<field name="OID">yeelight-2.0.stripe-Yeelight_Stripe.control.power</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="HY`6Dun0I%bFj*eq_f77">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="`scUo=%P|Uad]m2VwI(o">
<mutation delay_input="false"></mutation>
<field name="OID">yeelight-2.0.stripe-Yeelight_Stripe.control.active_bright</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="convert_tonumber" id="F3;M,:#5r//G]6^Z]sR8">
<value name="VALUE">
<block type="text" id="BiQ)^5_3V?or9apMET6j">
<field name="TEXT">20</field>
</block>
</value>
</block>
</value>
<next>
<block type="timeouts_settimeout" id="8rvMdV,f.lr#Oql?22-M">
<field name="NAME">timeout</field>
<field name="DELAY">2</field>
<field name="UNIT">min</field>
<statement name="STATEMENT">
<block type="control" id="chs%OT!%@+E2mmX_u`5z">
<mutation delay_input="false"></mutation>
<field name="OID">yeelight-2.0.stripe-Yeelight_Stripe.control.power</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="+csfo@=1N5~iVS5*`G4;">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Alles anzeigen