Ask alexa about a sensor state

I have updated my code to run

This an Appdeamon script so needs the Appdeamon add-in

https://www.home-assistant.io/docs/ecosystem/appdaemon/

If you’re not currently running Appdeamon the learning curve is quite steep.

I assume you are using emulated hue or Alexa Cloud to connect to HA and have the Alexa media player working?

If so why not simply create a script to extract the sensor value to put into the Alexa media player TTS and then call the script from Alexa using the routines in the phone app. This will also allow you to use a custom response so, for example, you can respond with “The door is”. The script will run and this will complete the sentence.

My script will give a full audit like in StarTrek :slight_smile: so maybe a little too much information. Documentation is in the script header.

Hope this helps