Youtube Music - Media Browser

Good afternoon, I have media_player.ytube_music_player entity but can’t find - entity: input_select.ytube_music_player_playlist
- entity: input_select.ytube_music_player_source
- entity: input_select.ytube_music_player_speakers

Which mean I can’t change speakers

Thanks ,can someone please give advice

Please copy the content of ytube_music_player/default.yaml at 6b4e2fbe68aeb4569d78ccf442330f5f806bb6ac · KoljaWindeler/ytube_music_player · GitHub to your configuration.

Jkw

Thanks for quick response, will try tonight

Hi! I just found this component and was wondering if I can directly search for songs/artists/albums with it? I don’t have tried it yet and I don’t even have a YT premium account but if someone say that I can search with it I will get an account right now! :smiley:

In short: nope.

actually the api that I’m using supports it … but I haven’t yet implemented it.
What type of card would one use to search and select tracks? I don’t think that the media_browser supports text input for searching, or?
JKW

I don’t know if it’s possible but a text input that open the media browser with the results could be a very sexy way to implement this :grinning:

Edit: My dream with a picture:

1 Like

neat … I’m not sure if there is a way to open the media_browser … the mini_media_player already looked into this … without success as to my knowledge …

besides that: yes, once the media_browser is opened the results of the search could be displayed
jkw

You can add any card in the top of the mini_media_player with the “Vertical stack in card” custom component, for example:

type: 'custom:vertical-stack-in-card'
cards:
  - type: 'anything-you-want'
  - type: 'custom:mini-media-player'

So the only problem is that you can’t open the media_browser with a button? I’m searching but I don’t find anything that can help :confused:

Hey guys, we’re having major issues. Just to let you know

Hi everyone,

although there seems to be bigger problems (thanks for the information kolja), i ask for some help regarding my problem getting rid of shuffle.

Since the last update my jukebox automation for playing albums seems always run in shuffle mode although i set it to false. Currently on 20210517b01

  - service: media_player.shuffle_set
    data:
      shuffle: false
      entity_id: '{{ ytube_player_entitiy_id }}' #media_player.ytube_music_player

In the state overview it also says it is set to false. It still skips tracks.

volume_level: 0.28
is_volume_muted: false
media_content_type: music
media_duration: 109.32
media_position: 2.234291
media_position_updated_at: '2021-05-19T08:59:12.983303+00:00'
media_title: 'Kapitel 05: Der Kuchenback-Wettbewerb (Folge 47)'
media_artist: PAW Patrol
media_album_name: ''
shuffle: false
repeat: 'off'
entity_picture_local: >-
  /api/media_player_proxy/media_player.ytube_music_player?token=04d8cea...
_media_type: album
_media_id: MPREb_EDHkLrBIRV7
_player_state: paused
_player_id: media_player.kid1_zimmer
likeStatus: INDIFFERENT
current_playlist_title: ''
total_tracks: 7
tracks:
  - 'PAW Patrol - Kapitel 01: Der Kuchenback-Wettbewerb (Folge 47)'
  - 'PAW Patrol - Kapitel 02: Der Kuchenback-Wettbewerb (Folge 47)'
  - 'PAW Patrol - Kapitel 03: Der Kuchenback-Wettbewerb (Folge 47)'
  - 'PAW Patrol - Kapitel 04: Der Kuchenback-Wettbewerb (Folge 47)'
  - 'PAW Patrol - Kapitel 05: Der Kuchenback-Wettbewerb (Folge 47)'
  - 'PAW Patrol - Kapitel 06: Der Kuchenback-Wettbewerb (Folge 47)'
  - 'PAW Patrol - Kapitel 07: Der Kuchenback-Wettbewerb (Folge 47)'
shuffle_mode: Shuffle
current_track: 4
videoId: CvBcg1CTA90
lyrics: No lyrics available
friendly_name: ytube_music_player
icon: 'mdi:music-circle'
entity_picture: >-
  https://lh3.googleusercontent.com/Fxm7yYhAVjtB6f7vc_Db9BZySZkKZw-FSPWXlzPdl-nAMcX8JMWNTJWPI_hSifqrNNLUyDcXCyEOuvc=w544-h544-l90-rj
supported_features: 450495

I didn’t recognized the “shuffle_mode” attribute before (maybe it is new) - could this be the reason? how and to which value should it be set than?

@JKW : although knowledge and time are limited on my side - if you need someone to test, let me know.

Is it really shuffle (is the track also jumping backwards) or is that maybe a "advancing 3x’ issue (I’ve seen that here but thought I pushed the fix)

Edit: didn’t released it. Should be there now

you are right it was just skipping not really shuffle. And yes the very fast fix (thanks again) did the trick.

I have a strange issue but it’s not really a problem for me. I really don’t care what’s play, I just click on my “My Supermix” and what ever plays, plays. I generally want want something playing while I am working.
My current setup has the mini-media-player, lyrics, song and title, currently playing track (x of 100) and the track list. The strange issue is that they don’t all match what’s playing, lol. The mini play, song title, current track and track list all match but thats not the song playing. The lyrics are the only thing that match whats playing.
Just really making note for other people.

Jep, saw that the other day as well. The new version should fix it

cipher issue should be fixed in 20210519.01 :partying_face:
JKW

2 Likes

Since this last update, I don’t get but one song to play then it stops. If i hit next or select another play list it plays another song then stops again.
I just updated and refreshed my credentials. I’m on the latest version of HA, using the mini-media-player.

type: 'custom:mini-media-player'
name: YouTube Music
entity: media_player.ytube_music_player
artwork: cover
source: icon
volume_stateless: true
hide:
  shuffle: false
  speaker_group: false
  power: true
  icon: true
  progress: false
speaker_group:
  show_grou_count: true
  entities:
    - entity_id: media_player.downstairs
      name: Downstairs
    - entity_id: media_player.office_speaker
      name: Office
    - entity_id: media_player.house
      name: House
shortcuts:
  columns: 3
  buttons:
    - name: Work
      type: playlist
      id: PLjTWxPtujc2w9NQTaPi1rVBE1-T-h13q2
    - name: Favs
      type: playlist
      id: LM
    - name: Mix
      type: playlist
      id: RDTMAK5uy_kset8DisdE7LSD4TNjEVvrKRTmG7a56sY
    - name: Downstairs
      type: source
      id: media_player.downstairs
    - name: Office
      type: source
      id: media_player.office_speaker
    - name: Work2021
      type: playlist
      id: VLPLjTWxPtujc2yhDXuoMxie3kh7eKAkfVOb

This guy! What a legend. :muscle: Thanks so much for your awesome work on this.

1 Like

Please enable debug output (see readme GitHub - KoljaWindeler/ytube_music_player: YouTube music player for homeassistant) and post the section of the log into a GitHub ticket Issues · KoljaWindeler/ytube_music_player · GitHub or here.
Also please add some information about the player. Is it a chromecast or a Sonos …
Thanks

Thanks for the reply. The debug is not working for me, I get an error when i try and enable it via the Dev tools > Services tab.

Source: components/websocket_api/connection.py:132
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:02:01 AM (5 occurrences)
Last logged: 12:05:49 AM

[139817122574976] Error handling message: extra keys not allowed @ data['sequence'][0]['command']. Got 'debug_as_error'

I’m using chromecast. I’ll try the other method outlined and see if that works.

Here is the log

2021-05-20 00:14:08 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] play_media, media_type: playlist, media_id: VLPLjTWxPtujc2yhDXuoMxie3kh7eKAkfVOb
2021-05-20 00:14:08 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_prepare_play
2021-05-20 00:14:08 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api
2021-05-20 00:14:08 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_check_api
2021-05-20 00:14:08 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_update_remote_player(Input / current media_player.downstairs)
2021-05-20 00:14:08 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_update_remote_player
2021-05-20 00:14:08 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_turn_on_media_player
2021-05-20 00:14:08 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_turn_on_media_player
2021-05-20 00:14:08 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_cipher
2021-05-20 00:14:08 INFO (SyncWorker_10) [pychromecast.controllers] Receiver:Launching app CC1AD845
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_cipher
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_prepare_play
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: off -> unknown
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: off -> unknown
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: unknown -> unknown
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: unknown -> unknown
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: unknown -> unknown
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: unknown -> unknown
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: unknown -> idle
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: unknown -> idle
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:14:10 ERROR (Thread-11) [homeassistant.components.cast.media_player] Failed to cast media https://www.home-assistant.io/images/cast/splash.png. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: idle -> idle
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: idle -> idle
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] get_playlist(playlistId=VLPLjTWxPtujc2yhDXuoMxie3kh7eKAkfVOb)
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - shuffle new tracklist
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] _tracks_to_attribute
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] _tracks_to_attribute
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] _play
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_track
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - Playing track nr 0 / 100
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_url
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_check_api
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - try to find URL on our own
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found high quality audiostream (11)
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - self decoded URL via cipher
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_url
2021-05-20 00:14:10 INFO (SyncWorker_4) [pychromecast.controllers] Not launching app CC1AD845 - already running
2021-05-20 00:14:10 ERROR (Thread-11) [homeassistant.components.cast.media_player] Failed to cast media https://r4---sn-n4v7knl6.googlevideo.com/videoplayback?expire=1621516450&ei=QgymYL_oI5WDkgbe_7rICQ&ip=47.208.245.68&id=o-AG5ZKHEmPEKLUKANAoyYJMe75fqthoS-nIibZdKtNDyV&itag=141&source=youtube&requiressl=yes&mh=wr&mm=31%2C26&mn=sn-n4v7knl6%2Csn-q4flrnes&ms=au%2Conr&mv=m&mvi=4&pl=16&ctier=A&pfa=5&gcr=us&initcwndbps=1893750&hightc=yes&vprv=1&mime=audio%2Fmp4&ns=bpoPmJ6_D30mZCpH5qlTDHUF&gir=yes&clen=7020131&dur=218.013&lmt=1612915301353891&mt=1621494526&fvip=4&keepalive=yes&fexp=24001373%2C24007246&c=WEB_REMIX&txp=5531432&n=gBqED3uUWXk1mApte_&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cctier%2Cpfa%2Cgcr%2Chightc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgUokR9NAX6ni1BN1O4dSVQa-HJQKXsKAv02Ye-LdorfwCIGxfmOcroMTRuPTWfTj7YgAYnJ20n43M8PLD-E2ozsT3&sig=AOq0QJ8wRQIhALJKYW3-yu9i4mNX1i277rs51xWiVsNdg6gs2TYMq13wAiBMyDQGgNmXqqPt-qOFOeWzpZH9BHb9zwdT_Zn3AY-DWw==. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: idle -> idle
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: idle -> idle
2021-05-20 00:14:10 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: idle -> playing
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: idle -> playing
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_track
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] play_media
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: playing -> playing
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: playing -> playing
2021-05-20 00:14:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:14:12 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:12 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: playing -> playing
2021-05-20 00:14:12 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:12 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: playing -> playing
2021-05-20 00:14:12 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:14:13 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:13 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: playing -> playing
2021-05-20 00:14:13 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:13 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: playing -> playing
2021-05-20 00:14:13 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:14:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:14:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.Downstairs
2021-05-20 00:14:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_sync_player
2021-05-20 00:14:41 INFO (SyncWorker_4) [somecomfort] Session refreshed
2021-05-20 00:15:41 INFO (SyncWorker_0) [somecomfort] Session refreshed
2021-05-20 00:16:41 INFO (SyncWorker_3) [somecomfort] Session refreshed
2021-05-20 00:17:41 INFO (SyncWorker_7) [somecomfort] Session refreshed
2021-05-20 00:17:49 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:17:49 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: playing -> idle
2021-05-20 00:17:49 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-20 00:17:49 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] media_player.downstairs: playing -> idle
2021-05-20 00:17:49 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring old player
2021-05-20 00:18:41 INFO (SyncWorker_7) [somecomfort] Session refreshed
2021-05-20 00:19:41 INFO (SyncWorker_7) [somecomfort] Session refreshed
2021-05-20 00:20:41 INFO (SyncWorker_7) [somecomfort] Session refreshed
2021-05-20 00:21:10 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-20 00:21:35 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139912512524240] Error handling message: extra keys not allowed @ data['sequence'][0]['command']. Got 'debug_as_error'
2021-05-20 00:21:41 INFO (SyncWorker_2) [somecomfort] Session refreshed