In summary, we’ve all got working Alexa / Thermostat integrations but we keep finding that when we ask Alexa to set the thermostat temperature she will say: “I’m sorry, I don’t know what went wrong” - or similar. The thermostat does actually update, so the action works, but it sounds like the response from openHAB cloud is an error or something so Alexa also thinks it is an error.
I’ve not yet tried to look at the source code for the Alexa code - I presume it is a set of AWS lambdas as I believe that is the mandated interface for Alexa skills. I’m happy to have a dig if someone can point me to the right place.
Alternately, if someone has access to the logs and might be able to dig into any thermostat requests and see if there are related errors that would be incredibly useful. Are we able to see errors related to openHAB cloud operations for our own accounts somewhere?
Having looked at the Alexa docs I presume the valid states are those found here? Looks like HEAT, COOL, AUTO, ECO and OFF. When I ask Alexa to set the mode of the thermostat she doesn’t know how to do it.
I’m also not clear how to initialise the string item to a value. I might try to do it in a script, but any suggestions would be most welcome if there is a way to do it in the UI quickly (at least to work out if this might be the issue).
You can send commands or state updates to any item trough REST API, simply install REST API docs via PaperUi and you get the needed interface to do so.
Other pissibility is a rule triggerd by system started issueing a „itemName“.postUpdate(„STATE“)
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!
Hi,
I couldn’t get rid of the “something went wrong” message with this method – I can set the STATE to any string (even XXXXXXXX) and the response is 202.
Group gMAX "Keller" (gFF) [ "Thermostat" ]
String maxMode "Heizung im Keller Modus" (gMAX)[ "homekit:HeatingCoolingMode" ] {channel="max:thermostat:85bc79bb:KEQ0695917:mode"}
Number maxActual "Heizung im Keller Ist" (gMAX)[ "CurrentTemperature" ] {channel="max:thermostat:85bc79bb:KEQ0695917:actual_temp"}
Number maxSetTemp "Heizung im Keller" (gMAX)[ "TargetTemperature" ] {channel="max:thermostat:85bc79bb:KEQ0695917:set_temp"}