Menu

Linknx, cycle-on-off

Help
hd88
2008-10-23
2012-12-14
  • hd88

    hd88 - 2008-10-23

    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

     
    • jef2000

      jef2000 - 2008-10-23

      <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

       
    • hd88

      hd88 - 2008-10-28

      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

       

Log in to post a comment.