Created
July 9, 2022 01:44
-
-
Save petersem/6d71ac149ec0b3ea5315ae8f8bd3fd0e to your computer and use it in GitHub Desktop.
Brighten/Dim lights when Plex plays on roku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lights bright | |
############### | |
alias: Lights brighten kitchen when Roku pauses or stops Plex | |
description: '' | |
trigger: | |
- platform: device | |
device_id: 0156d3b59488af26464984e53213dda5 | |
domain: media_player | |
entity_id: media_player.plex_plex_for_roku_roku_ultra_yp004n277326 | |
type: turned_off | |
id: Roku off | |
for: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
- platform: device | |
device_id: 0156d3b59488af26464984e53213dda5 | |
domain: media_player | |
entity_id: media_player.plex_plex_for_roku_roku_ultra_yp004n277326 | |
type: paused | |
id: Roku pause | |
for: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
- platform: device | |
device_id: 0156d3b59488af26464984e53213dda5 | |
domain: media_player | |
entity_id: media_player.plex_plex_for_roku_roku_ultra_yp004n277326 | |
type: idle | |
id: Roku idle | |
for: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
condition: | |
- condition: state | |
entity_id: sun.sun | |
state: below_horizon | |
action: | |
- service: scene.turn_on | |
target: | |
entity_id: scene.normal_lights | |
data: {} | |
mode: single | |
#lights dim | |
############### | |
alias: Lights dim kitchen when Roku plays Plex | |
description: '' | |
trigger: | |
- platform: device | |
device_id: 0156d3b59488af26464984e53213dda5 | |
domain: media_player | |
entity_id: media_player.plex_plex_for_roku_roku_ultra_yp004n277326 | |
type: playing | |
id: roku plays plex | |
for: | |
hours: 0 | |
minutes: 0 | |
seconds: 1 | |
condition: | |
- condition: state | |
entity_id: sun.sun | |
state: below_horizon | |
action: | |
- service: scene.turn_on | |
target: | |
entity_id: scene.tv_lights | |
data: {} | |
mode: single | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment