Alexa thermostat integration works but keeps saying something went wrong!

This is now working properly for me too.

More details for those who come after me:

  • Install the misc-restdocs (found under the misc category as REST Documentation in the Paper UI addons page)
  • At the top level of your OpenHAB webapp you will now find the REST API interface
  • Scroll down to items and expand it
  • Start by expanding the GET /items endpoint
    • click the Try it out button
    • in the Response body, find the mode item from your thermostat
    • Copy the value of the name field
  • Now expand the PUT /items/{itemname}/state endpoint
    • Paste in the name of your item into the itemname field
    • Type in your desired mode (probably HEAT for heating and COOL for A/C)
    • Click on the Try it out button
    • With any luck the response code you get will be 202.

I wonder if the Alexa code could deal with this error condition and give a more meaningful error. Either way I’m glad it is now fixed (until next boot at least). Thanks @hmerk!