Rule Machine and HSM triggers

I think there is something I don't understand about how HSM triggers RM rules. I'm trying to get a Pushover message each time HSM changes to Armed Away. This is the current setup.

image

However, I get a notification on both armed and disarmed. The log looks like this.

What am I missing here? :slight_smile:

I had PM’ed @bravenel about this back in May. His answer at that time was:

Hopefully he can confirm whether this is still a feature that has not been released.

Thanks, interesting! But as I use it here it actually IS a trigger from a status event, right?

Sounds as though you’ll get a notification for each event , arm and disarm, because the state is unknown by RM

The state is known by RM!

This feature was released recently. Even before that, RM tracked the HSM state internally, but it wouldn't know what it was until the first HSM event. Now, there is a global variable in the system that reflects the HSM status. It can be accessed in code with location.hsmStatus.

2 Likes

From what I read in the log, they correct status event is used (disarmed, armedAway). I guess I need to catch it some other way in RM?

There is a bug. Thanks for pointing it out. Found and corrected, Will be fixed in next release. An oversight on my part, triggers on every hsmStatus change.

4 Likes

Brilliant, thank you! I'm not crazy then.. :blush:

EDIT: Side note, I simply solved it like this for now. :slight_smile:

2 Likes

This bug has been fixed in the latest release.

2 Likes