Menu

Timer problem

Help
chris_14
2008-05-07
2012-12-14
  • chris_14

    chris_14 - 2008-05-07

    Hi,

    I want to shut my blinds at dawn, or on shorter days at 20:00 . Wy does the following role work not correctly?

            <rule id="rollo_runter">
                <condition type="and">
                    <condition type="timer" trigger="true">
                        <at hour="20" min="00" />
                        <until hour="23" min="59" />
                    </condition>
                    <condition type="object" id="daemmerung" value="1" trigger="true" />
                    </condition>
                <actionlist>
                    <action type="set-value" id="zentralsteuerung_rollos" value="1" />
                </actionlist>
            </rule>

    The object "daemmerung" comes from a light sensor.

    Thanks in advance,
    Chris

     
    • chris_14

      chris_14 - 2008-05-08

      I thought about it and I guess that the timer value is only calculated, if the "at"-time appears. Since I tested the role at 22:00, the timer value was "false". I will check it this evening.

      Best regards,
      Chris

       
    • jef2000

      jef2000 - 2008-05-08

      Hi,

      Yes, when you configure the timer, the value is always false and will switch to true only when "at"-time is reached.
      Be careful also that if nothing is setting the value of "zentralsteuerung_rollos" back to zero, it will work the first time you send 1 but not the second time because the actual value  is already 1 (no change). In that case, you can set the "force-write" flag on "zentralsteuerung_rollos" object to force the sending of 1 even if the value is already one.

      Regards,

      Jean-François

       
    • JensH

      JensH - 2008-05-08

      Chris,
      thats funny - currently I also try to replace my "time-driven" control of blinds with commands from my new ABB weather station. :-)
      [I want to close the blinds at 13:00 to 30% if the light is above x lux ... I can keep you posted of my results and the rules :-) ...]

      Anyway: regarding your logic: shouldnt it be "OR"  - since it is either 20:00 (latest) or already dark. (do you mean: close the blinds at 20:00 on LONGER days.)?

      Furthermore: I had to set the force-flag for my trigger as well (as Jeff wrote), since I only trigger "1" and never "0"

      --> set  ....flag ="cwtuf"
      Best Regards, jens

       
    • toer

      toer - 2008-05-16

      Hi,
      I got the following timer..

      <condition type="timer" trigger="true">
        <at hour="05" min="45" exception="no" wdays="12345" />
        <until hour="00" min="00" exception="no" wdays="12345" />
      </condition>

      Is it possible to have the timer set to true if the condition are fulfilled at startup.
      Now it seems if i have to wait until 05:45 everytime i restart linknx..

      Tore

       

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.