Skip to content

Instantly share code, notes, and snippets.

@Naesstrom
Created February 19, 2018 09:34
Show Gist options
  • Save Naesstrom/f6ab18163516a3b61b519c93fd2dfe17 to your computer and use it in GitHub Desktop.
Save Naesstrom/f6ab18163516a3b61b519c93fd2dfe17 to your computer and use it in GitHub Desktop.
- alias: "Media player paused/stopped"
trigger:
- platform: state
entity_id: media_player.kodi
from: 'playing'
to: 'idle'
action:
service: scene.turn_on
entity_id: scene.livingroom_normal
- alias: "Media player playing"
trigger:
- platform: state
entity_id: media_player.htpc
to: 'playing'
from: 'idle'
action:
service: scene.turn_on
entity_id: scene.livingroom_dim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment