Skye
1
Iād like to turn on a socket when the Spotify media player entity has its source set to a given name, and is playing.
Anyone that could help with the trigger template?
As you can see in the screencap, state is playing and source is SkyHome. This is what I would like the automation to trigger on
Take a look at the template trigger.
Sorry, i should read the whole topic, you already asked for the template.
{{ is_state_attr('media_player.spotify', 'source', 'SkyHome') and is_state('media_player.spotify', 'playing') }}
You can play with templates in Dev Tools/Templates.
1 Like