Add information about trigger for alarms
This commit is contained in:
parent
77c86d5ad7
commit
da16f87844
@ -25,7 +25,9 @@
|
|||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
message: Alarm in hallway
|
title: "ALARM! Pending for disarm"
|
||||||
|
message: >
|
||||||
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
data:
|
data:
|
||||||
entity_id: camera.hallway
|
entity_id: camera.hallway
|
||||||
url:
|
url:
|
||||||
@ -34,7 +36,7 @@
|
|||||||
- id: alarm-away-living-roomn
|
- id: alarm-away-living-roomn
|
||||||
alias: '[Alarm] Trigger alarm when not at home (Living Room)'
|
alias: '[Alarm] Trigger alarm when not at home (Living Room)'
|
||||||
trigger:
|
trigger:
|
||||||
# Use motion sensors
|
# 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'
|
||||||
@ -44,7 +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'
|
||||||
# Use open/close sensors
|
# Use open/close sensors
|
||||||
- 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'
|
||||||
@ -69,7 +71,9 @@
|
|||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
message: Alarm in Living Room !
|
title: "ALARM! Pending for disarm"
|
||||||
|
message: >
|
||||||
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
data:
|
data:
|
||||||
entity_id: camera.living_room
|
entity_id: camera.living_room
|
||||||
url:
|
url:
|
||||||
@ -78,7 +82,7 @@
|
|||||||
- id: alarm-away-remaining
|
- id: alarm-away-remaining
|
||||||
alias: '[Alarm] Trigger alarm when not at home'
|
alias: '[Alarm] Trigger alarm when not at home'
|
||||||
trigger:
|
trigger:
|
||||||
# Use motion sensors
|
# Use motion sensors
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||||
to: 'on'
|
to: 'on'
|
||||||
@ -88,7 +92,7 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.shower_motion
|
entity_id: binary_sensor.shower_motion
|
||||||
to: 'on'
|
to: 'on'
|
||||||
# Use open/close sensors
|
# Use open/close sensors
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.bedroom_window_open_close
|
entity_id: binary_sensor.bedroom_window_open_close
|
||||||
to: 'on'
|
to: 'on'
|
||||||
@ -101,7 +105,9 @@
|
|||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
- service: notify.mobile_app_iphone
|
- service: notify.mobile_app_iphone
|
||||||
data:
|
data:
|
||||||
message: Alarm triggered
|
title: "ALARM! Pending for disarm"
|
||||||
|
message: >
|
||||||
|
{{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
data:
|
data:
|
||||||
url:
|
url:
|
||||||
_: "/lovelace-tablet/cctv"
|
_: "/lovelace-tablet/cctv"
|
||||||
@ -134,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'
|
||||||
@ -153,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…
Reference in New Issue
Block a user