Using the ytube mediaplayer from KoljaWindeler (KoljaWindeler (Kolja Windeler) · GitHub)
@JKW I need to say you did an amazing job… It’s my fave HA integration. I have it set up with a IKEA styrbar automation - and I can DJ the sh*t out of YT with that in my hand… I will post the automation when I am done tweaking it - thanks!!
I have 2 questions regarding the the dropdowns provided.
-
The UI
How can I use the dropdowns provided. When changing the the Speaker and Playmode dropdowns the change is immediately actioned. But when changing the playlist nothing happens I have to turn the player on and off. -
using the dropdown values in service calls
I can easily cycle through the different speaker pressing a button:
- service: input_select.select_next
data: {}
target:
entity_id: input_select.ytube_music_player_speakers
- service: media_player.select_source
data:
source: "{{states.input_select.ytube_music_player_speakers.state}}"
target:
entity_id: media_player.ytube_music_player
BUT when I try to do the same with playlists:
- service: input_select.select_next
data: {}
target:
entity_id: input_select.ytube_music_player_playlist
- service: media_player.play_media
target:
entity_id: media_player.ytube_music_player
data:
media_content_type: playlist
media_content_id: {{states.input_select.ytube_music_player_playlist.state}}"
Am I missing something?
Is it because I am getting the name of the playlist from the dropdown - and not the ID? If so, how can I make that work?