I have one rule out of all of them that continually shows false. When I open the rule, the statements also true and it shows the overall expression is true. The rule is not triggering something in the required expression is sticking as false. Any ideas? This will go a few days before I realize itās not triggering. Once I go in and update the rule with the update button, it will start working again. After updating it, it will usually work for about three or four days before it hangs again.
One quick thing... there appears to be a missing ENDIF at the very end of the rule, unless it just got cut off in your screen shot (but it doesn't appear that way). If that's the case I'd fix that problem, turn on logging, and see what happens. I'm also wondering if the rule triggering multiple times has some undesired effect. Logging might indicate if that's an issue.
You're correct. I was missing an end if. I've corrected that. Would that cause the entire expression to report a false condition? My thought is that the rule wouldn't get to that point, but I may have that wrong.
The rule isn't triggering because the required expression is false. The logs just show that the required expression is false and usually nothing else.
I was thinking about re-doing but wanted to see if it was a possible bug. The rule works as it is except for when the required expression hangs. Then it just never triggers, logs, or anything. It just doesn't work. I've tried to pause and resume the rule but that has no affect. The only fix I've found when things are like the screen shot is to open the rule, click the update rule button, then the red text at the top clears off and the rule works.
Hopefully all that makes sense.
Gotcha. I'm not sure what effect the missing ENDIF has on the rule... but I do know that I've had what I would describe as "unpredictable results" from similar omissions. I assume the rule gets stuck in some unknown state waiting for the ENDIF. Maybe that causes it not to run on a retrigger? Not really sure, but it sounds plausible. Let's see what happens now.
thank you! I updated it last night when I found the hang. It usually goes for a few days before it catches again. I'll watch it over the next few days and see what happens now.
Looking at your rule, my guess is that you want the garage light to turn on when someone enters and then turn off when every one has left for either 10 or 20 minutes.
Is this correct, or is there something else you are trying to achieve?
If this is the case, might I recommend that you simplify the rule by:
- Removing garage light is off from the required expression
And having 3 items in your actions:
- On: Garage Light
- Wait for motion inactive -> duration 20 minutes
- Off: Garage Light
Motion will cancel the wait and re-start the actions, so it will typically turn off after much more than 20 minutes. It will also re-turn the light, but this shouldnāt really do anything since it is already onā¦