Jump to content

Wait in program does not turn off device


eyost

Recommended Posts

Posted

Hi all,

 

I have the following program which the thought is to have the device come on at sunset, wait four hours and then cut off. While the device will come on at sunset, it refuses to turn off after four hours.

 

If

        Status  'Front Entry (Outdoor)' is Responding

    And Time is Sunset 

    And Status  'Front Entry (Outdoor)' is Off

 

Then

        Set 'Front Entry (Outdoor)' On

        Wait  4 hours 

        Set 'Front Entry (Outdoor)' Off

 

Else

   - No Actions - (To add one, press 'Action')

 

Is the above correct or am I missing something?

 

Thanks for any help.


Ed

Posted (edited)

The status check in your program is the problem. It forces a reevaluation when the light turns on and cancels the wait. This will do:

 

If

Time is sunset

 

Then

Set light on

Wait 4 Hours

Set light off

 

Else

 

 

 

 

-Xathros

 

Sent from my iPhone using Tapatalk

Edited by Xathros
Guest
This topic is now closed to further replies.

×
×
  • Create New...