Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When trying to use the blueprint I receive Error: list index out of range #1

Open
vcdx71 opened this issue Dec 23, 2024 · 5 comments
Open

Comments

@vcdx71
Copy link

vcdx71 commented Dec 23, 2024

I'm trying to use this blueprint. When I ask assist to play an artist or a song I get a response back of "Done". Checking the traces for the automation shows Error: list index out of range.

full trace is attached.

HA Version: 2024.12.5
OS: 14.1
MA: 2.3.3 (running in a docker container on Unraid, same L2 network)

trace automation.music_assistant_voice_official 2024-12-23T04_49_35.090136+00_00.json

@marcelveldt
Copy link
Member

I've updated the blueprint just now - can you try it again ?

@vcdx71
Copy link
Author

vcdx71 commented Jan 3, 2025

Thanks, this is closer. It now plays but it's always playing on the default player, it's not going to the area I tell it to.

trace.zip

@tesnos6921
Copy link

I found that assigning the devices created by the Music Assistant integration to their proper areas + removing line 110 to not check the friendly_name was enough to make it work for me

@vcdx71
Copy link
Author

vcdx71 commented Jan 8, 2025

I found that assigning the devices created by the Music Assistant integration to their proper areas + removing line 110 to not check the friendly_name was enough to make it work for me

Thanks, I already had the areas setup but removing line 110 fixed it for me as well.

@eric10k93
Copy link

eric10k93 commented Jan 28, 2025

Which specific blueprint was this? Seems like they've all been changed quite a bit since this initial problem... I was actually getting this exact error message, but after a lot of digging around, I found that my problem related to the media provider I was using, Plex. I haven't had a lot of luck getting either of the automation blueprints to work, but WAS able to get the script to work, which I think is my preferred method, since I like using an LLM with local controls.

So my issue causing this error message was related to the fact that I was trying to use 'radio mode' with the Plex provider... It's apparently not supported... By simply changing 'radio mode' from 'Always' to 'Never' it stopped generating the 'index out of range' error and now the script works for me.

EDIT: To be clear, I was able to get the 'Local Only' blueprint to work ok, but it always plays on the default provider... It never plays on any other device or area requested.

As for the 'LLM with Local' blueprint, I don't think it plays nice with Google Gemini, as it just won't work no matter what I try... I think it has something to do with the conversation agent. The blueprint says it needs an LLM with local controls disabled, but Google Gemini doesn't even have that as an option at the 'conversation agent' level... That's defined when setting it up as a 'Voice Assistant', but the blueprint doesn't point to a specific Voice Assistant provider... It's requesting a conversation agent.

The script blueprint works well for me, once I figured out I can't enable radio mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants