Nein, es geht mir eher darum um eine Sammelung an Skript möglichkeiten zu bekommen.
Von Losfahren bis Bereichsreinigung Wenn jeder ein paar beispiel bringt macht es das fuer Newbe's wie mich einfacher.
<u>Als Beispiel ( auch wenn nicht vom Vacuum)</u>
USE: Nachtschaltung ROT/WEISS nach Zeit
Hardware: 2 xAqara Motion Sensor, MI Gateway V2,
Blockly Screenshot
![](</s><ATTACHMENT )[attachment=0]~~NAchtschaltung.JPG[/attachment]" />
Export Blockly Code
<xml xmlns="http://www.w3.org/1999/xhtml"><block type="on_ext" id="g5*p?WfzFfKrWc=D(9Z," x="-113" y="-38"><mutation items="2"></mutation>
<field name="CONDITION">ne</field>
<value name="OID0"><shadow type="field_oid" id="%S{Ir@4K,/gBXQsY6K`-"><field name="oid">mihome.0.devices.sensor_motion_aq2_158d0001e0582e.state</field></shadow></value>
<value name="OID1"><shadow type="field_oid" id="LD%Cc^=^]hn9x)h(^!pq"><field name="oid">mihome.0.devices.sensor_motion_aq2_158d0001e0584a.state</field></shadow></value>
<statement name="STATEMENT"><block type="controls_if" id="o7bArR[SgxU(fI!!y3h|"><mutation elseif="2"></mutation>
<value name="IF0"><block type="logic_operation" id="_08m3[/PYk2].;k`+JPM"><field name="OP">AND</field>
<value name="A"><block type="time_compare" id="+_Bg3|tlh=F9NzgFjcHI"><mutation end_time="true"></mutation>
<field name="OPTION">between</field>
<field name="START_TIME">19:30</field>
<field name="END_TIME">22:30</field></block></value>
<value name="B"><block type="logic_compare" id="uW{/4zQqQ93rDH].n7=R"><field name="OP">EQ</field>
<value name="A"><block type="logic_operation" id="0J|/VN3ogV)ZwZi1*VI+"><field name="OP">OR</field>
<value name="A"><block type="get_value" id="F2Fq%)f%~bTL|;[_XLu#"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d0001e0582e.state</field></block></value>
<value name="B"><block type="get_value" id="7SzM;H/A{TUz9?4{=IV6"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d0001e0584a.state</field></block></value></block></value>
<value name="B"><block type="logic_boolean" id="!skdxxF/@JtOf6Bc-ReU"><field name="BOOL">TRUE</field></block></value></block></value></block></value>
<statement name="DO0"><block type="control" id="[%mbNnZ9,UR-=S9E5yiA"><mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dce136bf.dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="convert_tonumber" id="9G~ovqp3X4~5HfQ`gG/O"><value name="VALUE"><block type="text" id="X/MzV.|ivi?EI9P!he0K"><field name="TEXT">50</field></block></value></block></value>
<next><block type="control" id="n;9C;47=_oxp~u2Y89m;"><mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dce136bf.rgb</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="-;ogCmjb}~,mht-8K{?I"><field name="TEXT">#fffafa</field></block></value></block></next></block></statement>
<value name="IF1"><block type="logic_operation" id="=H*%GPiE{qhfOr}f0UBG"><field name="OP">AND</field>
<value name="A"><block type="time_compare" id=".dj0ZGEFuA2+Ie_}/Lsf"><mutation end_time="true"></mutation>
<field name="OPTION">between</field>
<field name="START_TIME">22:31</field>
<field name="END_TIME">06:00</field></block></value>
<value name="B"><block type="logic_compare" id="#ZCMdiO1nHQ#)A9nq)Z#"><field name="OP">EQ</field>
<value name="A"><block type="logic_operation" id="XUA@6qh+/@rNDL}zn^#t"><field name="OP">OR</field>
<value name="A"><block type="get_value" id="f8S|*34:2q^*tzUYvi_p"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d0001e0582e.state</field></block></value>
<value name="B"><block type="get_value" id="6!DLJxhdiV:j!srTV;~w"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d0001e0584a.state</field></block></value></block></value>
<value name="B"><block type="logic_boolean" id="B^kJ8f3hSyP^1irzfN{8"><field name="BOOL">TRUE</field></block></value></block></value></block></value>
<statement name="DO1"><block type="control" id="gXl.ST[hceuL[jt^M+Wy"><mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dce136bf.dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="convert_tonumber" id="UJ4QIz?jN;{!Z77@S2Ye"><value name="VALUE"><block type="text" id="Rw[V4=fK?WSRYF_dLA;{"><field name="TEXT">25</field></block></value></block></value>
<next><block type="control" id="uoo`[Xv%N1|^Qd5;|5cK"><mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dce136bf.rgb</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="text" id="Sbkm|q)`Ti?-fdOHjIgD"><field name="TEXT">#ff0000</field></block></value></block></next></block></statement>
<value name="IF2"><block type="logic_compare" id="TsWsR~N#3XSycKIYhRo{"><field name="OP">EQ</field>
<value name="A"><block type="logic_operation" id="!PX/#t:Tuhjnj=O:XuRK"><field name="OP">AND</field>
<value name="A"><block type="get_value" id="Vj@k*neQf;%pzF}|]/2p"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d0001e0582e.state</field></block></value>
<value name="B"><block type="get_value" id="6NFxG;#;3zHPYKqa1?k|"><field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d0001e0584a.state</field></block></value></block></value>
<value name="B"><block type="logic_boolean" id="F[Cik*]i~p:(*[ikrB[q"><field name="BOOL">FALSE</field></block></value></block></value>
<statement name="DO2"><block type="control" id="x}./R}K3o|7Yyk9*S|[W"><mutation delay_input="false"></mutation>
<field name="OID">mihome.0.devices.gateway_7811dce136bf.dimmer</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE"><block type="convert_tonumber" id="bb+`Sbo|4kX%~?)`BSWE"><value name="VALUE"><block type="text" id=".nEy;74*Tm?]e;5W7k-Q"><field name="TEXT">0</field></block></value></block></value></block></statement></block></statement></block></xml>
````~~