I am working on my Konnected Alarm getting setup with Home Assistant with hassbian. I tried the HASS custom alarm but it was too involved for someone of my minimal coding skills. Below is what i have so far but am getting a whole host of errors so don’t really know where to start. I feel like I am missing something pretty basic.
After more work today, my automation yaml looks like the below. I still can’t get it to work and have the error noted below as well. I think my configuration yaml is ok because I am not getting any errors when commenting out the automation.
New automation yaml
################################
### manual alarm panel
################################
- alias: Alarm Away
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.deck_entry
to: 'open'
- platform: state
entity_id: binary_sensor.front_door
to: 'open'
- platform: state
entity_id: binary_sensor.garage_entry
to: 'open'
- platform: state
entity_id: binary_sensor.lower_entry
to: 'open'
- platform: state
entity_id: binary_sensor.lower_motion
to: 'active'
- platform: state
entity_id: binary_sensor.main_motion
to: 'active'
condition:
condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_away
action:
service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.home_alarm
- alias: Alarm Home
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.deck_entry
to: 'open'
- platform: state
entity_id: binary_sensor.front_door
to: 'open'
- platform: state
entity_id: binary_sensor.garage_entry
to: 'open'
- platform: state
entity_id: binary_sensor.lower_entry
to: 'open'
condition:
condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_home
action:
service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.home_alarm
################################
### alarm siren on
################################
- alias: Triggered Siren
hide_entity: True
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
state: 'triggered'
action:
service: script.turn_on
entity_id: script.siren_alert
service: notify.notify
################################
### alarm siren off
################################
- alias: Disarmed Off
hide_entity: True
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
state: 'disarmed'
action:
service: script.turn_off
entity_id: switch.siren
Current Error
Configuration invalidCHECK CONFIG
Invalid config for [automation]: [state] is an invalid option for [automation]. Check: automation->trigger->0->state. (See /home/homeassistant/.homeassistant/configuration.yaml, line 164). Please check the docs at https://home-assistant.io/components/automation/ Invalid config for [automation]: [state] is an invalid option for [automation]. Check: automation->trigger->0->state. (See /home/homeassistant/.homeassistant/configuration.yaml, line 164). Please check the docs at https://home-assistant.io/components/automation/
Ok, figured out my own problem. I had to change ‘state’ to ‘to’ under trigger and that seems to fix it. However, i have ANOTHER issue.
When arming the alarm, armed_home doesn’t trigger the alarm for at least two minutes (i got impatient counting after that) and armed_away didn’t trigger the alarm for around 40 seconds. Below is what I have in the configuration yaml. Any thoughts on what i am doing wrong? Ideally, armed home would have zero time to arm and zero time until the alarm is triggered if a door is opened.
So could you post your final config because I am having the same sort of issues as you were having but can’t figure it out.
I migrated Konnected over from using smart things but it is so frustrating getting it up and working.