2022-12-12 19:30:38 +00:00
|
|
|
- id: camera_livingroom_notification
|
|
|
|
alias: '[Camera] Living room notification'
|
2022-12-12 20:14:49 +00:00
|
|
|
mode: single
|
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"
|
|
|
|
|
2022-12-12 20:14:49 +00:00
|
|
|
- id: camera-hallway-notification
|
2021-09-11 14:05:39 +00:00
|
|
|
alias: '[Camera] Hallway notification'
|
2022-12-12 20:14:49 +00:00
|
|
|
mode: single
|
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"
|
2022-12-12 20:14:49 +00:00
|
|
|
|
|
|
|
- id: camera-hallway-person-notification
|
|
|
|
alias: '[Camera] Hallway person detected'
|
2021-06-24 20:18:01 +00:00
|
|
|
mode: single
|
2022-12-12 20:14:49 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.hallway_person_occupancy
|
|
|
|
to: 'on'
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: alarm_control_panel.home_alarm
|
|
|
|
state: armed_away
|
|
|
|
action:
|
|
|
|
- service: notify.mobile_app_iphone
|
|
|
|
data:
|
|
|
|
message: >
|
|
|
|
Person detected in Hallway!
|
|
|
|
data:
|
|
|
|
entity_id: camera.hallway_person
|
|
|
|
url:
|
|
|
|
_: "/lovelace-tablet/cctv"
|
|
|
|
|
|
|
|
- id: camera-livingroom-person-notification
|
|
|
|
alias: '[Camera] Living Room person detected'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.living_room_person_occupancy
|
|
|
|
to: 'on'
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: alarm_control_panel.home_alarm
|
|
|
|
state: armed_away
|
|
|
|
action:
|
|
|
|
- service: notify.mobile_app_iphone
|
|
|
|
data:
|
|
|
|
message: >
|
|
|
|
Person detected in Living Room!
|
|
|
|
data:
|
|
|
|
entity_id: camera.living_room_person
|
|
|
|
url:
|
|
|
|
_: "/lovelace-tablet/cctv"
|