Hallo,
ich möchte gern verschiedene Modi programmieren. Wie löst ihr das?
Beispiel: Ich möchte entscheiden, ob die Lampe an der Haustür über den BWM geschaltet wird, oder ich die Lampe manuell einschaltet. Wenn ich es Manuell eingeschaltet haben, soll sie auch nicht ausgehen, wenn der BWM wieder abschaltet.
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="on" id="s|gx2aArG8HG1vE:|=E4" x="63" y="137">
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d000200d283.state</field>
<field name="CONDITION">true</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="rMfh]sf)Ic,E^gs.HD_v">
<value name="IF0">
<block type="logic_compare" id="S.^JPxfQUJ),[fy@.f{.">
<field name="OP">LTE</field>
<value name="A">
<block type="get_value" id="Oe)K|k|1xV!0AFiG([vu">
<field name="ATTR">val</field>
<field name="OID">mihome.0.devices.sensor_motion_aq2_158d000200d283.lux</field>
</block>
</value>
<value name="B">
<block type="math_number" id="L.m[U_**ooRO,An`/SgG">
<field name="NUM">15</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="x0,70AN9M?1-WlOtlZc,">
<mutation delay_input="false"></mutation>
<field name="OID">scene.Vitrine</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="GZLe9V.3B1i/LBzHw4bK">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="control" id="j%HOJj=tG|S9U*a[u*Xg">
<mutation delay_input="true"></mutation>
<field name="OID">scene.Vitrine</field>
<field name="WITH_DELAY">TRUE</field>
<field name="DELAY_MS">2</field>
<field name="UNIT">min</field>
<field name="CLEAR_RUNNING">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="x_eA;D+MO:ZE9ou6Gd,h">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</next>
</block>
</statement>
</block>
</statement>
</block>
</xml>
Alles anzeigen
Wie würdet ihr das lösen?