Menu

rules on server startup

Help
itarch
2014-08-27
2014-08-27
  • itarch

    itarch - 2014-08-27

    hi,

    first of all... thank you for providing such a good tool and the forum
    Even if I am a very late follower, however, after went through the wikis and got linknx doing a simple switch on and off lights I at the moment face a problem with

    "rules on server startup"

    As far as I understand the wikis, when I want to get the rule performed after starting linknx I need to configure the following
    <rules>

    <rule id="DoSomething" init="true">

    <condition type="object" id="LED-1" value="1" trigger="true"/>
    
      <actionlist type="if-true">
    
        <action type="set-value" id="LED-2" value="1" delay="3" />
    
      </actionlist>
    
      <actionlist type="if-false">
    
        <action type="set-value" id="LED-2" value="0" delay="3" />
    
      </actionlist>
    

    </rule>

    </rules>

    In the rule line init is set true, the trigger in the condition line is set true and object value is set. The <objects> part of my xml-file looks like this:
    <objects>
    <object id="LED-1" gad="3/7/1" type="1.001" flags="crwu" init="request" log="true">LED-1-State</object>

    <object id="LED-2" gad="3/7/2" type="1.001" flags="crwtu" init="request" log="true">LED-2-State</object>

    </objects>

    What I expect is, to see linknx performing the rule after startup, sending "1" at 3/7/2 if LED-1 value is "1" or sendíng "0" at 3/7/2 if LED-1 value is "0".
    I use linknx 0.0.1.30

    What is here wrong? Or am I expecting a behaviour which I have not right configured in the xml-file?

     
  • Anthony

    Anthony - 2014-08-27

    Hi,

    the evaluation of the rules, a the start of linknx, has been integrate in linknx after version 0.0.1.30

    in the current version 0.0.1.32 you have all what you want i think

    best regards
    Anthony.

     

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.