siraustin
(Austin)
December 11, 2018, 12:48am
1
I have spent the entire day on google trying to find out what I am doing wrong and embarrassed to ask for help but I am throwing in the towel.
I have my Hass.io setup and talking with my konnected.io board. Siren sounds and doors are showing open when open.
I have tried setting up the automations.yaml file a 100 different ways.
Can someone help guide me into how to finish off my install.
Here is my configuration.yaml setup for the konnected
# Konnected.io
konnected:
access_token: !secret access_token
devices:
- id: "REMOVED"
binary_sensors:
- zone: 1
type: motion
name: 'Motion Main'
- zone: 2
type: door
name: 'Front Door'
- zone: 3
type: door
name: 'Garage Door'
- zone: 4
type: door
name: 'Deck Door'
- zone: 5
type: door
name: 'Patio Door'
- zone: 6
type: motion
name: 'Basement Motion'
switches:
- zone: out
name: Siren
# Alarm Control Panel
alarm_control_panel:
- platform: manual
name: Home Alarm
code: "REMOVED"
pending_time: 30
delay_time: 20
trigger_time: 4
disarmed:
trigger_time: 0
armed_home:
pending_time: 0
delay_time: 0
Check out this video tutorial by DrZzs. This should set you on the right track:
siraustin
(Austin)
December 11, 2018, 3:46pm
3
Boom! Why I couldnât find that video I have no idea hopefully someone else can find this helpful now.
1 Like
siraustin
(Austin)
December 12, 2018, 2:40am
4
I am starting to fee like a slow learner. Can someone check to tell me what I am doing wrong here.
This is my automations.yaml
- alias: Trigger alarm while armed home or away
trigger:
- platform: state
entity_id: binary_sensor.basement_motion
to: 'on'
- platform: state
entity_id: binary_sensor.motion_main
to: 'on'
- platform: state
entity_id: binary_sensor.deck_door
to: 'on'
- platform: state
entity_id: binary_sensor.front_door
to: 'on'
- platform: state
entity_id: binary_sensor.garage_door
to: 'on'
- platform: state
entity_id: binary_sensor.patio_door
to: 'on'
condition:
condition: or
conditions:
- condition: state
entity_id: alarm_control_panel.alarm
state: armed_away
- condition: state
entity_id: alarm_control_panel.alarm
state: armed_home
action:
service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.alarm
- alias: Alarm Triggered
trigger:
- platform: state
entity_id: alarm_control_panel.alarm
to: 'triggered'
action:
- service: notify.notify
data:
message: "!Alarm Triggered!"
tablaman
(Mili Wijeratne)
January 23, 2019, 2:09pm
5
Iâm fairly new to this space siraustin, but Iâll see if I can help.
The automation seems to be fine. Whatâs not working for you?
siraustin
(Austin)
January 28, 2019, 2:33am
6
I am happy to update my config and share with everyone my new working config. Hopefully this can save some people some time and effort. I did end up using groups for triggers so all take note of the groups as the trigger.
siraustin
(Austin)
January 28, 2019, 2:34am
7
This is my Automations.yaml
Alarm Armed Away
alias: Alarm Away
hide_entity: True
initial_state: âonâ
trigger:
platform: state
entity_id: group.all_sensors
to: âonâ
condition:
condition: state
entity_id: alarm_control_panel.alarm
state: âarmed_awayâ
action:
service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.alarm
Alarm Armed Home
alias: Alarm Home
hide_entity: True
initial_state: âonâ
trigger:
platform: state
entity_id: group.doors
to: âonâ
platform: state
entity_id: group.sound
to: âonâ
condition:
condition: state
entity_id: alarm_control_panel.alarm
state: âarmed_homeâ
action:
service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.alarm
Alarm Disarmed
alias: Alarm Disarmed
hide_entity: True
initial_state: âonâ
trigger:
platform: state
entity_id: alarm_control_panel.alarm
to: âdisarmedâ
action:
service: notify.notify
data:
message: âAlarm Disarmedâ
service: switch.turn_off
entity_id: switch.siren
service: switch.turn_off
entity_id: switch.strobe
Alarm Triggered
alias: Alarm Triggered
hide_entity: True
initial_state: âonâ
trigger:
platform: state
entity_id: alarm_control_panel.alarm
to: âtriggeredâ
action:
service: notify.notify
data:
message: âAlarm Triggered!â
service: notify.notify
data:
message: âAlarm Triggered!â
service: notify.notify
data:
message: âAlarm Triggered!â
service: notify.notify
data:
message: âAlarm Triggered!â
service: switch.turn_on
entity_id: switch.siren
service: switch.turn_on
entity_id: switch.strobe
siraustin
(Austin)
January 28, 2019, 2:35am
8
This is my configuration.yaml
konnected:
access_token: !secret access_token
devices:
- id: 807d3a44640e
binary_sensors:
- zone: 1
type: motion
name: âMotion Mainâ
- zone: 2
type: door
name: âFront Doorâ
- zone: 3
type: door
name: âGarage Doorâ
- zone: 4
type: door
name: âDeck Doorâ
- zone: 5
type: door
name: âPatio Doorâ
- zone: 6
type: motion
name: âBasement Motionâ
switches:
- zone: out
name: Siren
- id: 807d3a42fa24
binary_sensors:
- zone: 1
type: smoke
name: âSmoke Alarmâ
inverse: false
- zone: 2
type: sound
name: âGlass Break Basementâ
- zone: 3
type: sound
name: âGlass Break Main Floorâ
switches:
- zone: 5
name: âBeep Beepâ
momentary: 65
pause: 55
repeat: 4
- zone: 5
name: Warning
momentary: 65
pause: 55
repeat: -1
- zone: out
name: Strobe
Alarm Control Panel
alarm_control_panel:
platform: manual
name: Alarm
code: !secret alarm_code
trigger_time: 300
disarmed:
trigger_time: 0
armed_home:
delay_time: 0
pending_time: 0
armed_away:
delay_time: 60
pending_time: 30
triggered:
pending_time: 0
siraustin
(Austin)
January 28, 2019, 2:35am
9
This is my groups.yaml
doors:
name: Doors
view: true
icon: mdi:robot
entities:
- binary_sensor.deck_door
- binary_sensor.front_door
- binary_sensor.garage_door
- binary_sensor.patio_door
motion_sensors:
name: Motion Sensors
view: true
icon: mdi:robot
entities:
- binary_sensor.basement_motion
- binary_sensor.motion_main
sound:
- binary_sensor.glass_break_basement
- binary_sensor.glass_break_mainfloor
all_sensors:
name: All Sensors
view: true
icon: mdi:robot
entities:
- binary_sensor.deck_door
- binary_sensor.front_door
- binary_sensor.garage_door
- binary_sensor.patio_door
- binary_sensor.basement_motion
- binary_sensor.motion_main
- binary_sensor.smoke_alarm
- binary_sensor.glass_break_basement
- binary_sensor.glass_break_main_floor
siraustin
(Austin)
January 28, 2019, 2:36am
10
Just saw the warning code have not figured that one out yet but threw it in for now.
Jaggz
May 18, 2019, 9:48pm
11
HELP! I am having an issue whereby everything seems to work: 1) Alarm keypad shows the different states - Arm Away, Arm Home, Triggered, Disarmed 2) in my Overview page, I have the Automation card that shows all of these states and I can manually trigger each with no issues. What I canât seem to get working no matter what I try is the âactionâ in the Disarmed and Triggered section. When Armed Home, for example, and I open a door, it immediately goes into the Triggered state but nothing happensâŚwhich in the below, is to turn on a light. Any ideas what I may be doing wrong?
Alarm Armed Away
alias: Armed Away
initial_state: âonâ
trigger:
platform: state
entity_id: binary_sensor.front_door
to: âonâ
platform: state
entity_id: binary_sensor.side_door
to: âonâ
platform: state
entity_id: binary_sensor.back_windows
to: âonâ
platform: state
entity_id: binary_sensor.basement_windows
to: âonâ
platform: state
entity_id: binary_sensor.front_windows
to: âonâ
condition:
condition: state
entity_id: alarm_control_panel.alarm
state: armed_away
action:
service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.alarm
Alarm Armed Home
alias: Armed Home
initial_state: âonâ
trigger:
platform: state
entity_id: binary_sensor.front_door
to: âonâ
platform: state
entity_id: binary_sensor.side_door
to: âonâ
platform: state
entity_id: binary_sensor.back_windows
to: âonâ
platform: state
entity_id: binary_sensor.basement_windows
to: âonâ
platform: state
entity_id: binary_sensor.front_windows
to: âonâ
condition:
condition: state
entity_id: alarm_control_panel.alarm
state: armed_home
action:
service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.alarm
Alarm Disarmed
alias: Disarmed
initial_state: âonâ
trigger:
platform: state
entity_id: alarm_control_panel.alarm
to: âdisarmedâ
action:
service: switch.turn_off
entity_id: switch.hockey_light_switch_21
Alarm Triggered
alias: Triggered
initial_state: âonâ
trigger:
platform: state
entity_id: alarm_control_panel.alarm
to: âtriggeredâ
action:
service: switch.turn_on
entity_id: switch.hockey_light_switch_21
Jaggz
May 20, 2019, 12:15am
12
Solved: after going over and over the code and seeing nothing wrong, I re-wrote it from scratch and recreated the automation.yaml file and it worked.
1 Like