At the moment every file should be silent. All link should end in 403 errors …
Hey everyone … some more details:
The YouTube Music code (the javascript) has a hardcoded variable called signatureTimestamp
.
At first the assumption was that the variable was static, but a day later all request are invalid again (status of now). It turns out that the variable increased by one. The new enlightenment it is actually the unix day counter.
The big issue now is that we don’t know WHEN the code changes. The idea is to grab the sourcecode of the youtube website on every start of homeassistant and try to decode the streamingUrl with this datecode. ytube_music_player/media_player.py at 537ca3f118210c683408ec4b3596c914d0794bd9 · KoljaWindeler/ytube_music_player · GitHub
On top check after every decode if the url returns a 403 or a 200 status.
if a 403 is returned (=forbidden == likey wrong datecode) the code would refresh the token in that case.
long story short: it works, I’m just waiting on a new release of the api code.
I hope this fixes the code for some longer time
Again: we need the release of sigma first before I can publish mine
jkw
Hey guys, could you test the new release?
JKW
Thank you
1-I can confirm that I can listen to music withthis update
2-I am able to play playlists
3-I am NOT able to generate playlist radio, an issue I had before, I created an issue on github with the corresponding error logs. please advise
Hands down the best media player integration. Thank you
Sorry, I’m just getting a failed to cast media:
Failed to cast media https://r5---sn-5ouxa-
reinstalled, restarted, added a new cookie etc
The player is working again for a single song. But I’m still having the issue of it advancing to the next track.
Current Log:
2021-05-23 19:33:50 INFO (Thread-12) [pychromecast.controllers] Receiver:channel_disconnected
2021-05-23 19:33:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: off -> unavailable ... not playing [E]
2021-05-23 19:33:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: off -> unavailable ... not playing [E]
2021-05-23 19:33:50 ERROR (Thread-12) [pychromecast.socket_client] [(192.168.68.109):42900] Failed to connect to service ServiceInfo(type='host', data=('192.168.68.109', 42900)), retrying in 5.0s
2021-05-23 19:33:55 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unavailable -> off ... not playing [E]
2021-05-23 19:33:55 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unavailable -> off ... not playing [E]
2021-05-23 19:33:55 INFO (Thread-12) [pychromecast.socket_client] [Downstairs(192.168.68.182):42900] Connection reestablished!
2021-05-23 19:34:00 INFO (SyncWorker_4) [somecomfort] Session refreshed
2021-05-23 19:34:15 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-23 19:34:24 INFO (MainThread) [homeassistant.components.script.play_my_favs_on_downstairs] Play My Favs on Downstairs: Running script sequence
2021-05-23 19:34:24 INFO (MainThread) [homeassistant.components.script.play_my_favs_on_downstairs] Play My Favs on Downstairs: Executing step call service
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_select_source(downstairs)
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_update_remote_player(Input media_player.downstairs/ current media_player.downstairs)
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] no change [E]
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - Choosing media_player.downstairs as player
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - untrack passed
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_select_source
2021-05-23 19:34:24 INFO (MainThread) [homeassistant.components.script.play_my_favs_on_downstairs] Play My Favs on Downstairs: Executing step call service
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] set_shuffle: True
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] _tracks_to_attribute [E]
2021-05-23 19:34:24 INFO (MainThread) [homeassistant.components.script.play_my_favs_on_downstairs] Play My Favs on Downstairs: Executing step call service
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] play_media, media_type: playlist, media_id: PLjTWxPtujc2w9NQTaPi1rVBE1-T-h13q2
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_prepare_play
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api [E]
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_update_remote_player(Input / current media_player.downstairs) [E]
2021-05-23 19:34:24 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_turn_on_media_player [E]
2021-05-23 19:34:24 INFO (SyncWorker_5) [pychromecast.controllers] Receiver:Launching app CC1AD845
2021-05-23 19:34:25 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_cipher [E]
2021-05-23 19:34:25 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_prepare_play
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: off -> unknown ... not playing [E]
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: off -> unknown
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] get_playlist(playlistId=PLjTWxPtujc2w9NQTaPi1rVBE1-T-h13q2)
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - shuffle new tracklist
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] _tracks_to_attribute [E]
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] _play
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_track
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - Playing track nr 0 / 100
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_url
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api [E]
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - try to find URL on our own
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> unknown ... not playing [E]
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> unknown
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> unknown ... not playing [E]
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> unknown
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> idle ... not playing [E]
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> idle
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 19:34:26 ERROR (Thread-12) [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-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle ... not playing [E]
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (12)
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_HIGH (13)
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (14)
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (15)
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (16)
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (17)
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - using stream 13
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - self decoded URL via cipher
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_url
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - forwarding url to player media_player.Downstairs
2021-05-23 19:34:26 INFO (SyncWorker_3) [pychromecast.controllers] Not launching app CC1AD845 - already running
2021-05-23 19:34:26 ERROR (Thread-12) [homeassistant.components.cast.media_player] Failed to cast media https://r6---sn-o097znlk.googlevideo.com/videoplayback?expire=1621845266&ei=shCrYLi9EM2ukgbu65G4Aw&ip=47.208.245.68&id=o-APwE-UMlZekmXJX5UGuAh5CVu3FIA4Nfn_16bwtt-cTf&itag=141&source=youtube&requiressl=yes&mh=UB&mm=31%2C29&mn=sn-o097znlk%2Csn-n4v7sney&ms=au%2Crdu&mv=m&mvi=6&pl=15&ctier=A&pfa=5&gcr=us&initcwndbps=1900000&hightc=yes&vprv=1&mime=audio%2Fmp4&ns=MiwwBuOPcbGNbolU25GBT0cF&gir=yes&clen=7231821&dur=224.599&lmt=1594866038992890&mt=1621823329&fvip=3&keepalive=yes&fexp=24001373%2C24007246&c=WEB_REMIX&txp=2311222&n=Z68uQeH0QNeQGZRx&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_xAwRQIhAKw-_7psqAEha0Wh5OubLUpVZ6UJwe64EebSBkOfdgbpAiAEk9QDV49TiWtDvl_-Ab0KSFcSIk2qzUWJMJnk6QMJYQ%3D%3D&sig=AOq0QJ8wRAIgWCVU1R1ZsG5J_tyz0XJqsbJ61Z5UWEnHN6bqvdlTgHICIBDSmfVxPHZUN1fN8wK349YcejFSCFSuE6dEQeGuwFOU. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle ... not playing [E]
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle
2021-05-23 19:34:26 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 19:34:27 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing ... not playing [E]
2021-05-23 19:34:27 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing
2021-05-23 19:34:27 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 19:34:27 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - untrack resub
2021-05-23 19:34:27 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-23 19:34:27 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing
2021-05-23 19:34:27 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 19:34:28 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-23 19:34:28 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing
2021-05-23 19:34:28 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 19:34:28 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_track
2021-05-23 19:34:28 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] play_media
2021-05-23 19:34:29 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-23 19:34:29 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing
2021-05-23 19:34:29 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 19:34:43 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.Downstairs [E]
2021-05-23 19:35:00 INFO (SyncWorker_4) [somecomfort] Session refreshed
2021-05-23 19:36:00 INFO (SyncWorker_3) [somecomfort] Session refreshed
2021-05-23 19:36:29 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-23 19:37:00 INFO (SyncWorker_5) [somecomfort] Session refreshed
2021-05-23 19:37:56 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.plex
2021-05-23 19:37:56 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.plex
2021-05-23 19:37:56 INFO (MainThread) [homeassistant.components.sensor] Not adding entity RWD-Plex Library - Formula1 because it's disabled
2021-05-23 19:37:56 INFO (MainThread) [homeassistant.components.sensor] Not adding entity RWD-Plex Library - Movies because it's disabled
2021-05-23 19:37:56 INFO (MainThread) [homeassistant.components.sensor] Not adding entity RWD-Plex Library - TV Shows because it's disabled
2021-05-23 19:38:00 INFO (SyncWorker_0) [somecomfort] Session refreshed
2021-05-23 19:38:12 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle ... not playing [E]
2021-05-23 19:38:12 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle
2021-05-23 19:38:12 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
ignoring player media_player.downstairs the player of interest is media_player.Downstairs
Amazing … so there is a typo that matters only for the auto advance function.
Did you manually enter the player name or select if via drop-down?
Jkw
Hey that’s an error of the chromecast integration. You have to add more of the log to help us understand the issue
Interesting… I’m looking through all my code and I don’t use a capitol D anywhere. All lower case from what I can see. Dev tools shows lowercase.
also looking at the dev tools > States I found a crap load of those chromecast groups. With a _ at the end.
None have a changed status after the last update. (last time stamps were 7:33pm, the one here was 11:24, which was after i applied the update)
Some updated logs:
2021-05-23 23:46:47 INFO (MainThread) [homeassistant.components.script.play_my_favs_on_downstairs] Play My Favs on Downstairs: Running script sequence
2021-05-23 23:46:47 INFO (MainThread) [homeassistant.components.script.play_my_favs_on_downstairs] Play My Favs on Downstairs: Executing step call service
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_select_source(downstairs)
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_update_remote_player(Input media_player.downstairs/ current media_player.Downstairs) [E]
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - Choosing media_player.downstairs as player
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - untrack passed
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_select_source
2021-05-23 23:46:47 INFO (MainThread) [homeassistant.components.script.play_my_favs_on_downstairs] Play My Favs on Downstairs: Executing step call service
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] set_shuffle: True
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] _tracks_to_attribute [E]
2021-05-23 23:46:47 INFO (MainThread) [homeassistant.components.script.play_my_favs_on_downstairs] Play My Favs on Downstairs: Executing step call service
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] play_media, media_type: playlist, media_id: PLjTWxPtujc2w9NQTaPi1rVBE1-T-h13q2
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_prepare_play
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api [E]
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_update_remote_player(Input / current media_player.downstairs) [E]
2021-05-23 23:46:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] self._state is: (idle).
2021-05-23 23:46:49 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_cipher [E]
2021-05-23 23:46:49 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_prepare_play
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] get_playlist(playlistId=PLjTWxPtujc2w9NQTaPi1rVBE1-T-h13q2)
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - shuffle new tracklist
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] _tracks_to_attribute [E]
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] _play
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_track
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - Playing track nr 0 / 100
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_url
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api [E]
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - try to find URL on our own
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (12)
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_HIGH (13)
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (14)
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (15)
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (16)
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (17)
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - using stream 13
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - self decoded URL via cipher
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - untrack resub
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_url
2021-05-23 23:46:50 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - forwarding url to player media_player.Downstairs
2021-05-23 23:46:50 INFO (SyncWorker_0) [pychromecast.controllers] Receiver:Launching app CC1AD845
2021-05-23 23:46:51 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_track
2021-05-23 23:46:51 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] play_media
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: off -> unknown ... not playing [E]
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: off -> unknown
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> unknown ... not playing [E]
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> unknown
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> unknown ... not playing [E]
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> unknown
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> idle ... not playing [E]
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: unknown -> idle
2021-05-23 23:46:52 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 23:46:53 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing ... not playing [E]
2021-05-23 23:46:53 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing
2021-05-23 23:46:53 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 23:46:53 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-23 23:46:53 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing
2021-05-23 23:46:53 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 23:46:54 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-23 23:46:54 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing
2021-05-23 23:46:54 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 23:46:56 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-23 23:46:56 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing
2021-05-23 23:46:56 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 23:47:00 INFO (SyncWorker_2) [somecomfort] Session refreshed
2021-05-23 23:47:06 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.Downstairs [E]
After the player stopped:
2021-05-23 23:47:59 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-23 23:48:00 INFO (SyncWorker_6) [somecomfort] Session refreshed
2021-05-23 23:49:00 INFO (SyncWorker_8) [somecomfort] Session refreshed
2021-05-23 23:50:00 INFO (SyncWorker_3) [somecomfort] Session refreshed
2021-05-23 23:50:02 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-23 23:51:00 INFO (SyncWorker_7) [somecomfort] Session refreshed
2021-05-23 23:51:43 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle ... not playing [E]
2021-05-23 23:51:43 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle
2021-05-23 23:51:43 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-23 23:52:00 INFO (SyncWorker_1) [somecomfort] Session refreshed
2021-05-23 23:52:09 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
Well you’ve definded the default output during the setup process, right? Is it possible that you’ve typed in the friendlyname instead of the entity id? The new setup flow is based on a clickable list instead … Or did you set it up via that list lately?
Thanks for this update! Songs are now playing on my Google Mini, the only things that don’t work for me are the YouTube custom playlists like “My Supermix”, they don’t shows up at all on the media_browser, and the fact that I still can’t use this integration with the Denon HEOS integration (my main issue for now).
Logger: homeassistant.components.heos.media_player
Source: components/heos/media_player.py:81
Integration: Denon HEOS (documentation, issues)
First occurred: 9:52:58 (3 occurrences)
Last logged: 9:53:34
Unable to play media: Command timed out
Great that it’s working on the mini.
The issue with the heos is something I can’t fix. That’s a case for the heos developer.
The supermix is also unfixable at the moment. But I’ll reach out to the ytube api developer and see what he can do.
Jkw
So I guess that the best thing I have to do is to buy a Chromecast that I plug directly on the Denon
So a update, Doing some continued testing, if I re-send the source command to send to media_player.downstairs (lower case) then it seems to work as intended. It would seem something is putting in a cap D on the initial play command/default player selection.
I’m using a script to start the initial play (from a button) but no where do i find a reference to a cap D (they are all lower case).
So bottom line, the system worked before (including the start script) but doesn’t now. So not sure what would be messing up the player selection with the cap D in this case.
This is the log of the initial play/fail, and then after the fail re-selecting the player. which then continues to play as intended.
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle ... not playing [E]
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_track
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - Playing track nr 4 / 100
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_url
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api [E]
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - try to find URL on our own
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (10)
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_HIGH (11)
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (12)
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (13)
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (14)
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (15)
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - using stream 11
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - self decoded URL via cipher
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_url
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - forwarding url to player media_player.downstairs
2021-05-24 01:20:40 INFO (SyncWorker_0) [pychromecast.controllers] Not launching app CC1AD845 - already running
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle ... not playing [E]
2021-05-24 01:20:40 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle [E]
2021-05-24 01:20:41 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing ... not playing [E]
2021-05-24 01:20:41 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing [E]
2021-05-24 01:20:41 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:20:41 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing [E]
2021-05-24 01:20:42 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:20:42 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing [E]
2021-05-24 01:20:42 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_track
2021-05-24 01:20:42 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_sync_player
2021-05-24 01:20:43 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:20:43 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing [E]
2021-05-24 01:20:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] play_media, media_type: playlist, media_id: LM
2021-05-24 01:20:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_prepare_play
2021-05-24 01:20:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api [E]
2021-05-24 01:20:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_update_remote_player(Input / current media_player.downstairs) [E]
2021-05-24 01:20:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] async_media_stop
2021-05-24 01:20:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - async_media_stop -> media_player.Downstairs
2021-05-24 01:20:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle ... not playing [E]
2021-05-24 01:20:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_cipher
2021-05-24 01:20:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle
2021-05-24 01:20:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_cipher
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_prepare_play
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] get_playlist(playlistId=LM)
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - shuffle new tracklist
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] _tracks_to_attribute [E]
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] _play
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_track
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - Playing track nr 0 / 100
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_url
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api [E]
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - try to find URL on our own
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (12)
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (13)
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (14)
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (15)
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (16)
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - using stream 12
2021-05-24 01:20:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - self decoded URL via cipher
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_url
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - forwarding url to player media_player.Downstairs
2021-05-24 01:20:46 INFO (SyncWorker_8) [pychromecast.controllers] Not launching app CC1AD845 - already running
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle ... not playing [E]
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing ... not playing [E]
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_track
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] play_media
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing
2021-05-24 01:20:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-24 01:20:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:20:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing
2021-05-24 01:20:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-24 01:20:48 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:20:48 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing
2021-05-24 01:20:48 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-24 01:20:57 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.Downstairs [E]
2021-05-24 01:21:00 INFO (SyncWorker_5) [somecomfort] Session refreshed
2021-05-24 01:21:01 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.Downstairs [E]
2021-05-24 01:21:33 ERROR (MainThread) [homeassistant.components.plex.server] Could not connect to Plex server: RWD-Plex (HTTPSConnectionPool(host='184-105-148-94.c0a7189258b446c6b8f8d7dafd2a1ccb.plex.direct', port=8443): Max retries exceeded with url: /clients (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))))
2021-05-24 01:21:45 ERROR (MainThread) [homeassistant.components.plex.server] Could not connect to Plex server: RWD-Plex (HTTPSConnectionPool(host='184-105-148-94.c0a7189258b446c6b8f8d7dafd2a1ccb.plex.direct', port=8443): Max retries exceeded with url: /clients (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))))
2021-05-24 01:22:00 INFO (SyncWorker_9) [somecomfort] Session refreshed
2021-05-24 01:22:03 ERROR (MainThread) [homeassistant.components.plex.server] Could not connect to Plex server: RWD-Plex (HTTPSConnectionPool(host='184-105-148-94.c0a7189258b446c6b8f8d7dafd2a1ccb.plex.direct', port=8443): Max retries exceeded with url: /clients (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))))
2021-05-24 01:22:25 ERROR (MainThread) [homeassistant.components.plex.server] Could not connect to Plex server: RWD-Plex (HTTPSConnectionPool(host='184-105-148-94.c0a7189258b446c6b8f8d7dafd2a1ccb.plex.direct', port=8443): Max retries exceeded with url: /clients (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))))
2021-05-24 01:22:45 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-24 01:23:01 INFO (SyncWorker_0) [somecomfort] Session refreshed
2021-05-24 01:24:00 INFO (SyncWorker_3) [somecomfort] Session refreshed
2021-05-24 01:24:28 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-24 01:25:00 INFO (SyncWorker_8) [somecomfort] Session refreshed
2021-05-24 01:25:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle ... not playing [E]
2021-05-24 01:25:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle
2021-05-24 01:25:11 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - ignoring player media_player.downstairs the player of interest is media_player.Downstairs
2021-05-24 01:26:00 INFO (SyncWorker_4) [somecomfort] Session refreshed
2021-05-24 01:26:31 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-24 01:27:00 INFO (SyncWorker_3) [somecomfort] Session refreshed
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_select_source(media_player.downstairs)
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - was playing
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] async_media_stop
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - player found
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - async_media_stop -> media_player.Downstairs
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_update_remote_player(Input media_player.downstairs/ current media_player.Downstairs) [E]
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - Choosing media_player.downstairs as player
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - untrack passed
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_track
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - Playing track nr 0 / 100
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_url
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api [E]
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - try to find URL on our own
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (12)
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (13)
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (14)
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (15)
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (16)
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - using stream 12
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - self decoded URL via cipher
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_url
2021-05-24 01:27:44 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - forwarding url to player media_player.downstairs
2021-05-24 01:27:44 INFO (SyncWorker_4) [pychromecast.controllers] Not launching app CC1AD845 - already running
2021-05-24 01:27:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle ... not playing [E]
2021-05-24 01:27:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle [E]
2021-05-24 01:27:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing ... not playing [E]
2021-05-24 01:27:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing [E]
2021-05-24 01:27:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_track
2021-05-24 01:27:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_select_source
2021-05-24 01:27:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:27:45 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing [E]
2021-05-24 01:27:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:27:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing [E]
2021-05-24 01:27:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:27:46 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing [E]
2021-05-24 01:27:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - untrack resub
2021-05-24 01:27:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:27:47 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing [E]
2021-05-24 01:27:49 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-24 01:27:51 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-24 01:28:00 INFO (SyncWorker_1) [somecomfort] Session refreshed
2021-05-24 01:28:00 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs [E]
2021-05-24 01:29:00 INFO (SyncWorker_9) [somecomfort] Session refreshed
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle ... not playing [E]
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> idle
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_track
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - Playing track nr 1 / 100
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_url
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api [E]
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - try to find URL on our own
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (10)
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (11)
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (12)
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_MEDIUM (13)
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - found stream with audioQuality AUDIO_QUALITY_LOW (14)
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - using stream 10
2021-05-24 01:29:37 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - self decoded URL via cipher
2021-05-24 01:29:38 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_url
2021-05-24 01:29:38 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] - forwarding url to player media_player.downstairs
2021-05-24 01:29:38 INFO (SyncWorker_1) [pychromecast.controllers] Not launching app CC1AD845 - already running
2021-05-24 01:29:38 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle ... not playing [E]
2021-05-24 01:29:38 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> idle [E]
2021-05-24 01:29:38 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing ... not playing [E]
2021-05-24 01:29:38 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: idle -> playing [E]
2021-05-24 01:29:38 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_track
2021-05-24 01:29:38 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [E] async_sync_player
2021-05-24 01:29:39 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing ... not playing [E]
2021-05-24 01:29:39 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs: playing -> playing [E]
2021-05-24 01:29:53 DEBUG (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player ... media_player.downstairs [E]
2021-05-24 01:30:00 INFO (SyncWorker_5) [somecomfort] Session refreshed
2021-05-24 01:30:23 WARNING (MainThread) [homeassistant.components.cloud.google_config] Error reporting state - 5: Requested entity was not found.
2021-05-24 01:31:00 INFO (SyncWorker_2) [somecomfort] Session refreshed
2021-05-24 01:32:00 INFO (SyncWorker_9) [somecomfort] Session refreshed
Start Script:
alias: Play My Favs on Downstairs
sequence:
- service: media_player.shuffle_set
data:
shuffle: true
entity_id: media_player.ytube_music_player
- service: media_player.play_media
data:
media_content_id: PLjTWxPtujc2w9NQTaPi1rVBE1-T-h13q2
media_content_type: playlist
target:
entity_id: media_player.ytube_music_player
- service: media_player.select_source
data:
source: downstairs
target:
entity_id: media_player.ytube_music_player
mode: single
icon: 'mdi:music'
Amazing …
Well I could imagine that I have a twist, somewhere in the code between friendly name and entity id.
Will have a detailed look
Morning. Added debug.
2021-05-24 08:22:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] - Playing track nr 0 / 15
2021-05-24 08:22:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_get_url
2021-05-24 08:22:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_check_api
2021-05-24 08:22:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [E] async_check_api
2021-05-24 08:22:00 ERROR (MainThread) [custom_components.ytube_music_player.media_player] - try to find URL on our own
2021-05-24 08:22:01 ERROR (MainThread) [custom_components.ytube_music_player.media_player] - self decoded URL via cipher
2021-05-24 08:22:01 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_url
2021-05-24 08:22:01 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [E] async_get_track
2021-05-24 08:22:01 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [E] play_media
2021-05-24 08:22:07 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [S] async_sync_player
2021-05-24 08:22:07 ERROR (MainThread) [custom_components.ytube_music_player.media_player] media_player.piria: off -> idle
2021-05-24 08:22:07 ERROR (MainThread) [custom_components.ytube_music_player.media_player] [E] async_sync_player
2021-05-24 08:22:07 ERROR (Thread-8) [homeassistant.components.cast.media_player] Failed to cast media https://r6---sn-5ouxa-
@yonny24 you’re running an old version … (Didn’t we have that issue before)
Please make sure that you’re running the latest release.
Please install the integration via HACS and keep up to date
@Racine please send a screenshot of
Configuration → integration → ytube_musoc_player → configure
Like this one
Turns out that you only have to add the supermix to the library and it shows up …
ah yes missed that. I was just reinstalling the old version from hacs.
updated from hacs and now working again!!!
yehh thanks