FutureProofHomes / wyoming-enhancements

Integrate Magical ChatGPT Capabilities With Home Assistant's Wyoming Voice Satellite.
MIT License
94 stars 14 forks source link

Something went wrong: Service script.play_music not found. #16

Closed Clinteastman closed 5 months ago

Clinteastman commented 5 months ago

Everything works, all the way up to the point of steaming the track and then I get "Something went wrong: Service script.play_music not found."

script.play_music is available and when I ask the assistant if if has accesses it says it has. If I tell it to run the script I can see in the history it was run?

absarbandayy commented 5 months ago

check the automation and script pannel ... in scripts run the play music script

Clinteastman commented 5 months ago

If I manually run the script it starts playing the default music to the default device.

Clinteastman commented 5 months ago

Ok so I found a workaround.

I duplicated the script and renamed it to run_music. I then just updated the spec to call that script and now it works a treat.

absarbandayy commented 5 months ago

@Clinteastman I have a issue with my code can you help me with it

Clinteastman commented 5 months ago

I can try, what's the problem?

absarbandayy commented 5 months ago

I can't hear any response from the AI

Clinteastman commented 5 months ago

Start a new issue for it.

absarbandayy commented 5 months ago

Trying the test audio command I do hear the same on the speaker ..basically the output speaker is connected but when I give input via mic or write to the assistant like play music it responds like playing music but I can't hear anything..I think I have to select output speaker in home assistant ..what do you think

FutureProofHomes commented 5 months ago

@absarbandayy thanks for opening another ticket. Let's keep your conversation there.

@Clinteastman glad you figured it out. If you create a script called stranger _things then homeassistant will have an entity named script.stranger_things. BUT if you then change the name of the script in the automation UI to "the_upside_down", the script will still be called script.stranger_things.

I mention all this because I'm betting your original "play_music" script didn't really have an entity name of script.play_music.

Closing this ticket. Thnx!