Howto play media playlist in homeassistant to plexmediaplayer?
I’m running Homeassistant v0.96.5 on Ubuntu Server 18.10 via Python VENV.
Plex Media Player is running on Intel Nuc on Ubuntu Desktop 16.04.
Used instructions at: https://www.home-assistant.io/components/plex/
scripts.yaml:
turn_on_cinema_music:
alias: Cinema Music On
sequence:
- data:
entity_id: media_player.cinema_amplifier
source: Streambox
service: media_player.select_source
- data:
entity_id: media_player.cinema_amplifier
volume_level: '0.40'
service: media_player.volume_set
- data:
entity_id: media_player.cinema_streambox
media_content_id: '{ "playlist_name": "Relax", "shuffle": "1" }'
media_content_type: PLAYLIST
service: media_player.play_media
Also tried it using Developer Tools -> Services
with:
{
"media_content_id": "{ \"playlist_name\": \"Relax\", \"shuffle\": \"1\" }",
"media_content_type": "PLAYLIST",
"entity_id": "media_player.cinema_streambox"
}
and:
{
"media_content_id": "{ \"library_name\": \"Music Donald\", \"artist_name\": \"Bluetech\", \"album_name\": \"Cosmic Dubs\", \"track_name\": \"Somatic Serenade\", \"shuffle\": \"1\" }",
"media_content_type": "MUSIC",
"entity_id" : "media_player.cinema_streambox"
}
But nothing happens, and nothing gets logged.
How to troubleshoot?
Best Regards,
Donald.