Update alarm
This commit is contained in:
parent
47f825cc57
commit
ddab668268
@ -3,10 +3,10 @@
|
|||||||
trigger:
|
trigger:
|
||||||
# Use all motion sensors
|
# Use all motion sensors
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.bathroom_motion_sensor
|
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||||
to: 'on'
|
to: 'on'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.bedroom_motion_on_off
|
entity_id: binary_sensor.bedroom_motion_occupancy
|
||||||
to: 'on'
|
to: 'on'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.hallway_motion_sensor
|
entity_id: binary_sensor.hallway_motion_sensor
|
||||||
@ -17,17 +17,23 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.shower_motion
|
entity_id: binary_sensor.shower_motion
|
||||||
to: 'on'
|
to: 'on'
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.front_door_open_close
|
|
||||||
to: 'open'
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.bedroom_window_open_close
|
entity_id: binary_sensor.bedroom_window_open_close
|
||||||
to: 'open'
|
to: 'open'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.balcony_window_open_close
|
entity_id: binary_sensor.computer_cave_window_1_open_close
|
||||||
to: 'open'
|
to: 'open'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.balcony_window_cc_open_close
|
entity_id: binary_sensor.computer_cave_window_2_open_close
|
||||||
|
to: 'open'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.freezer_door_on_off
|
||||||
|
to: 'open'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.front_door_open_close
|
||||||
|
to: 'open'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.living_room_window_open_close
|
||||||
to: 'open'
|
to: 'open'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -40,17 +46,23 @@
|
|||||||
- id: alarm-night
|
- id: alarm-night
|
||||||
alias: '[Alarm] Trigger alarm at night'
|
alias: '[Alarm] Trigger alarm at night'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
|
||||||
entity_id: binary_sensor.front_door_open_close
|
|
||||||
to: 'open'
|
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.bedroom_window_open_close
|
entity_id: binary_sensor.bedroom_window_open_close
|
||||||
to: 'open'
|
to: 'open'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.balcony_window_open_close
|
entity_id: binary_sensor.computer_cave_window_1_open_close
|
||||||
to: 'open'
|
to: 'open'
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.balcony_window_cc_open_close
|
entity_id: binary_sensor.computer_cave_window_2_open_close
|
||||||
|
to: 'open'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.freezer_door_on_off
|
||||||
|
to: 'open'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.front_door_open_close
|
||||||
|
to: 'open'
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.living_room_window_open_close
|
||||||
to: 'open'
|
to: 'open'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
@ -64,7 +76,7 @@
|
|||||||
alias: '[Alarm] Arm away'
|
alias: '[Alarm] Arm away'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: zone
|
- platform: zone
|
||||||
entity_id: device_tracker.sm_g965f
|
entity_id: device_tracker.przemyslaws_iphone
|
||||||
zone: zone.home
|
zone: zone.home
|
||||||
event: leave
|
event: leave
|
||||||
action:
|
action:
|
||||||
@ -75,15 +87,35 @@
|
|||||||
alias: '[Alarm] Disarm'
|
alias: '[Alarm] Disarm'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: zone
|
- platform: zone
|
||||||
entity_id: device_tracker.sm_g965f
|
entity_id: device_tracker.przemyslaws_iphone
|
||||||
zone: zone.home
|
zone: zone.home
|
||||||
event: enter
|
event: enter
|
||||||
action:
|
action:
|
||||||
- service: alarm_control_panel.alarm_arm_away
|
- service: alarm_control_panel.alarm_arm_away
|
||||||
entity_id: alarm_control_panel.ha_alarm
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
|
- service: switch.turn_off
|
||||||
|
entity_id: switch.siren_switch
|
||||||
|
|
||||||
|
- id: alarm-pending
|
||||||
|
alias: '[Alarm] Send notification when alarm triggered'
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
|
to: 'pending'
|
||||||
|
action:
|
||||||
|
- service: notify.notify
|
||||||
|
data:
|
||||||
|
message: "ALARM! Pending for disarm"
|
||||||
|
- service: zwave.set_config_parameter
|
||||||
|
data:
|
||||||
|
node_id: 12
|
||||||
|
parameter: 7
|
||||||
|
value: 'Door bell music'
|
||||||
|
- service: switch.turn_on
|
||||||
|
entity_id: switch.siren_switch
|
||||||
|
|
||||||
- id: alarm-triggered
|
- id: alarm-triggered
|
||||||
alias: '[Alarm] Send notification when alarm triggered'
|
alias: '[Alarm] Turn on alarm'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: alarm_control_panel.ha_alarm
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
@ -91,4 +123,11 @@
|
|||||||
action:
|
action:
|
||||||
- service: notify.notify
|
- service: notify.notify
|
||||||
data:
|
data:
|
||||||
message: "ALARM! The alarm has been triggered"
|
message: "ALARM! The alarm has been triggered"
|
||||||
|
- service: zwave.set_config_parameter
|
||||||
|
data:
|
||||||
|
node_id: 12
|
||||||
|
parameter: 7
|
||||||
|
value: 'Alarm music'
|
||||||
|
- service: switch.turn_on
|
||||||
|
entity_id: switch.siren_switch
|
Loading…
Reference in New Issue
Block a user