Turns out when its told to play another song it puts that at the beginning as item 1 and the previous song is item 2. If I can hook up to the play command, calling remove_from_queue with an id of 2 will remove it (or fail if it was empty, without consequence).
Now to see if the official #HEOS integration lets me send arbitrary commands or if I am going to need to fork that as well to add queue management capabilities. Bring it on! 😤
#HomeAssistant #Denon #YouTubeMusic #diy
17.1.2023 02:45Turns out when its told to play another song it puts that at the beginning as item 1 and the previous song is item 2. If I can hook up to...BAHAHAHAH. It works! It workssssss! Managed to open a HTTP proxy in the integration and route requests through that instead of the original URL! 🥳
Found an interesting side effect with #heos. Sending the "play_stream" command adds it to the current queue on device. That's fine for the first song, but on the second song it'll go back to the first item in the queue 10 seconds before the song ends, leading to repeats.
#HomeAssistant #Denon #YouTubeMusic #diy
17.1.2023 02:42BAHAHAHAH. It works! It workssssss! Managed to open a HTTP proxy in the integration and route requests through that instead of the original...So I wanted to be able to stream YouTube Music on my Denon AVR (via HEOS) fro Home Assistant.
Found ytube_music_player and he first couple tests completely broke with the AVR disconnecting when getting the stream URL command. Did a bit of manual testing to find out the URL has a max length of 512 bytes. 🤔
A little bit of noodling and testing later I found I could write a simple proxy to send a short URL and redirect it! Now to fork it and add it.
#HomeAssistant #Denon #YouTubeMusic #diy
17.1.2023 00:04So I wanted to be able to stream YouTube Music on my Denon AVR (via HEOS) fro Home Assistant.Found ytube_music_player and he first couple...I did my part!
8.11.2022 20:17I did my part!⬆️
⬇️