Files
Home-AssistantConfig/config/automation/tv_time_on_and_off.yaml

43 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2018-01-01 19:00:45 -05:00
######################################################################
# config/automation/tv_time_on_and_off.yaml
# TV Time: soften house lights when living room media starts after 8pm/sunset.
# https://github.com/CCOSTAN/Home-AssistantConfig
2018-01-01 19:00:45 -05:00
######################################################################
- alias: TV Time
2020-07-19 17:09:28 -04:00
id: 6e59d312-661f-40da-bb08-416f2e86b566
2018-01-01 19:00:45 -05:00
trigger:
- platform: state
entity_id: media_player.living_room_ultra
to: 'playing'
condition:
condition: and
conditions:
- condition: state
entity_id: group.family
state: home
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
- condition: time
after: '20:00:00'
2018-02-26 12:04:46 -05:00
- condition: state
entity_id: media_player.living_room_ultra
state: 'playing'
2018-01-01 19:00:45 -05:00
action:
- service: light.turn_off
entity_id:
- light.dinette_lights
- light.kitchen_lights
2018-01-01 19:00:45 -05:00
- service: switch.turn_on
2019-08-17 15:18:36 -04:00
entity_id: group.kitchen_Accents
2018-01-01 19:00:45 -05:00
- service: scene.turn_on
entity_id: scene.tv_time