This is the current config. Moved old to the v1-config branch

This commit is contained in:
Jeffrey Stone
2018-03-06 11:10:52 -05:00
parent 5d3079379d
commit cbaacdc5fa
22 changed files with 1308 additions and 9 deletions

60
automation/media.yaml Normal file
View File

@@ -0,0 +1,60 @@
#
#
# Media
#
############
- alias: "Movie Started - Turn Off Lights"
trigger:
- platform: state
entity_id: media_player.apple_tv
to: 'playing'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: scene.turn_on
entity_id: scene.movie_time
- alias: "Movie Paused - Lights Dim"
trigger:
- platform: state
entity_id: media_player.apple_tv
from: 'playing'
to: 'paused'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
action:
- service: scene.turn_on
entity_id: scene.livingroom_dim
# - alias: "Movie Stopped - Lights On"
# trigger:
# - platform: state
# entity_id: media_player.apple_tv
# from: 'playing'
# to: 'idle'
# condition:
# - condition: state
# entity_id: sun.sun
# state: 'below_horizon'
# action:
# - service: scene.turn_on
# entity_id: scene.livingroom_normal
# - alias: "Movie Resumed - Lights Off"
# trigger:
# - platform: state
# entity_id: media_player.apple_tv
# from: 'paused'
# to: 'playing'
# condition:
# - condition: state
# entity_id: sun.sun
# state: 'below_horizon'
# action:
# service: scene.turn_on
# entity_id: scene.movie_time