2022-12-12 19:30:38 +00:00
|
|
|
- id: camera_livingroom_notification
|
|
|
|
alias: '[Camera] Living room notification'
|
2021-06-24 20:18:01 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.kitchen_motion_sensor
|
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
2022-12-12 19:30:38 +00:00
|
|
|
# Use open/close sensors
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.dining_window_1_open_close
|
|
|
|
to: 'on'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.dining_window_2_open_close
|
|
|
|
to: 'on'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.office_window_open_close
|
|
|
|
to: 'on'
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: alarm_control_panel.home_alarm
|
|
|
|
state: armed_away
|
2021-06-24 20:18:01 +00:00
|
|
|
action:
|
2022-10-19 20:25:52 +00:00
|
|
|
- service: notify.mobile_app_iphone
|
2021-06-24 20:18:01 +00:00
|
|
|
data:
|
2022-12-12 19:30:38 +00:00
|
|
|
message: Motion Detected in Living Room!
|
2021-06-24 20:18:01 +00:00
|
|
|
data:
|
2022-12-12 19:30:38 +00:00
|
|
|
entity_id: camera.living_room
|
2021-06-24 20:18:01 +00:00
|
|
|
url:
|
|
|
|
_: "/lovelace-tablet/cctv"
|
|
|
|
mode: single
|
|
|
|
|
2021-09-11 14:05:39 +00:00
|
|
|
- id: camera_hallway_notification
|
|
|
|
alias: '[Camera] Hallway notification'
|
2021-06-24 20:18:01 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.hallway_motion_sensor
|
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
2022-12-12 19:30:38 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.front_door_open_close
|
|
|
|
to: 'on'
|
|
|
|
- platform: state
|
|
|
|
entity_id: lock.front_door_lock_doorlock
|
|
|
|
to: 'unlocked'
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: alarm_control_panel.home_alarm
|
|
|
|
state: armed_away
|
2021-06-24 20:18:01 +00:00
|
|
|
action:
|
2022-10-19 20:25:52 +00:00
|
|
|
- service: notify.mobile_app_iphone
|
2021-06-24 20:18:01 +00:00
|
|
|
data:
|
|
|
|
message: Motion Detected in Hallway!
|
|
|
|
data:
|
2021-09-11 14:05:39 +00:00
|
|
|
entity_id: camera.hallway
|
2021-06-24 20:18:01 +00:00
|
|
|
url:
|
|
|
|
_: "/lovelace-tablet/cctv"
|
|
|
|
mode: single
|