2016-10-11 20:51:10 +00:00
|
|
|
- alias: TV Time
|
|
|
|
trigger:
|
|
|
|
- platform: sun
|
|
|
|
event: sunset
|
|
|
|
offset: '+00:30:00'
|
|
|
|
- platform: event
|
|
|
|
event_type: tv_time
|
2016-10-12 17:22:09 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: sensor.samsungtv
|
2016-10-12 17:38:27 +00:00
|
|
|
state: Online
|
2016-10-12 17:22:09 +00:00
|
|
|
|
2016-10-12 17:38:27 +00:00
|
|
|
condition:
|
|
|
|
condition: and
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: group.family
|
|
|
|
state: home
|
|
|
|
- condition: state
|
|
|
|
entity_id: sensor.samsungtv
|
|
|
|
state: Online
|
|
|
|
- condition: state
|
|
|
|
entity_id: sun.sun
|
|
|
|
state: 'below_horizon'
|
2016-10-12 17:22:09 +00:00
|
|
|
|
2016-10-11 20:51:10 +00:00
|
|
|
action:
|
|
|
|
service: scene.turn_on
|
|
|
|
entity_id: scene.living_room_tv_time
|