Simple Garage Door Rule Not Working

I consider myself pretty decent with RM. Here is a very simple rule. It opens the garage when I arrive, and closes the garage behind me when I depart. It also notifies me (because there are similar rules for all members of the family).

For some reason, the rule doesn't trigger when I depart (see log below at 09:45), even though the presence sensor was "Present" immediately prior to my departure -- the log shows I departed but the rule never triggers. When I arrive at 09:46, the rule triggers no problem and behaves as expected. Here's the rule, and log is below. I'm mystified. It's gotta be something so obvious that it's staring me in the face.

Rule

Log

app:1012021-06-27 09:46:14.863 pm infoAction: END-IF
app:1012021-06-27 09:46:14.861 pm infoAction: END-IF (skipped)
app:1012021-06-27 09:46:14.857 pm infoAction: Notify Mark (Pushover): 'Harrogate left garage door closing given Markā€™s departure.' (skipped)
app:1012021-06-27 09:46:14.837 pm infoAction: Garage close: Left Garage Door (skipped)
app:1012021-06-27 09:46:14.834 pm infoAction: IF (NOT Left Garage Door closed(T) AND NOT Left Garage Door closing(T) [TRUE]) THEN (skipped)
app:1012021-06-27 09:46:14.755 pm infoAction: ELSE (skipping)
app:1012021-06-27 09:46:14.748 pm infoAction: END-IF
app:1012021-06-27 09:46:14.040 pm infoAction: Notify Mark (Pushover): 'Harrogate left garage door opening for Markā€™s arrival. '
app:1012021-06-27 09:46:13.646 pm infoAction: Garage open: Left Garage Door
app:1012021-06-27 09:46:13.630 pm infoAction: IF (NOT Left Garage Door open(T) AND NOT Left Garage Door opening(T) [TRUE]) THEN
app:1012021-06-27 09:46:13.565 pm infoAction: IF (Mark present(T) [TRUE]) THEN
app:1012021-06-27 09:46:13.478 pm infoGarage: Mark Triggered
app:1012021-06-27 09:46:13.446 pm infoGarage: Mark: Mark presence present
app:1012021-06-27 09:45:22.745 pm infoGarage: Mark: Mark presence not present

It's the and in the last else
As its not closing it evaluates as false so doesn't send close

Should be an or?

I have had rules that didn't seem to work right with changed. Try using two triggers, One for arrival and one for departed.

Hmmm, I'm not sure this is right. The logic is saying "if the door is NOT closed AND the door is NOT closing, then close the door. Two not's combined with an AND is the right boolean logic for "NEITHER", correct?

Good idea. Will try this. Shouldn't need to. But hey I'll try anything.

EDIT: It worked. Weird. Thanks @terminal3!

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.