Hallo,
habe wiedermal eine kleine Denkschwäche wer kann helfen oder vereinfachen?
Habe einen Bewegungsmelder und einen Taster. Jedes soll die eingestellte gewisse Zeit das Licht einschalten.
da die google suche und mein Rat aufgebraucht ist bitte ich hier um Hilfe.
Leider kann ich keine Bilder mit dem Mac einfügen.
folgendes Skript macht folgendes:
Bewegungsmelder schaltet Licht ein und nach eingestellter Zeit aus. Taster schaltet Licht ein aber nicht mehr aus.
das ander skript ist zu lange zum speichern hier.???
Code
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="comment" id="*TME#qfj{i@E1NIuFwJ5" x="-2587" y="-1563">
<field name="COMMENT">geht aber Taster ohne Abschaltung</field>
<next>
<block type="on" id="efud6@0Js=5-AC1mAP%-">
<field name="OID">zigbee.0.00158d0002b9395f.occupancy</field>
<field name="CONDITION">ne</field>
<field name="ACK_CONDITION"></field>
<statement name="STATEMENT">
<block type="controls_if" id="rD!wK#95jV;ci-+hIRAy">
<value name="IF0">
<block type="logic_operation" id="G|!)YL.l|S|AeKyu7O}T" inline="false">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare" id="7WQjjFAq*5VXba3GXikX">
<field name="OP">EQ</field>
<value name="A">
<block type="get_value" id="**Jzzk[b5d7fS_RJ)56%">
<field name="ATTR">val</field>
<field name="OID">zigbee.0.00158d0002b9395f.occupancy</field>
</block>
</value>
<value name="B">
<block type="logic_boolean" id="YOoGQ?lwVAW_z|K}6*My">
<field name="BOOL">TRUE</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="time_compare_ex" id="[dPND*DYmDp2%ypNXaZn">
<mutation end_time="true" actual_time="true"></mutation>
<field name="USE_ACTUAL_TIME">TRUE</field>
<field name="OPTION">not between</field>
<value name="START_TIME">
<shadow type="text" id="S~S{,I?hVkWXMmZ!1UZH">
<field name="TEXT">12:00</field>
</shadow>
<block type="time_astro" id="{|L#NA1@dfEWMb#9p4F7">
<field name="TYPE">dawn</field>
<field name="OFFSET">0</field>
</block>
</value>
<value name="END_TIME">
<shadow type="text" id="}nd9COeq:vL/,(2%YsvV">
<field name="TEXT">18:00</field>
</shadow>
<block type="time_astro" id="h=fK-o;)wk*4V4+^XWJ}">
<field name="TYPE">dusk</field>
<field name="OFFSET">0</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="control" id="#OOz:`oYZWOeQw[~B@5#">
<mutation delay_input="false"></mutation>
<field name="OID">shelly.0.SHSW-1#228328#1.Relay0.Switch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="K:Tuz0g9ZNs0]?6^n-n:">
<field name="BOOL">TRUE</field>
</block>
</value>
<next>
<block type="comment" id="~ejHCB;?*F@Y_eZQYJe{">
<field name="COMMENT">bei erneuter Bew, stoppen und von anfangen</field>
<next>
<block type="timeouts_cleartimeout" id="Mr?9a9By2[A9p,CE@I-8">
<field name="NAME">timeout</field>
<next>
<block type="timeouts_settimeout" id="*d,8~-5CHLv;R2qi?lLG">
<field name="NAME">timeout</field>
<field name="DELAY">70</field>
<field name="UNIT">sec</field>
<statement name="STATEMENT">
<block type="control" id="(D8[ZG-F]/y[~J]J[n!V">
<mutation delay_input="false"></mutation>
<field name="OID">shelly.0.SHSW-1#228328#1.Relay0.Switch</field>
<field name="WITH_DELAY">FALSE</field>
<value name="VALUE">
<block type="logic_boolean" id="mOQS6g%b2bfkYJ4D+65m">
<field name="BOOL">FALSE</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</statement>
Alles anzeigen