Using HSM Status seems to not work

I am having issues after I moved setting up Rules I had in my last home.

I am trying to have a trigger "Door Open" when HSM is "Armed Away" to then Announce "Alarm Active - Disable Alarm" multiple times before it goes off with my HSM Alert delay.

I am getting some very weird behavior trying to make this rule. I tried the "NEW" AI feature and it created a MODE Away option vs. HSM. Used it to check my logic.

Here is the Rule I am trying to get to work, but it is triggering when DISARMED as well... I have tried Required Expression and Conditions to no avail.

Can't recall my old rule, but it would have been similar to this.

I play a message in Rule Machine to GET OUT and ALARM DISABLED and they seem fine. But those are based on the switch to ARM/DISARM being pushed, so not the same as trying to use HSM Status.

Ideas anyone?

So, if you are asking why the RM rule on bottom is triggering anytime the garage door is open vs. only when the mode is away, the reason is you did not specify that as a condition.

Recommended: Add a required expression
If you are only looking sepcifically for "Armed Away" in HSM, then use that.
However, I am betting you might want the same if it is Armed for any other reason
So, the required expression would be NOT "disarmed" (I think you can just use "Armed" also. But Not Disarmed includes partially armed as well I believe as a catchall). The capability you should choose would be "HSM Status" Not MODE.

Also, I would use "wait for event" using "Elapsed time" as opposed to a delay. (Delays could theoretically wind up running multiple instances if the door is opened/closed/opened while still armed. Using a wait will cause the old instance to stop if the rule is retriggered)

You really should not need to set the volume as the first step since you are setting it in the actions. I left it in there in case you are doing it too fix some weird behavior.

It would look something like this:

One last thing to note: This rule, like your example only notifies twice. So, after ten seconds, no more messages. If your intent is otherwise, there are other changes that you would want to make.

Actually... No Condition needed. I remembered I had a backup of the old home so I restored it... took pics and restored the current home.

Adding a 'Simple Conditional Action' is what I was missing.. IF HSM Armed Speak on the SONOS...

Here is my rule

Thanks for the input !

MG

A conditional action is using a condition. Just in a different place.

You put your conditions inline (which is fine). You method triggers everytime the door opens and then checks the condition

My method disables the rule unless it is not disarmed. (covers more than just armed away) Not a big deal to trigger everytime you open the door since that is probably not something that happens a lot.

You should close out every IF you have in a rule with an END-IF. You can get away with not doing that in some circumstances, but not doing it will (sooner or later) burn you.

Just always doing it ensures you're always covered.

2 Likes

I did have an older notification I disabled in the post above, duplicates