What am I missing with this rule not setting?
-
Hass 2022.11.5 on Pi
MSR latest-22337-1a0a685fThis rule should be true now? I noticed that the first rule seems to reset either on HASS or MSR restart and not pick up where it left off, but thats not my current query now. The parts of the rule that look for freezing temperatures have set the rule, and constraints are met.... so why is it reset still? I just added the extra constraint for the lux battery power. But shouldn't the rule re-assess when saved?
I'm not sure this rule has ever set since I created it.
-
I'm not exactly sure here trying to follow the logic, but since you are using constraints, could that be the reason? Meaning, there is a section in the manual that talks about constraints eg: "Unlike triggers, changes in the conditions of constraints do not cause the rule to set or unset. They are only used as filter to allow or prevent the rule from setting."
-
I'm not exactly sure here trying to follow the logic, but since you are using constraints, could that be the reason? Meaning, there is a section in the manual that talks about constraints eg: "Unlike triggers, changes in the conditions of constraints do not cause the rule to set or unset. They are only used as filter to allow or prevent the rule from setting."
@basai Your comment is spot on and well-supported by the display.
@Cadwizzard Look at the timestamps for the top-level trigger group and constraints.
The trigger group says it has been true since 10/9/2022... that's a long time.
The constraints, on the other hand, have been true since 8:28am today (the day of the screen shot). So a change in constraints has happened (long) after the last change in trigger state (which has been sustained for a very long time).
That supports @basai 's assertion: the triggers were true at some time in the past (specifically way back on 10/9), and although the constraints have now just gone true, that change does not cause the rule to SET. Changes in constraints do not cause action.
-
OK, Thanks for this. I do prefer to use constraints where they work (my thinking it prevents constant evaluations when not needed). I'll be extra careful in rules that are not often setting and have long time delays where something may or may not become true.
I'll move the constraints as set into condition groups and try that
Update: Scrubbed the constraints and rule is set. Thanks as always.
-
T toggledbits locked this topic on