mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
25 lines
580 B
YAML
25 lines
580 B
YAML
alias: Front Room TV Paused
|
|
id: automation_front_room_tv_paused
|
|
trigger:
|
|
- platform: state
|
|
entity_id: media_player.front_room_tv
|
|
from: "playing"
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id: input_boolean.lighting_automations
|
|
state: "on"
|
|
|
|
- condition: state
|
|
entity_id: sun.sun
|
|
state: "below_horizon"
|
|
|
|
action:
|
|
- action: input_select.select_option
|
|
data_template:
|
|
entity_id: input_select.front_room_mode
|
|
option: "{{ states('input_text.front_room_mode') }}"
|
|
|
|
- action: automation.trigger
|
|
entity_id: automation.front_room_lights_to_on
|