Youtube Music - Media Browser

I am getting this when i open the list of my favourites:

Schermata 2021-04-23 alle 20.21.12

And these errors in log:

============= ytube_music_player Integration Error ================
2021-04-23 20:26:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] unfortunately we hit an error in the sub api, please open a ticket at
2021-04-23 20:26:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] https://github.com/sigma67/ytmusicapi/issues
2021-04-23 20:26:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] and paste the following output:

2021-04-23 20:26:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] Traceback (most recent call last):
  File "/config/custom_components/ytube_music_player/media_player.py", line 1132, in async_play_media
    crash_extra = ''
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/ytmusicapi/mixins/playlists.py", line 66, in get_playlist
    response = self._send_request(endpoint, body)
  File "/usr/local/lib/python3.8/site-packages/ytmusicapi/ytmusic.py", line 129, in _send_request
    raise Exception(message + error)
Exception: Server returned HTTP 404: Not Found.
Requested entity was not found.

2021-04-23 20:26:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] 
thanks, Kolja
2021-04-23 20:26:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] ============= ytube_music_player Integration Error ================

Using the latest version whatever I try to paste in for the cookie it just reports ā€œuser input malformedā€ā€¦ used to work

Good After noon
when i trying to play youtube music player Getting below error message

ā€œPlease select a player before start playing, e.g. via the ā€˜media_player.select_sourceā€™ method or in the settings/config_flowā€

any one help me how can i fix this

Hello Dear
Kindly Help me

When i am trying to play ytmusic player getting below error message

yTubeMediaPlayer error

Please select a player before start playing, e.g. via the ā€˜media_player.select_sourceā€™ method or in the settings/config_flow

Kindly help me how can fix this error

As per the error message, you need to select a source (ie: playlist) as well as a player (output device) before trying to turn on the player.

Dear Thank You
I have successfully done .
May I know how can I setup this continues playback toogle

And how can I setup speakers everywhere .now I can select only single speakers as per my setup

input_boolean.ytube_music_player_playcontinuous

The ā€˜everywhereā€™ speaker selection is a google home group, so your setup will depend on what hardware you have.

Nice setup @sparkydave looking great ā€¦
@shameseer during the setup of the component you can select your default player. If you want to switch to another player simply call the service media_player.select_source ā€¦

@stryker have you followed the video that Iā€™ve linked in the readme?

@maurizio53 the backend in youtube change, did you update the integration?

JKW

input_boolean.ytube_music_player_playcontinuous

I didnā€™t find this entitie in my Home Assistant .

Input select I have successfully done through input helpers .
When I set input Boolean in input_select.yaml.then getting cinfig error

Thank you dear
I have all ready selected when I am setup in integration time default output device I have selected .
But it not working .
I have done it Through input source select .

Perhaps @JKW can assist. Itā€™s been a while since I setup this component so not sure why you wouldnā€™t have it. In saying that I donā€™t see it in the docs at a quick glance.

Hi please copy the content of ytube_music_player/full_control.yaml at 6b4e2fbe68aeb4569d78ccf442330f5f806bb6ac Ā· KoljaWindeler/ytube_music_player Ā· GitHub into you configuration to get all those extra control fields if you want them as mentioned in the readme
GitHub - KoljaWindeler/ytube_music_player: YouTube music player for homeassistant

Apart from that you can simply call the repeat service

service: media_player.repeat_set
data:
  repeat: all
target:
  entity_id: media_player.ytube_music_player

Finally i have successfully done All ā€¦

Thank you for your all Support .

Waitng for more advance optioned in YT Music Player

great that it is working for you now,

like what?
JKW

Instead of playlist ID how can I get single song ID in YouTube music.
Is it possible or not

Is it possible to have the speaker selection use friendly names in the lovelace display? (so we donā€™t have underscores etc.)

It sure is. Just open the media_browser and continue with track instead of playlist
Jkw

Neat idea, Iā€™ll have a look
Jkw

@JKW , first of all-- thank you, thank you, thank you! Being able to use Youtube music from my automations has been awesome. Now that I have been using it for a few weeks, I am hoping to dig a little deeper. Here is my use case: I want a button to play/pause my music. I know it gets more complicated if the player is off or is idle. I want to be able to send a command to the ytube player with the last playlist /source and the last media_position. I am planning on saving those values when I pause the music so I can send it in when I ā€œresumeā€. However, my question is-- can I make a call to the player and actually send in these specific attributes? Or is it more limited to just the playlist ID?

Let me know if that doesnā€™t make sense :slight_smile: :
Thanks again!
Drew

Hey drew, have you tried to start the playlist/track via service call, followed by a seek_set (or set_seek?) command? I guess thatā€™s the best I can offer ā€¦ apart from the interrupt special command: search here (GitHub - KoljaWindeler/ytube_music_player: YouTube music player for homeassistant) for

interrupt_start

JKW