Menu

Help on Timer Conditions (sunset but not befo

netsrac69
2011-03-08
2012-12-14
  • netsrac69

    netsrac69 - 2011-03-08

    Hey guys,

    I need help on some timer conditions:

    I want to trigger my blinds to shut down at 2h after sunset, but not before 8pm.

    And the reversed condition:

    e.g. 1h after sunset, but latest at 10pm

    How can I define this. I already tried to combine some timer condition with OR, but it's hard to test…

    Thanks, Netsrac

     
  • Ben

    Ben - 2011-03-08

    Hi,

    Here is an example than can help you:

        <rule id="ouverture_volets_etage">
          <condition type="and">
            <condition type="timer" trigger="true">
              <at hour="7" min="30" />
              <until hour="12" min="0" />
            </condition>
            <condition type="timer" trigger="true">
              <at type="sunrise" offset="-10m" />
              <until hour="12" min="0" />
            </condition>
          </condition>
         <actionlist>
            <action type="set-value" id="volets_etage_move" value="off" />
          </actionlist>
        </rule>
    

    Regards,
    Ben

     

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.