Rhasspy is able to use the /api/intent/handle endpoint to send intents to HA. After looking through the Rhasspy logs I found that HA responds with json that includes text that I would like to use to send a voice notification through speakers in my home.
I’ve learned that Rhasspy sends this text response to it’s TTS system, but it’s audio out system does not work exactly how I need it to for sending audio to my speaker system. So I am exploring making the request to the /api/intent/handle endpoint manually using Node-Red. However, I can not find documentation that explains what needs to be passed in the body of the http request. Is anyone familiar with this endpoint and can share what needs to be sent in the request?
I realize this is a HA issue but since Rhasspy can successfully make a request to this endpoint ,I’m hoping someone that worked on this integration could share what they are adding to the data key.
To give a bit more context I started out following the documentation to integrate Rhasspy with HA outlined here, Usage - Rhasspy.
After some digging, I didn’t find official documentation but there is a Pull Request in HA github from a few years ago that has the correct json that needs to be passed to the /api/intent/handle endpoint. This is PR is for the /api/conversation/handle but I think it was meant to be used together with the intent endpoint (and it works ).
For anyone else looking to use this endpoint, the correct request body for the intent endpoint is below:
Now I am wondering what else can be passed as a part of the object within the data key.
@synesthesiam I see that you had a hand in this on both the HA and Rhasspy sides. Do you have any documentation or info that you can share that can shed more light on what other keys can be passed in the data object?