Issue with this Night rule?
-
Hi
I have a rule that turns on my interior porch entrance light when its night and the front door is opened.
Its set to keep the light on for 1 minute and then turn it off.
I've been back in the house for well over an hour but just noticed the porch light is still on and hasn't turned off.
Its 21:17 pm here now.
This is the rules summary card:
I setup the Night rule as a Global Rule and its referenced in this rule.
Any clues ?
Thanks
EDIT: I should add that this rule has worked OK previously and the light has turned off after I have entered and the minute has passed.
-
Your "Civil Dusk till Civil Dawn" rule is showing false, and that will not meet the constraints. Can you show us that rule, too?
-
OK, using the new rule ID display, can you open a PR, and post the rules data files (storage/rules) for the two rules involved?
-
By the way, there's nothing I can see in your screen shots that enforces a one minute time limit. Where's that?
Looking at this again, it looks like the binary sensor hasn't tripped since 15:49, which would be before dusk. This explains why the dusk-dawn rule hasn't updated state -- that rule is in constraints, so the new state won't be fetched until the triggers go true and require that the constraints be evaluated. And since the binary sensor has been false since 15:49, it's expected that the constraint condition state would be "frozen" like this.
I'm still getting used to looking at the constraints as well.
-
By the way, there's nothing I can see in your screen shots that enforces a one minute time limit. Where's that?
Looking at this again, it looks like the binary sensor hasn't tripped since 15:49, which would be before dusk. This explains why the dusk-dawn rule hasn't updated state -- that rule is in constraints, so the new state won't be fetched until the triggers go true and require that the constraints be evaluated. And since the binary sensor has been false since 15:49, it's expected that the constraint condition state would be "frozen" like this.
I'm still getting used to looking at the constraints as well.
@toggledbits said in Issue with this Night rule?:
Where's that?
In the Reaction, it turns the light on then I have a one minute delay and then it turns the light off
-
@toggledbits said in Issue with this Night rule?:
the binary sensor hasn't tripped since 15:49
I'm not sure why that might be?
Vera itself detected that the door was opened and then closed at 8.02pm as it sent alerts to Telegram on my phone for both opened and closed.
Edit
Unless I didn't hard refresh the browser before taking screen shots.
-
The reactor.log file logs all rule sets and resets by default.
-
T toggledbits locked this topic on