Jump to content

Bug: Scheduled times show True when past the time


Mark Sanctuary

Recommended Posts

These programs are showing "Idle: true" even though it is 11:19 am right now. Should they really be showing "Idle: false"?

 

If
       Time is Sunrise +  2 hours 

Then
       Set  Scene 'Inside All Scene' Off
       Wait  10 seconds
       Set  Scene 'Inside All Scene' Off

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

 

If
       Time is  2:59:00AM

Then
       Set  Scene 'Inside Off LEDs' Off
       Set  Scene 'Inside On LEDs' On

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

 

If
       Time is  3:00:00AM

Then
       Set  Scene 'My Lighting' Query

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

Link to comment

You can think of a 'Time is' entry as equivalent in behaviour to receiving an X10 message, or a Control event like 'Keypad A Fast On'. For 'Time is', the arrival of that specified time is the event, and as such the program will run.

 

The program True/False state is only changed when a 'relevant event' occurs, meaning that at least one of the conditions in your 'If' is testing for the event that occurred.

 

For Time Ranges (From/To, From/For), there are two time events, one when the 'From' time arrives, and one when the 'To' (or 'For') time arrives.

 

Therefore, in your examples, the program state will never become false (unless you add more conditions).

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...