Add camera in bedroom
This commit is contained in:
parent
4fc10f12a6
commit
86dbdfe054
@ -140,6 +140,48 @@
|
|||||||
images:
|
images:
|
||||||
- "/config/www/cctv/living_room.mp4"
|
- "/config/www/cctv/living_room.mp4"
|
||||||
|
|
||||||
|
|
||||||
|
- id: alarm-away-bedroom
|
||||||
|
alias: '[Alarm] Trigger alarm when not at home (Bedroom)'
|
||||||
|
trigger:
|
||||||
|
# Use motion sensors
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.bedroom_motion_occupancy
|
||||||
|
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: camera.snapshot
|
||||||
|
data:
|
||||||
|
filename: /config/www/cctv/living_room.jpg
|
||||||
|
target:
|
||||||
|
entity_id: camera.hallway
|
||||||
|
- service: notify.home_assistant
|
||||||
|
data:
|
||||||
|
message: >
|
||||||
|
ALARM. Pending to disarm
|
||||||
|
Motion in Bedroom - {{ state_attr(trigger.entity_id, 'friendly_name') }}
|
||||||
|
@everyone
|
||||||
|
target: [ "1070507369164984372" ]
|
||||||
|
data:
|
||||||
|
images:
|
||||||
|
- "/config/www/cctv/bedroom.jpg"
|
||||||
|
- service: camera.record
|
||||||
|
data:
|
||||||
|
duration: 30
|
||||||
|
lookback: 30
|
||||||
|
filename: /config/www/cctv/bedroom.mp4
|
||||||
|
target:
|
||||||
|
entity_id: camera.bedroom
|
||||||
|
|
||||||
- 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:
|
||||||
@ -147,16 +189,16 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: binary_sensor.bathroom_motion_occupancy
|
entity_id: binary_sensor.bathroom_motion_occupancy
|
||||||
to: 'on'
|
to: 'on'
|
||||||
- platform: state
|
# - platform: state
|
||||||
entity_id: binary_sensor.bedroom_motion_occupancy
|
# entity_id: binary_sensor.bedroom_motion_occupancy
|
||||||
to: 'on'
|
# to: 'on'
|
||||||
- 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'
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: alarm_control_panel.home_alarm
|
entity_id: alarm_control_panel.home_alarm
|
||||||
|
Loading…
Reference in New Issue
Block a user