I’m using the Blueprint “LLM Script for Music Assitant voice requests” from @TheFes .
It works most of the time but I’m experiencing 2 issues right now.
When asking LLM to play something it stops the current playback and finds the requested title but does not play it although the LLM responds that it does.
Sometimes when asking the LLM to play something it responds that is does but actually nothing is played and MA did also not change to the new title.
Which LLM are you using, is it a cloud LLM, or a local one?
To see what goes wrong, I would have to see the traces from the script runs. Can you share them by uploading the json of the trace to a code sharing site like https://dpaste.org.
You can download a trace using the download button in the upper right corner.
I would need to see the traces of a run in which the result was not what you expected, so when it didn’t start playback.
Hi, I’m using the Google AI cloud which is integrated into HA core. I’ve uploaded the trace. This is from when HA selected the correct title but did not play it. https://dpaste.org/OnZ3F
I asked LLM to play “something from Pink Floyd”. The the same result is when asking “play Pink Floyd”
You are referring to using the action in Developer tools > Actions now?
If that is the case, the problem is in Music Assistant. The script simply performs this action. This is something you need to address to the MA guys then, that part is a black box for me as well
Actually I figured it out. It has to with how the MA player queue is managed. If the enqueue options are set to play then the issue goes away. These can be configured in the core system settings.
@TheFes would it be possible to update the script to identify a specific label and use that label as the targeted media player in a given room?
Then user just ensures that only one media player in a given area has that tag and then filter on room+tag? If area is targeted no more confused llm. It’s kind of like your default player idea but more dynamic…