I am using OH4.1.1 on a windows 11 machine. I connected Alexa to OH and it is possible to turn on/off light sources.
Now I am wondering if it is possible that you can ask Alexa about a state of an item. For example: “Is the door open?”
Is it also possible to receive from OH a text (string) which you send to Alexa? For example when Alexa turn on a light (switch) it say something like “temperature is …” (can be any string you send from OH).
The reviews don’t look good. It seems that the service has some bigger downtimes
You don’t really know who is running this service so be careful with any sensitive information
Alexa will not only say your message but also tell you where the message is from which is a bit annoying for this use case: You: “Alexa what is the current temperature?” Alexa: “A new message from Text Message: 22 degrees Celsius.”
In addition to that you cannot use this via the Alexa binding but you need to use the http binding to post your text to the website where the service runs.
Yes, e.g. use the amazonechocontrol binding for TTS ( text to speach ).
A rule could be setup to be triggered by a change of a light ( switch ). Then in rule that is triggered read out the temperature and use TTS to let Alexa say what you would like to.
You said “Then in rule that is triggered read out the temperature and use TTS to let Alexa say what you would like to.”
Could you explain in detail how to do that? I do have an item string (temperature) and also I can send via TTS a message (string) to Alexa. But how can I combine those two stings (temperature & any text) now?
rule "GetAndSayTemperature"
when Time cron "0/20 * * * * ?" //run every 20 seconds
then
logInfo("TemperatureInTheOffice", "The office has " + PutYourTemperatureItemHere.state.toString )
Echo_Plus_TTS.sendCommand( "The offcie has " + PutYourTemperatureItemHere.state.toString )
end
And this works. Every 20 seconds I get alexa telling me the temperature in the office.
Replace PutYourTemperatureItemHere with the related item name.
Replace Echo_Plus_TTS with your TTS item.
I have set up OpenHAB with amazonechocontrol. I have created a FirstLight thing (a Sengled smart bulb), and I can switch it on and off through a rule (I created a Power State item). However, I cannot change the color. I created a Color item, which allows me to select a color, but the bulb doesn’t react. Any ideas?
Also, I tried to send a text command, but the option does not seem to exist in the UI. Send Message does not have the desired effect. Do I have to do this via an entry in a .items file? I am using OpenHAB 4.2.1 on Windows 11.
Thanks.