Setting Arm / Disarm Switchs

Ahoy all!

I've searched the Community & Google, as well as watched the Hubitat Video Guides and I can't find anything that resembles my problem.

What I want:
When the "Disarm" switch is turned off, and "Arm Away & Arm Stay" aren't turned On then "Disarm" turns back On again.

I've used switches instead of Buttons because from what I've seen you can't set Icons on buttons, and I'm a novice to Hubitat and not looking to mess with coding right now.

I've tried different versions of rules and If this Then that rules with delays (in Hubitat Rule Machine not the IFTTT App). I've tried rules with Modes and nothing is working as I want.

I know I'm missing something, but I'm not sure how to explain it to Hubitat so it works.

Disarm Switch

Arm Stay Switch

Arm Away Switch

Thank you

Can you post the RM code so we can have a look at what you’ve done?

Have you thought about a timed event at specific intervals?

I think a clean Alarm specific interface is something Hubitat should consider doing an app for.

I hope this is what you are referring to as RM Code if not please point me in the right direction, I deleted the rule I was trying to accomplish because it makes my current button configuration not work right (Disarm is always On and won't turn Off). If you must see my failed attempts I suppose I could throw one together screenshot it then delete it again.

Thank you again.

Try this:

Trigger: Disarm turns off

Action:
If Arm Away, Arm Stay all off THEN
On: Disarm
End-if

Did you want the Disarm switch to be affected when you flip the Arm Away or Arm Stay switches?

Yes, and although that is hard to represent without video it currently works that way. I displayed the photos above in an effort to show this.

Is there more that needs to be added to this statement for it to continue working as it does now?

Thank you

Try this:

Trigger:
Disarm turns off OR
Arm Away, Arm Stay any turns changed

Action:
If Arm Away, Arm Stay all off THEN
On: Disarm
ELSE
Off: Disarm
End-if

This should keep Disarm off if any of the Arm is on.

Should this replace my current rules, or work with them?

Should replace the other rules.
You can test it by stopping the other rules and toggle some switches.

Let me know how you go :slightly_smiling_face:

OK I'll describe what's happening in as few words as possible.

When I click Disarm while the other two are OFF Disarm turns back ON.
Disarm Switch

When I click Arm Away Disarm stays ON.
Disarm-Arm Away

When I click Arm Stay Disarm stays ON.
Arrm Stay-Disarm

When either of the two above states are active and I click the other switch, Disarm turns OFF but the other switch doesn't.

Arm Stay-Arm Away

BUT...

When the above state is active and I click Disarm, all states stay active.
All ON

So you see if I did this rule correctly or not.

Thank you

You have set the if to ANY off
It needs to be ALL off
There should be an option to select that when you edit the condition.

Thank you All, that did it, Wow "All" was the issue I missed that little switch...BUT...

The result was the same after changing "Any" to "All", but when I turned on the other three settings listed at the beginning of this post it all worked as expected , so my original settings with this new setting makes it work as desired.

Thank you again!

At the moment it doesn’t do anything if you switch Disarm on.

You may want to delete the first trigger and change the second trigger to:

Arm Away, Arm Stay, Disarm any turns changed

It will effectively ignore any changes to Disarm and its status is dictated by the other switches.

It works as I desired, when Disarm is ON and I click any of the other two option Disarm turns OFF.

If Arm Away is ON and I click Disarm or Arm Stay, Arm Away turns OFF and vice versa for Arm Stay.

If Disarm is ON and I Click Disarm OFF, Disarm turns back ON.

This is what I wanted, and although I'm sure the method you provided should work alone I found it works with my previous settings to achieve the desired result.

Without the previous settings turned on it wasn't producing the desired result, so now my rule settings looks like this:

New Rule Added

I reread your first screenshots and I now understand what you’re trying to achieve :smile:

I personally like having one rule per device/group of devices, but others may like one rule per action. Either is fine and down to preference.

If you want to clean it up to have less rules, feel free to reach out.

I actually would but being new to Hubitat and getting everything switched over from cloud based options, I'm taking baby steps.

I'll most likely try and turn this into a single rule, but I'm content for the moment...I just want to get my system back up and running locally which is great thus far; I also plan on digging into coding on this device to truly customize my dashboard, but like I said baby steps for now.

I'll be sure to reach out for your and the communities advice when I cross this road again, I like simplicity myself, and having 8 rules for 1 function is over kill. :wink: