Schedule not working right

I have a schedule called LateNight with a start time of 23:00 and a stop time of 06:00 the next morning. I have two conditions that in connection with a motion sensor, turn a light on at either 100% (!LateNight) or 30% (LateNight). However, after midnight, it seems that LateNight isn’t set as the light is going on at 100%. Is there a trick to getting it to recognize that portion between midnight and 6am?

Please post the status report so we can see what’s going on

Schedules

Name   On Type	On Time	On Days	Random On Delay	Off After Type	Off Time	Off Days	Random Off Delay	State	Last On	Last Off
At1930	Interval	19:30:00		None	None			None	false	2014-06-16 07:30:00.104	0
LateNight	Interval	23:00:00		None	Interval	06:00:00		None	false	2014-06-16 14:00:00.101	2014-06-16 20:00:00.107

I would create a schedule from 0600 to 2300, then use the NOT operator.

somecondition !schedule

Your actions would only then be valid between 2300 and 0600.

[quote=“JoeTomasone, post:3, topic:181631”][code]
Schedules

Name On Type On Time On Days Random On Delay Off After Type Off Time Off Days Random Off Delay State Last On Last Off
At1930 Interval 19:30:00 None None None false 2014-06-16 07:30:00.104 0
LateNight Interval 23:00:00 None Interval 06:00:00 None false 2014-06-16 14:00:00.101 2014-06-16 20:00:00.107
[/code][/quote]

I think the problem is the schedule type.
Here you created an interval that is true every 19 hours and 30 minutes. Not every day at 19:30.
Try to change it like this. Do the same with the other one. You could also do as zed rally suggests.

[quote=“zedrally, post:4, topic:181631”]I would create a schedule from 0600 to 2300, then use the NOT operator.

somecondition !schedule

Your actions would only then be valid between 2300 and 0600.[/quote]

Worth a try, certainly, but why doesn’t it work from 23:00 to 06:00?

Oh, wait, now I get it… YARM. (Yet Another Rookie Mistake). Dumb one, at that.

Interval… Fires every number of hours. Not at a certain time of day.

Changed it to weekly… Should work much better now.

I’m only admitting this and leaving it here so that it helps others who might have a brain fart like I did. :slight_smile: