Manual Alarm Konnected Setup

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.

Configuration yaml
konnected:
access_token: KonnectedAlarm
devices:
- id: !secret KonnectedID
binary_sensors:
- zone: 1
type: door
name: ‘Front Door’
- zone: 2
type: door
name: ‘Garage Entry’
- zone: 3
type: door
name: ‘Deck Entry’
- zone: 4
type: door
name: ‘Lower Entry’
- zone: 5
type: motion
name: ‘Main Motion’
- zone: 6
type: motion
name: ‘Lower Motion’
switches:
- zone: out
name: siren

alarm_control_panel:

  • platform: manual
    name: Home Alarm
    code: !secret alarm_code
    pending_time: 30
    delay_time: 20
    trigger_time: 4
    disarmed:
    trigger_time: 0
    armed_home:
    pending_time: 0
    delay_time: 0

Automation yaml
- alias: ‘Trigger alarm while armed away’
trigger:
- platform: state
entity_id: binary_sensor.deck_entry
entity_id: binary_sensor.front_door
entity_id: binary_sensor.garage_entry
entity_id: binary_sensor.lower_entry
entity_id: binary_sensor.lower_motion
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: ‘Trigger siren’
trigger:
platform: state
entity_id: switch.Siren
to: ‘on’
condition: state
entity_id: alarm_control_panel.Alarm_Panel
to: ‘triggered’

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.

alarm_control_panel:
  - platform: manual
    name: Home Alarm
    code: !secret alarm_code
    pending_time: 20
    delay_time: 10
    trigger_time: 4
    disarmed:
      trigger_time: 0
    armed_home:
      pending_time: 0
      delay_time: 0

Everyone can ignore this entire request… playing around i got it figured out.

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.

thanks

1 Like