ginkel / frient-keypad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi 👋, I'm crijun

A passionate geek from Austria

crijun

- 🌱 I’m currently learning **all about home automation. Steep learning curve ahead.**

keypad.yaml

I want to build an alarm system. Since most of my devices are Zigbee based, I baught a Frient/Develco KEPZB-110 key pad. Found Code which worked from gibhub user AndrejDelany, but it had some things missing (e.g. night arm), some things which I just didn't like (use code to arm, no night arm mode, SOS button didn't work, etc.). So I copied the code, minified it and adapted it to my needs. Feel free to steal my code if you want to adapt it. :)

Requirement

zigbee2mqtt installed

Activation of alarm control panel in HA

Add the following code to your configuration.yaml (/config/configuration.yaml):


alarm_control_panel:
  - platform: manual
    name: Home Alarm
    code: "1234"
    code_arm_required: false
    arming_time: 30
    delay_time: 20
    trigger_time: 4
    disarm_after_trigger: false
    disarmed:
      trigger_time: 0
    armed_home:
      arming_time: 0
      delay_time: 0

Don't forget to change the code from "1234" to your custom code to disarm the system.

Behaviour

You don't need a code to arm it. I hate overhead.

Buttons:

  • The key lock button: Arms away the system
  • The Home button: Arms home for day usage
  • The Moon with clouds button: Arms home for night usage
  • SOS button: Needs to be pressed 3x in a row quickly to work, custom action can be configured
  • Unlocking with num buttons and open lock: There are 2 options to disarm - 1: Disarm normally with normal pin code und press unlock button - 2: Disarm in emergency mode -> disarms system normally but triggers an additional action that can be configured

Beeping

When arming, the beeping sound is only configured in armed away mode. Night Mode is arming too, but silent. Home has no arming and therefore no beeping. Pending/Trigger also has no sound.

Switching between arm profiles

There is a specific behaviour for switching between arm modes:

  • Home<->Night: You can switch with a button press without having to disarm first
  • Home/Night->Away: You can switch with a button press without having to disarm first
  • Away->Home/Night: Needs to be disarmed first before being able to change

Actions on arm states

The only actions you can configure in the blueprint are the:

  • SOS button
  • Emergency pin code action

Actions for home/night/away states are not configurable since I have a seperate Automation which gets called when the state of the alarm changes. I just like it better to split it up. 

Questions?

I have a forum post in HA forum. Feel free to suggest other ideas but I will only add things if I need it for my system since I want to have everything as minimal as possible. Also I am very new to home automation/assistant... yesterday I didn't even know what a blueprint is so please don't rely too much on it without looking at it first ;)

About