mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
31 lines
727 B
YAML
31 lines
727 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:
|
|
- service: timer.cancel
|
|
data:
|
|
entity_id: timer.nursery_camera_on_tv
|
|
default:
|
|
service: media_player.turn_off
|
|
data:
|
|
entity_id: media_player.front_room_tv |