Compare commits
2 commits
8362a44281
...
da16f87844
Author | SHA1 | Date | |
---|---|---|---|
da16f87844 | |||
77c86d5ad7 |
1 changed files with 86 additions and 28 deletions
|
@ -1,16 +1,42 @@
|
||||||
- id: alarm-away
|
- id: alarm-away-hallway
|
||||||
alias: '[Alarm] Trigger alarm when not at home'
|
alias: '[Alarm] Trigger alarm when not at home - Hallway camera'
|
||||||
trigger:
|
trigger:
|
||||||
# Use all motion sensors
|
# Use hallway motion sensor
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
|
||||||
to: 'on'
|
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.bedroom_motion_occupancy
|
|
||||||
to: 'on'
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.hallway_motion_sensor
|
entity_id: binary_sensor.hallway_motion_sensor
|
||||||
to: 'on'
|
to: 'on'
|
||||||
|
# Use open/close sensors
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.bathroom_door_open_close
|
||||||
|
to: 'on'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.front_door_open_close
|
||||||
|
to: 'on'
|
||||||
|
# Use lock
|
||||||
|
- platform: state
|
||||||
|
entity_id: lock.front_door_lock_doorlock
|
||||||
|
to: 'unlocked'
|
||||||
|
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
|
||||||
|
- service: notify.mobile_app_iphone
|
||||||
|
data:
|
||||||
|
title: "ALARM! Pending for disarm"
|
||||||
|
message: >
|
||||||
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
|
data:
|
||||||
|
entity_id: camera.hallway
|
||||||
|
url:
|
||||||
|
_: "/lovelace-tablet/cctv"
|
||||||
|
|
||||||
|
- id: alarm-away-living-roomn
|
||||||
|
alias: '[Alarm] Trigger alarm when not at home (Living Room)'
|
||||||
|
trigger:
|
||||||
|
# Use motion sensors
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.kitchen_motion_sensor
|
entity_id: binary_sensor.kitchen_motion_sensor
|
||||||
to: 'on'
|
to: 'on'
|
||||||
|
@ -20,16 +46,7 @@
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.kitchen_sink_motion_sensor
|
entity_id: binary_sensor.kitchen_sink_motion_sensor
|
||||||
to: 'on'
|
to: 'on'
|
||||||
- platform: state
|
# Use open/close sensors
|
||||||
entity_id: binary_sensor.shower_motion
|
|
||||||
to: 'on'
|
|
||||||
# Use open/close sensors
|
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.bathroom_door_open_close
|
|
||||||
to: 'on'
|
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.bedroom_window_open_close
|
|
||||||
to: 'on'
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.dining_window_1_open_close
|
entity_id: binary_sensor.dining_window_1_open_close
|
||||||
to: 'on'
|
to: 'on'
|
||||||
|
@ -45,10 +62,6 @@
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.office_window_open_close
|
entity_id: binary_sensor.office_window_open_close
|
||||||
to: 'on'
|
to: 'on'
|
||||||
# Use lock
|
|
||||||
- platform: state
|
|
||||||
entity_id: lock.front_door_lock_doorlock
|
|
||||||
to: 'unlocked'
|
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
|
@ -56,6 +69,48 @@
|
||||||
action:
|
action:
|
||||||
- service: alarm_control_panel.alarm_trigger
|
- service: alarm_control_panel.alarm_trigger
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
|
- service: notify.mobile_app_iphone
|
||||||
|
data:
|
||||||
|
title: "ALARM! Pending for disarm"
|
||||||
|
message: >
|
||||||
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
|
data:
|
||||||
|
entity_id: camera.living_room
|
||||||
|
url:
|
||||||
|
_: "/lovelace-tablet/cctv"
|
||||||
|
|
||||||
|
- id: alarm-away-remaining
|
||||||
|
alias: '[Alarm] Trigger alarm when not at home'
|
||||||
|
trigger:
|
||||||
|
# Use motion sensors
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||||
|
to: 'on'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.bedroom_motion_occupancy
|
||||||
|
to: 'on'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.shower_motion
|
||||||
|
to: 'on'
|
||||||
|
# Use open/close sensors
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.bedroom_window_open_close
|
||||||
|
to: 'on'
|
||||||
|
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
|
||||||
|
- service: notify.mobile_app_iphone
|
||||||
|
data:
|
||||||
|
title: "ALARM! Pending for disarm"
|
||||||
|
message: >
|
||||||
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
|
data:
|
||||||
|
url:
|
||||||
|
_: "/lovelace-tablet/cctv"
|
||||||
|
|
||||||
- id: alarm-night
|
- id: alarm-night
|
||||||
alias: '[Alarm] Trigger alarm at night'
|
alias: '[Alarm] Trigger alarm at night'
|
||||||
|
@ -85,6 +140,14 @@
|
||||||
action:
|
action:
|
||||||
- service: alarm_control_panel.alarm_trigger
|
- service: alarm_control_panel.alarm_trigger
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
|
- service: notify.mobile_app_iphone
|
||||||
|
data:
|
||||||
|
title: "ALARM! Pending for disarm"
|
||||||
|
message: >
|
||||||
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
|
data:
|
||||||
|
url:
|
||||||
|
_: "/lovelace-tablet/cctv"
|
||||||
|
|
||||||
- id: alarm-arm-away
|
- id: alarm-arm-away
|
||||||
alias: '[Alarm] Arm away'
|
alias: '[Alarm] Arm away'
|
||||||
|
@ -104,11 +167,6 @@
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
to: 'pending'
|
to: 'pending'
|
||||||
action:
|
action:
|
||||||
- service: notify.notify
|
|
||||||
data:
|
|
||||||
message: "ALARM! Pending for disarm"
|
|
||||||
data:
|
|
||||||
importance: max
|
|
||||||
- service: zwave_js.set_config_parameter
|
- service: zwave_js.set_config_parameter
|
||||||
data:
|
data:
|
||||||
parameter: '7'
|
parameter: '7'
|
||||||
|
|
Loading…
Add table
Reference in a new issue