Menu

more than one time-counter

Help
Anonymous
2010-07-28
2012-12-14
  • Anonymous

    Anonymous - 2010-07-28

    Hi,

    I cannot have more that one  time-counter in my linknx . When I configure more that one rule with a time-counter  the lynknx  only see the last one in my config .

    For example I have just  configured two rule like this:

    <rule>
          <condition type="time-counter" threshold="10m" reset-delay="1">
         <condition type="object" id="Test1"  value="0" trigger="true" />
    </condition>
    <actionlist>
    <action type="set-value" id="Test_1_ON-OFF" value="off" />
    </actionlist>
    </rule>
    <rule>
          <condition type="time-counter" threshold="10m" reset-delay="1">
         <condition type="object" id="Test2"  value="0" trigger="true" />
    </condition>
    <actionlist>
    <action type="set-value" id="Test_2_ON-OFF" value="off" />
    </actionlist>
    </rule>

    If I ask to the linknx to the rules with "<read><config><rules/></config></read>·" , the linknx  return the  last one  and of course only works the last one.

    Does anybody knows if this is correctt ?  May be is it  a bug ?

    Thank you

     
  • JensH

    JensH - 2010-07-28

    Ah, time-counters!
    My beloved feature!
    I have 6 of them and all working now. The secret is probably, that you need to give a name to the rules,
    i.e. something like:
    <rule id="firstrule">

    </rule>
    <rule id="secondrule">

    </rule>

    try this :-)

    By the way: which CVS-Version are you using? Please check also my message to jef few days ago.
    best Regards, Jens

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.