Skip to content

Instantly share code, notes, and snippets.

@mediacutlet
Last active April 20, 2025 15:29
Show Gist options
  • Save mediacutlet/181dca8b0dcb627c8303b6403e52e1a8 to your computer and use it in GitHub Desktop.
Save mediacutlet/181dca8b0dcb627c8303b6403e52e1a8 to your computer and use it in GitHub Desktop.
Turn on Hue Sync Box Light Sync when Movie Playing (Plex)
alias: Turn on Hue Sync Box Light Sync when Movie Playing (Plex)
description: >
Turns on the Hue Sync Box Light Sync switch when a movie is playing on the
Plex media player.
triggers:
- value_template: |
{{
state_attr('media_player.plex_plex_for_apple_tv_apple_tv', 'media_content_type') == 'movie'
and states('media_player.plex_plex_for_apple_tv_apple_tv') == 'playing'
}}
trigger: template
conditions: []
actions:
- target:
entity_id: switch.sync_box_light_sync
action: switch.turn_on
data: {}
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment