Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- automation:
- - alias: "Sitting Room Media player stopped"
- trigger:
- - platform: state
- entity_id: media_player.emby_androidtv_colms_shield
- from: 'playing'
- to: 'idle'
- for:
- seconds: 1
- condition:
- - condition: state
- entity_id: sun.sun
- state: 'below_horizon'
- action:
- service: scene.turn_on
- entity_id: scene.sr_saved
- - alias: "Sitting Room Media player playing from stopped"
- trigger:
- - platform: state
- entity_id: media_player.emby_androidtv_colms_shield
- to: 'playing'
- from: 'idle'
- condition:
- - condition: state
- entity_id: sun.sun
- state: 'below_horizon'
- action:
- - service: automation.trigger
- entity_id: automation.sitting_room_save_current_light_states
- - service: scene.turn_on
- entity_id: scene.sitting_dimmed
- - alias: "Sitting Room Media player paused"
- trigger:
- - platform: state
- entity_id: media_player.emby_androidtv_colms_shield
- from: 'playing'
- to: 'paused'
- condition:
- - condition: state
- entity_id: sun.sun
- state: 'below_horizon'
- action:
- service: scene.turn_on
- entity_id: scene.sr_saved
- - alias: "Sitting Room Media player playing from paused"
- trigger:
- - platform: state
- entity_id: media_player.emby_androidtv_colms_shield
- to: 'playing'
- from: 'paused'
- condition:
- - condition: state
- entity_id: sun.sun
- state: 'below_horizon'
- action:
- - service: automation.trigger
- entity_id: automation.sitting_room_save_current_light_states
- - service: scene.turn_on
- entity_id: scene.sitting_dimmed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement