Between time-Sunrise event always runs

Update: Probably "fixed", it looks like the Hub just needed to roll through the key times, specifically Sunrise this morning. It now shows "Required expression false" on the Apps summary screen, and doesn't turn on the light when motion is triggered.

Goal: Turn on lights if motion is detected between 4:30am and Sunrise.
Problem: The event always runs when motion is detected, regardless of the time.

app:142022-06-19 12:15:08.064 pm infoAction:     On: Counter Lights
app:142022-06-19 12:15:08.061 pm infoAction: IF (Time between 4:31 AM and Sunrise(5:41 AM)(T) [TRUE]) THEN
app:142022-06-19 12:15:07.987 pm infoTriggered
app:142022-06-19 12:15:07.978 pm infoEvent: HSM-200 Hallway motion active

What I would do is toggle on the “Use Required Expression” and add “Time between 4:30am and Sunrise” in there.

Then, remove the If condition. Leave the rest as is.

That said, it is obvious in the logs that the time is not between those two variables… It shouldn’t have run…. Curious if it will work better with the change to use Required Expression…?

What Hubitat platform are you using?

1 Like

Thanks for the tip, but that didn't work. Still triggering on motion outside the specified time...

Delete the rule then recreate and see if it work.

Post a screen shot of the Scheduled Jobs (gear icon, then on the bottom of that page).

Tried deleting & creating a whole new job, no difference.

Scheduled Jobs
Handler	Next Run Time	Prev Run Time	Status	Schedule
stHandler	2022-06-20 4:30:00am EDT		PENDING	0 30 4 * * ?

Probably "fixed", it looks like the Hub just needed to roll through the key times, specifically Sunrise this morning. It now shows "Required expression false" on the Apps summary screen, and doesn't turn on the light when motion is triggered.

1 Like

Download the Hubitat app