Rule not working for turning off lights right before midnight

  • 36 Views
  • Last Post 01 June 2013
alexey posted this 01 June 2013

Thanks. I upgraded to v3 and used the simple rule as you described. It works now.

For my Sunset rule, it would be really helpful to see the actual time that is associated with it. Is that possible?

Order By: Standard | Newest | Votes
Ryan-Scott posted this 01 June 2013

I am trying to set up a rule, unsuccessfully, to turn off my front yard lights right before midnight. I set up a rule called "Midnight" as follows:
Trigger: At Scheduled Intervals
Condition 1: Between 11:58 PM and 11:59 PM (note: front yards lights are polled every 5 seconds)
Condition 2: Front Yard Lights level is at 100 (on)
Rule Data:
- interval: "Days"
- interval number: 1
- NodeIds: Front Yard Lights
- Scene: Front Yard Lights Off (scene itself was tested and works)
- Days of week: all

With the configuration above, I expect my front yard lights to turn off automatically every day between 11:58pm and 11:59pm. They do not.

I use the Sunset rule to automatically turn the front yard lights on, and that rule works fine.


If you are using the scheduled intervals, you can remove the condition 1 since the interval can be set to run right at 11:59 - just set that time of and repeat it daily.

Condition 2 might also be a little redundant, though it shouldn't prevent it from working. If the light is off and you get an off command, nothing bad will happen. For what it's worth, if your lights are on a switch, then on = 255; if they are a dimmer, then full on = 99.

Also, I'm not sure where the rule part fits in here. With the new Scene Triggers/Conditions in version 3, you can skip anything related to rule setup.

In any case, you can look at logfile.txt and see what the messages are saying. It'll give you a hint about why the scene doesn't execute as well.

alexey posted this 01 June 2013

Thanks. I upgraded to v3 and used the simple rule as you described. It works now.

For my Sunset rule, it would be really helpful to see the actual time that is associated with it. Is that possible?

Ryan-Scott posted this 01 June 2013

Thanks. I upgraded to v3 and used the simple rule as you described. It works now.

For my Sunset rule, it would be really helpful to see the actual time that is associated with it. Is that possible?


In the current version you can look at logfile.txt to see what time the rule is actually scheduled for.

alexey posted this 01 June 2013

Got it. I suggest adding it to the UI!

Close