ZHA - Use Philips Hue Dimmer Switch as an Alarm Keypad

Hi,

Just created a quick blueprint that can use a Philips Hue Dimmer Switch as an alarm keypad (you can enter digits 1 to 8). It’s a bit rough and ready.

You need to create an input_text helper (and really you should exclude it from your history: since it stores the attempted entry codes so state history is bad ™).

You also need to set the code length of your alarm code. This is so the automation knows at what code length to trigger the the attempt to disarm the alarm panel with the code.

Short on press = 1
Short up press = 2
Short down press = 3
Short off press = 4
Long on press = 5
Long up press = 6
Long down press = 7
Long off press = 8
Double off press = clear entered code

TODO/FIXME: It really needs to store the attempted code in a variable and not an input_text but I haven’t experimented with it yet.

Expected use: Disable your normal dimmer switch automation when the system is arming/armed and enable this automation. Revert when alarm is disarmed.

Thoughts/feedback/comments/suggestions/criticisms, welcome.

Kenny