Today I will give you an idea for a smart functionality of your smart alarm! The automatic activation and deactivation of the alarm! Why do you have to manually enable the alarm? With some #homeassistant magic you can automatically enable it when you leave home and disable it when you come back!
Alarm hardware Link to heading
Pro/Cons Link to heading
wifi vs zigbee Link to heading
-
wifi is low cost, but battery expensive and not decentralized. You could not reach all your devices
-
zigbee is battery efficient and you can put sensors everywhere in the house and every sensor will connect to the other, extending the range of the network.
Wireless vs cabled Link to heading
-
wireless is fast, low cost and easy to install and plug and play everywhere. The main cons is that a simple jammer can disable it and the battery must be changed over time :/
-
cabled is expensive, but difficult to disable.
Compromises Link to heading
I would suggest you to use cabled systems where and when you can, then add other wireless sensors. You can use both with #homeassistant and get the pros of both systems.
Alarm activation automation Link to heading
This is the automation to enable the trigger event of the alarm, if a window is opened or a motion sensor detect motion, trigger it!
alias: Alarm away trigger
trigger:
- type: opened
platform: device
device_id: 52ae846bb79b7f48359a2a0e59f457c2
entity_id: binary_sensor.kitchen_window_ias_zone
domain: binary_sensor
- type: opened
platform: device
device_id: 9fd44814be5dc24003292cee80e73fcf
entity_id: binary_sensor.ewelink_ds01_58c24722_ias_zone
domain: binary_sensor
- type: opened
platform: device
device_id: f5372adb031128ef19a93bff5c0b0e0a
entity_id: binary_sensor.ewelink_ds01_33674322_ias_zone
domain: binary_sensor
- type: opened
platform: device
device_id: 23601c6d05c829d4658b08cd51413240
entity_id: binary_sensor.ewelink_ds01_40674322_ias_zone
domain: binary_sensor
- type: opened
platform: device
device_id: 619527443f46cef301cdc297097c404e
entity_id: binary_sensor.bathroom_window_ias_zone
domain: binary_sensor
- type: motion
platform: device
device_id: dcb6d310d98518c1129870251ef9b801
entity_id: binary_sensor.ewelink_ms01_49f86722_ias_zone
domain: binary_sensor
- type: motion
platform: device
device_id: 29ca5ecdeff65bbb50e9fccefe588df6
entity_id: binary_sensor.hallway_motion_ias_zone
domain: binary_sensor
- type: motion
platform: device
device_id: ce8687e3909dff3ff99b4a578543b681
entity_id: binary_sensor.ewelink_ms01_a5b06722_ias_zone
domain: binary_sensor
condition:
- condition: state
entity_id: alarm_control_panel.alarm
state: armed_away
action:
- service: script.alarm_triggered
- service: alarm_control_panel.alarm_trigger
data: {}
target:
entity_id: alarm_control_panel.alarm
mode: single
Presence activation/deactivation Link to heading
Am I leaving home? The alarm should be turned on! automatically!
With home assistant you have to add the following automations:
Enable part Link to heading
If all the people in the house are not in the house :) activate the alarm!
alias: Enable alarm when leaving home
description: ""
trigger:
- platform: zone
entity_id: person.baldarn
zone: zone.home
event: leave
- platform: zone
entity_id: person.barbara
zone: zone.home
event: leave
condition:
- condition: and
conditions:
- condition: not
conditions:
- condition: zone
entity_id: person.baldarn
zone: zone.home
- condition: not
conditions:
- condition: zone
entity_id: person.barbara
zone: zone.home
- condition: state
entity_id: alarm_control_panel.alarm
state: disarmed
action:
- service: alarm_control_panel.alarm_arm_away
data: {}
target:
entity_id: alarm_control_panel.alarm
- service: notify.matrix_alarm
data:
message: alarm enabled for leaving home! bye bye!
mode: single
Disable part Link to heading
If someone is in the house, deactivate the alarm!
alias: Disarm alarm when returning home
description: ""
trigger:
- platform: zone
entity_id: person.baldarn
zone: zone.home
event: enter
- platform: zone
entity_id: person.barbara
zone: zone.home
event: enter
condition:
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.alarm
state: disarmed
action:
- service: alarm_control_panel.alarm_disarm
target:
entity_id: alarm_control_panel.alarm
- service: notify.matrix_alarm
data:
message: alarm automatically disabled ;)
mode: single
For any question come in the telegram channel