RM Example: Selective Presence Notifications for Two Users

update: Although now one else seems interested in fewer notifications, I thought I’d post an update as an exercise in RM logic as I’ve completely rewritten these rules with RM 3.0. With some of the new capabilities of global variables, I can now directly measure exactly what I’m interested in rather than flipping booleans on and off in sequence to measure time.

I’ve used 3 global variables:
wife time
my time
time difference

here are my new rules:
First have to make note of when presence changes. then after a 45 second timeout evaluate another rule to see if we’ve both just left.

after that 45 second delay, one or both of these rules fire. Depending on if the other person is home or away, a message is sent.

This works pretty well. I’m currently watching my “presence difference variable” to see how short I can make that 45 second delay. after just a few days of testing, that number has pretty much been in the single digits, but I’m going to give it a bit longer before I trim it down. the only time that 45 seconds really matters is when one of us is home and the other arrives. otherwise its kind of irrelevant.

1 Like