Hello
I am from France and new to Home Assistant.
Sorry for my bad english!
I have a house with all lights, covers and Alarm in KNX. I have the Hager domovea Supervisor, but this is too closed : I can’t add my hue lights, zigbee sensors, …
So I started to migrate to HA.
Lights, Covers, Sensors are OK. But I have some problems with alarm (Hager alarm with TRC120 for dialog with KNX)…
What I did :
The on/off alarm zones were configured as switches in HA
knx:
switch:
- name: alarme ouvertures
address: 4/0/0
state_address: 4/0/1
- name: alarme rdc
address: 4/1/0
state_address: 4/1/1
I created a group for that in groups.yaml
alarme:
name: Alarme
entities:
- switch.alarme_ouvertures
- switch.alarme_rdc
And a template binary sensor to have the state of my alarm
binary_sensor:
# Etat Alarme
- platform: template
sensors:
etat_alarme:
friendly_name: "Etat Alarme"
#device_class: safety
value_template: "{{ is_state('group.alarme', 'on') }}"
Ok, I have the state of my alarm, and I can turn on and turn off with an entity “group.alarme”.
But I want to secure that with the Alarm Control Panel and I have some issues…
To have the correct states in this control panel, I have configured a template :
alarm_control_panel:
- platform: template
panels:
alarme_hager:
value_template: "{{ states('binary_sensor.etat_alarme') }}"
arm_home:
- service: switch.turn_on
data:
entity_id: switch.alarme_ouvertures
arm_away:
- service: switch.turn_on
data:
entity_id:
- switch.alarme_ouvertures
- switch.alarme_rdc
disarm:
- service: switch.turn_off
data:
entity_id:
- switch.alarme_ouvertures
- switch.alarme_rdc
But when I use it in an Alarm Panel Card, I have just the disarmed button, and the state stay always Unknown …
Conf :
State, just one button :
![alarm_ha_state](https://community-assets.home-assistant.io/original/3X/3/4/345969b2dfba168a9c968b31287b6afde881bb63.jpeg)
Have you an idea ?
Thanks in advance!