Transcribe text from alexa command (speech to text)

Is it possible to intercept/receive a command given to an Echo device in HA as a transcribed text string?

My thermostat is not currently supported in HA, but it does have IFTTT support, as well as native (albeit very very poor) Alexa support.

What I would like to do is speak a command e.g. “Alexa, set the thermostat to 22 degrees”, and be able to receive the command in HA as a transcribed text string so that I can pull out the number 22, then use Node-Red, IFTTT, and webhooks to set the temperature to 22 degrees.

Is this something that can be done? If not the way described above, maybe there is another, possibly much more obvious way?

Any help or pointers would be greatly appreciated!

You could make a Generic Thermostat with a dummy sensor and switch. Then use NodeRed to interact with the sensor and switch. But much easier; create a custom component for your thermostat.

Thanks, I’ll look into those options.

I wasn’t originally planning to have a thermostat interface in HA because I cant retrieve any values (temp sensor, fan mode, etc) from my thermostat, but I should at least be able to send temperature commands this way. I’m looking into options for cheap temp sensors that I can use in conjunction to fake as much of it as possible and maybe put something together using the Generic Thermostat component, I just wont ever have any way to tell if the system is currently heating/cooling, other than guessing based on the room temp and target temp.

Next time I’ll just spend the extra cash on a product with better support to avoid these kinds of unnecessary headaches haha.