mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
32 lines
814 B
YAML
32 lines
814 B
YAML
alias: Baby Monitor off Front Room TV
|
|
id: automation_baby_monitor_off_front_room_tv
|
|
|
|
trigger:
|
|
- platform: event
|
|
event_type: timer.finished
|
|
event_data:
|
|
entity_id: timer.nursery_camera_on_tv
|
|
|
|
- platform: state
|
|
entity_id: media_player.front_room_tv
|
|
attribute: source
|
|
from: "IP Camera Viewer - Pro"
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: not
|
|
conditions:
|
|
- condition: state
|
|
entity_id: media_player.front_room_tv
|
|
attribute: source
|
|
state: "IP Camera Viewer - Pro"
|
|
sequence:
|
|
- action: timer.cancel
|
|
data:
|
|
entity_id: timer.nursery_camera_on_tv
|
|
default:
|
|
action: media_player.turn_off
|
|
data:
|
|
entity_id: media_player.front_room_tv
|