1
0
ansible-home-assistant/configuration/automations/camera.yaml

42 lines
1.0 KiB
YAML
Raw Normal View History

2021-06-24 20:18:01 +00:00
- id: camera_1_notification
alias: '[Camera] 1 notification'
condition:
- condition: state
entity_id: alarm_control_panel.ha_alarm
state: armed_away
trigger:
- platform: state
entity_id: binary_sensor.kitchen_motion_sensor
from: 'off'
to: 'on'
action:
- service: notify.mobile_app_przemyslaws_iphone
data:
message: Motion Detected in Kitchen!
data:
entity_id: camera.monitor_1
url:
_: "/lovelace-tablet/cctv"
mode: single
- id: camera_2_notification
alias: '[Camera] 2 notification'
condition:
- condition: state
entity_id: alarm_control_panel.ha_alarm
state: armed_away
trigger:
- platform: state
entity_id: binary_sensor.hallway_motion_sensor
from: 'off'
to: 'on'
action:
- service: notify.mobile_app_przemyslaws_iphone
data:
message: Motion Detected in Hallway!
data:
entity_id: camera.monitor_2
url:
_: "/lovelace-tablet/cctv"
mode: single