I followed Google's example and create a smart home action and add a table lamp device to the smart home server.
With "turn on the table lamp", invocation only fails in simulator. It does respond to the assistant on my phone and shows a brightness control.
In simulator, it showed "Sure, turning the table lamp on." in displayText, but response is still "We're sorry, but something went wrong. Please try again." The console of my server did show a success response to Device Exec api.
I read some Stackoverflow questions and tried the following things:
What maybe a possible reason for it? Is there anything I can try? Thanks.
This is a known issue with the simulator. You can test on-device using a phone, smart speaker, or any other Assistant surface that is connected to the Google account you're using to test.