hey ich hijacke den Thread jetzt mal:
auch ich möchte eine Zeitschaltuhr bauen, allerdings auch mit der Bedingung, des Bewegungssensors. Hab mir auf verdrahtet.de das ein wenig angesehen und nachgebaut.
Kann sich das mal wer ansehen ob das so richtig ist? Büdde!
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="schedule" id="VCY5^X``{Jh|^jLC3xWR" x="38" y="12">
<field name="SCHEDULE">{"time":{"exactTime":true,"start":"06:00"},"period":{"days":1}}</field>
<statement name="STATEMENT">
<block type="controls_if" id=";3{^!`Rv,#0{z2*z~B+G">
<value name="IF0">
<block type="logic_compare" id="t-4#`_u2VZ97GPxlm%-`">
<field name="OP">EQ</field>
<value name="A">
<block type="time_astro" id="z:^QhyYBT1DXl-(rVO_2">
<field name="TYPE">night</field>
<field name="OFFSET">0</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="W+[O9OxlxxA?xLGkNjHp">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="controls_if" id="_?hwbW|eJ!8]q,#w?64X">
<value name="IF0">
<block type="logic_compare" id="Oc}o0ZusPNb}m:Bt6/xW">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="]4C?yqcM3jQ}R}jImAi]">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d0002b44183.state</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="wX;wk;j=owRo2s5*:k{u">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="yx@B5,{wXW2eJ{g`Occ[">
<mutation delay_input="false"></mutation>
<field name="OID">yeelight-2.0.stripe-0x0000000007c34fdf.control.power</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="=z]YCyE[QvT8%oPKw}[J">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="NF7`Ic8(|tjg{!Lkv.s;">
<mutation delay_input="true"></mutation>
<field name="OID">[definition='102','0']hue[/definition].0.Philips_hue.Carport.on</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">1000</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="bb7%)(,FOTpTTT@X{P*r">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</statement>
<next>
<block type="astro" id="#s!}gCQ?aeTd8JVa$bJp">
<field name="TYPE">sunset</field>
<field name="OFFSET">0</field>
<statement name="STATEMENT">
<block type="controls_if" id="p+iE.a{@s8VGY|GDzryt">
<value name="IF0">
<block type="logic_compare" id="rTgjcQh2#1dq:T6^q(53">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="mLv]m|Qdh!Q|iHbK?Zmj">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d0002b44183.state</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="!-HY+3;cbw_Zb%$u74D)">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="MV+k!n@v-,Z@y?S8oXPy">
<mutation delay_input="false"></mutation>
<field name="OID">yeelight-2.0.stripe-0x0000000007c34fdf.control.power</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="ytiv#uc,}hbW6t%vW[Fw">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="N=*}0($`y?eI#rMHO1y$">
<mutation delay_input="true"></mutation>
<field name="OID">[definition='102','0']hue[/definition].0.Philips_hue.Carport.on</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">1000</field>
<field name="UNIT">ms</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="+5nq=w6D(O`tVW4x5{gk">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</next>
</block>
</xml>
Alles anzeigen