Menu

Trying to go from Comfort to nightmode

Help
toer
2008-02-22
2012-12-14
  • toer

    toer - 2008-02-22

    Hi,
    I am new to linknx got it working yesterday and so far it looks promising.
    My problem is I am trying to use rocker 3 on my bedroom switch to go from comfort to nightmode.

    So far i got this in my linknx.xml:

    <object id="bed1rocker3" gad="0/0/23" type="EIS1">Bed 1 rocker 3 nightmode</object>
    <object id="nightmode" gad="2/0/0" type="EIS1">Nightmode</object>
    <object id="comfortmode" gad="2/0/1" type="EIS1">Comfortmode</object>

    <rule id="test">
      <condition type="object" id="bed1rocker3" value="on" />
      <actionlist>
        <action type="set-value" id="comfortmode" value="off" />
        <action type="set-value" id="nightmode" value="on" delay="2" />
      </actionlist>
    </rule>

    this is the output from linknx:

    KnxConnection: Group socket opened. Waiting for messages.
    Write from 1.1.17 to 0/0/23: 01
    New value 1 for switching object bed1rocker3

    So if i understand this right this should work?
    But my test rule does nothing when i switch on rocker 3.

    If someone can tell me what i do wrong this would probably save me lots of time.

    Examples in english are also welcome..

    Kind regards,
    Tore

     
    • jef2000

      jef2000 - 2008-02-22

      Hi,

      I should explain it more in details in the wiki, the solution to your problem is in sentence:
      "The rule will be evaluated only if one of its sub-conditions with parameter "trigger" set to "true" changes its value."
      This feature is very powerful, because it allows you more detailed control on WHEN the rules are evaluated, but at the same time it's error prone, because if you don't set it at all, your condition will never be evaluated...

      In your case, just use:
      <condition type="object" id="bed1rocker3" value="on" trigger="true"/>

      Kind regards,

      Jean-François

       
    • toer

      toer - 2008-02-22

      thanks :)

       

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.