After last Title the default Playlist isn't enqueued.
In my Setup the last title stays in the playlist and isnt moved to played. The previous titles are all moved to played.
This cause the trigger which calculates the remaning titles never to reach 0 and never enques the default playlist. It works with an empty playlist or if I remove the last title.
Is this a specific Problem in my Setup or in the latest MA ?
Could be a problem with your build, the playlist cutover function is working fine for me on the latest MA Server 2.5.5 and Jukebox release?
I can't tell I tried it with Sonos PlayerProvider as well as HA -> Linkplay. In both cases the last song stays in the playlist. I also tried playing in browser with the same result I also changed the Musicprovider no change. Latest HA with MA 2.5.5
I will continue to play around and find what's special in my setup
Hey there, first of all, thanks for this addon! Really cool idea for parties and whatnot! :D
I have the same issue here.
When i start Jukebox and nothing is queued yet, it will start the playlist just fine (adds currently 5 tracks to the queue). If i during that time queue a track via the jukebox interface, it will be added as "play next" basically. this works fine too.
But after that added track has ended, the default queue doesnt jump back on for me, so if nothing else is queued, the jukebox remains silent.
I assumed that the playlist should take over, if there's nothing else queued, even after the "custom queue" has finished, right?
Thanks again for your work! $me
Aight, i guess i've figured it out for me:
for me the issue is within the automation and how sonos speakers work.
Problem to be specific: Sonos Speaker stays on Paused instead of Idle (which is required for the trigger) (maybe check in the integration->music assistant jukebox --> Queue Length, does this stay on 1 after the last queued track plays?)
Sonos speakers for me dont go to Idle after the last playlist song has played, they remain in "paused", which doesnt trigger the automation and thus the queue length never goes to 0 (it remains at 1). Since queue length is at 1, it doesnt play the default playlist.
What i've done is edited the Automation like this:. 1. Add new trigger:
- trigger: state entity_id: media_player.office to: paused id: Player paused
2. added these conditions: - conditions: - condition: trigger id: Player paused - condition: template value_template: > {{ state_attr('media_player.office', 'media_position') | float > (state_attr('media_player.office', 'media_duration') | float - 2) }} - condition: state entity_id: number.music_assistant_jukebox_jukebox_queue_length state: "1" - condition: state entity_id: switch.music_assistant_jukebox_jukebox_allow_access state: "on" sequence: - target: entity_id: number.music_assistant_jukebox_jukebox_queue_length data: value: 0 action: number.set_value
So the script triggers on pause if the queue length is 1 and the remaininng time is less than 2 seconds and its the last track of the queue and switch.music_assistant_jukebox_jukebox_allow_access is active
Hope that makes sense
Hi,
Great custom integration! Thanks!!
I'm getting the same behavior using Bose SounTouch speakers via AirPlay, tracks queued value remains in 1 once the latest track has finished so trigger called "music_assistant_jukebox_jukebox_queue_length" never executed. It seems the last track never is moved to reproduced items even there is just one. Additionally, it can't be removed from the queue when it is the unique one.
I'll make a research on the state for this player just in case it helps in the resolution.
Regards,
Are your players staying in paused state after the last track ended? If yes you need to add the pause trigger (it triggers currently only when they go to idle) Then add the conditions to set track length to 0 to oversteer it.
Hi,
I finally could check the state once the queue finishes... Unfortunately the state stays as "playing". Additionally, I updated it to idle and paused (using developer tools menu) trying to trigger the automation and nothing happened. I seems it's related with the way of working of this player or with its configuration but I can't double check using others. The player gets frozen with all the buttons disabled and once a new track is added, the next-track button turn on and then I can click on it and finally on the play button again.
Probably I must to post this issue in the MA repo as I can reproduce the same behavior even using "regular" MA-Queues with MAJukebox disabled (music_assistant_jukebox_jukebox_allow_access == false)...
I'll keep an eye out for you in case you work something out or need some kind of log for debugging.
Thanks!
Hi,
There is already an open issue in the other repository, I share the link in case someone gets here with the same problem:
https://github.com/music-assistant/support/issues/4127
Btw the comment on the Default Playlist field in HA blueprint should also say that you have to put the name of your default playlist, not id or a link.
I too was experiencing the same issue. My setup utilizes a playlist with 52 entries, all music files are on my NAS (Remote filesystem) and played to Chromecast devices around the house. Some copypasta describing the issue since I am lazy:
_When i start Jukebox and nothing is queued yet, it will start the playlist just fine (adds currently 52 tracks to the queue). If i during that time queue a track via the jukebox interface, it will be added as "play next" basically. this works fine too.
But after that added track has ended, the default queue doesn't jump back on for me, so if nothing else is queued, the jukebox remains silent_
At least in my situation I have discovered a fix. I can consistently recreate the issue and resolve it at will. The issue is created when this item is selected under Settings / Players / Player Settings
and shit just works as expected when I turn queue flow mode off. This is unfortunate because that feature is required to enable Cross Fade on my Chromecast Group.
I hope this helps others to enjoy Jukebox and I hope it gives the devs some insight to resolve the issue.
Hey All, This project is now deprecated and will be archived.
Party mode with much of the same features (but much better) has been developed as a native plugin in the latest Music assistant beta and will be released soon.
You can read about it here and test it for yourself in the latest beta build. https://beta.music-assistant.io/plugins/party-mode/