This will stop the cycle if object "tuer_a" is changed to value "off".
You can use any valid condition as the stop condition. This would also work:
<action type="cycle-on-off" id="tuer_a1" on="2" off="1" count="10">
<stopcondition type="or">
<condition type="object" id="tuer_a" value="off" trigger="true" />
<condition type="object" id="tuer_a_stop_cycle" value="on" trigger="true" />
<condition type="timer" trigger="true" >
<at min="0" hour="0" />
</condition>
</stopcondition>
</action>
Regards,
Jean-François
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hallo,
wie kann ich folgende folgende Ausführung stoppen ?
<rule id="toe1_ea">
<condition type="or">
<condition type="object" id="tuer_a" value="on" trigger="true" />
</condition>
<actionlist>
<action type="cycle-on-off" id="tuer_a1" on="2" off="1" count="10" />
</actionlist>
</rule>
Thanks in advance,
Hans
<action type="cycle-on-off" id="tuer_a1" on="2" off="1" count="10">
<stopcondition type="object" id="tuer_a" value="off" trigger="true" />
</action>
This will stop the cycle if object "tuer_a" is changed to value "off".
You can use any valid condition as the stop condition. This would also work:
<action type="cycle-on-off" id="tuer_a1" on="2" off="1" count="10">
<stopcondition type="or">
<condition type="object" id="tuer_a" value="off" trigger="true" />
<condition type="object" id="tuer_a_stop_cycle" value="on" trigger="true" />
<condition type="timer" trigger="true" >
<at min="0" hour="0" />
</condition>
</stopcondition>
</action>
Regards,
Jean-François
Hi Jeff!
ich habe mehrere Varianten von stopcondition getestet, aber cycle-on-off lässt sich nicht stoppen.
Hast Du noch eine Idee ? , benutze linknx-0.0.1.25 auf Debian.
Thanks in advance,
Hans