Menu

and/or condition in the object part

Help
Ronny H
2008-11-04
2012-12-14
  • Ronny H

    Ronny H - 2008-11-04

    Hi

    how can I represent a lamp (with switch i know) in knxweb, which is dependent on one or more and/or condition? For example: My time switch sends a on signal at 17 o'clock. Only with the signal of the dawn the lamp is switched on.
    Today i didn't found a way to show the "really" status of the light. This would be a very good feature, but no priority.

    Thanks

    Ronny

     
    • jef2000

      jef2000 - 2008-11-05

      Hi,

      Are you sure that you really need to do this with linknx? Most actuators have a status object for each output, and this objects sends the real state of the switch.
      If that feature is missing on your actuator, you can similate it in linknx by creating an internal object (without group address) and create a rule that will set it's value:

      <object id="outdoor_light_status">Outdoor light</object>

      <rule id="outdoor_light_status_rule">
          <condition type="and">
              <condition type="object" id="timer_17h" value="on" trigger="true"/>
              <condition type="object" id="dawn_detector" value="on" trigger="true"/>
          </condition>
          <actionlist>
              <action type="set-value" id="outdoor_light_status" value="on" />
          </actionlist>
          <actionlist type="on-false">
              <action type="set-value" id="outdoor_light_status" value="off" />
          </actionlist>
      </rule>

      Regards,

      Jean-François

       

Log in to post a comment.