Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xml xmlns="http://www.w3.org/1999/xhtml">
- <variables>
- <variable type="undefined" id="timeout">timeout</variable>
- </variables>
- <block type="on_ext" id="Mv!MT1rvco3XETzCuTGB" x="-787" y="-912">
- <mutation items="2"></mutation>
- <field name="CONDITION">ne</field>
- <field name="ACK_CONDITION"></field>
- <value name="OID0">
- <shadow type="field_oid" id="~NO]0hcHc./IMm+_GnLa">
- <field name="oid">sonoff.0.DVES_Treppenlichtsensor.POWER</field>
- </shadow>
- </value>
- <value name="OID1">
- <shadow type="field_oid" id="}y0Dw$Pr@zU0UdS17zq/">
- <field name="oid">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER2</field>
- </shadow>
- </value>
- <statement name="STATEMENT">
- <block type="controls_if" id="qHht;}xWiBega3|mT1Zv">
- <mutation elseif="3"></mutation>
- <value name="IF0">
- <block type="logic_compare" id="#gOv!+{*d2Q%d,Fi?@r=">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="get_value" id="=K=tDst$GQTmoo7C~I^$">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER2</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="ev]No3T7Od%19xO,{^!A">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="control" id="N6US=*^t#l]Yus}CWLE#">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="z*/1Y!9riEaPTzvVpuSb">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="timeouts_cleartimeout" id="+*uHEl]oCNQHH4F0W0)x">
- <field name="NAME">timeout</field>
- <next>
- <block type="debug" id="^nsk*x!M,_(#z,W?oZQK">
- <field name="Severity">log</field>
- <value name="TEXT">
- <shadow type="text" id="P:qZ`8yHEt`8g)M433J7">
- <field name="TEXT">geschaltet</field>
- </shadow>
- <block type="text" id="zeP,B9%VL@mx*CZOG.Qk">
- <field name="TEXT">Taster gedrückt, licht daueran</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </next>
- </block>
- </statement>
- <value name="IF1">
- <block type="logic_operation" id="[.lNWTlVaR^MLgFJVFIG">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="PPx{Ll?C3.BYz8z0~,.O">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="get_value" id="RO*#v~0lk8s4.frEN}*f">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_Treppenlichtsensor.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="2tdh1v@d/z/D6Zd0#Ny}">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="@WEWIGmx54/s*p.RX}9R">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="get_value" id="ERGsA=E?DeaasSiTSsVB">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="BhBbpdv),^6^XZ|^3Woj">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO1">
- <block type="control" id="Gr7sa[#FoRVMp*n}Vs*w">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="tM1D_I8FtZnZx#m*X[tT">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- <next>
- <block type="debug" id="w=9Azu8gW+TuV9YNYCFd">
- <field name="Severity">log</field>
- <value name="TEXT">
- <shadow type="text" id="P:qZ`8yHEt`8g)M433J7">
- <field name="TEXT">geschaltet</field>
- </shadow>
- <block type="text" id="U7|?`tPT){*s:UTMK4](">
- <field name="TEXT">Bewegung Erkannt -> Treppenlicht AN</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- <value name="IF2">
- <block type="logic_operation" id="i*v]sjdQ)Z.6+k3g|/!e">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="Q8!{^ZD=+MoVfML1O]pm">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="get_value" id="Rk-51aLRjAi}#b)N@5*x">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_Treppenlichtsensor.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="MFG!,Mv=[xt]SuyJ)+K)">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="ESU]Nkj?#PANmu1^r`@y">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="get_value" id="90n-FJ.Vb2g}jAUrZ^li">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="q3cwU9kz%zKQF,BHw*Q`">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO2">
- <block type="timeouts_cleartimeout" id="GbSiSCG-y{J+*)yr1-qm">
- <field name="NAME">timeout</field>
- <next>
- <block type="debug" id="uwi:gPIl}^XI+DR~Ej(U">
- <field name="Severity">log</field>
- <value name="TEXT">
- <shadow type="text" id="P:qZ`8yHEt`8g)M433J7">
- <field name="TEXT">geschaltet</field>
- </shadow>
- <block type="text" id="ik5V^;3feEBA;O~XM}fE">
- <field name="TEXT">Bewegung wiederholt erkannt -> Timer angehalten</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- <value name="IF3">
- <block type="logic_operation" id="x3vz-[H|fD-IQCWJR0T?">
- <field name="OP">AND</field>
- <value name="A">
- <block type="logic_compare" id="f`0vvn1a:n{ZRWKS+,IC">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="get_value" id="[]Un=8gjQ^3QeNGDj?bq">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.DVES_Treppenlichtsensor.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="Ru;//M[#J^s9-]~?i{[o">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </value>
- <value name="B">
- <block type="logic_compare" id="]Km:JyA#]}OGsxFe6f=+">
- <field name="OP">EQ</field>
- <value name="A">
- <block type="get_value" id="U7Ol[JR-JN%{3dDUYMtU">
- <field name="ATTR">val</field>
- <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
- </block>
- </value>
- <value name="B">
- <block type="logic_boolean" id="c5,|+2IndqRJHTY;*Wy-">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO3">
- <block type="timeouts_settimeout" id="I0sUAS/_Kb%ipxBR!}0%">
- <field name="NAME">timeout</field>
- <field name="DELAY">16</field>
- <field name="UNIT">sec</field>
- <statement name="STATEMENT">
- <block type="control" id="uUG(C1wQ%IOnk@8ilY1g">
- <mutation delay_input="false"></mutation>
- <field name="OID">sonoff.0.SONOFF_Treppenlich_C48C2D.POWER</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="(#0`Y|YSc.|~+Ndn{ybq">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- <next>
- <block type="debug" id="__,]wCQv64}rr*5{!wru">
- <field name="Severity">log</field>
- <value name="TEXT">
- <shadow type="text" id="P:qZ`8yHEt`8g)M433J7">
- <field name="TEXT">geschaltet</field>
- </shadow>
- <block type="text" id="TFY~[XlDUnU)0G~ZDt5`">
- <field name="TEXT">Bewegung nicht mehr Vorhanden -> Aus!</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- <next>
- <block type="debug" id="D)dP^UBxesUWq[CDO~%3">
- <field name="Severity">log</field>
- <value name="TEXT">
- <shadow type="text" id="P:qZ`8yHEt`8g)M433J7">
- <field name="TEXT">geschaltet</field>
- </shadow>
- <block type="text" id=";?m|f6q@nq*D}6?1Y7Vk">
- <field name="TEXT">Bewegung nicht mehr Vorhanden -> Aus in 15 Sekunden</field>
- </block>
- </value>
- </block>
- </next>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </xml>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement