I’m struggling with setting up a configuration where Alexa can tell me the room temperature. I’d like to set the target temperature as well, but for a start I want to focus on getting the current temperature.
First I read the docs at https://www.openhab.org/docs/ecosystem/alexa/ and tried to work with the sample
Group Thermostat "Bedroom" {alexa="Endpoint.Thermostat"}
Number Temperature "Temperature [%.0f F]" (Thermostat) {alexa="TemperatureSensor.temperature"}
So I’ve created a group and an item:
Group GsfWrTempAlexa "Workroom" {alexa="Endpoint.Thermostat"}
Number IsensorsSfWrHeating_TemperatureAlexa "Temperature in Workroom [%.0f C]"
<temperature> (GsfWrTempAlexa) {alexa="TemperatureSensor.temperature", channel="mihome:sensor_weather_v1:xyz:temperature"}
I checked the items in the Cloud Service and found:
{
"members": [],
"link": "https://myopenhab.org/rest/items/GsfWrTempAlexa",
"state": "NULL",
"editable": false,
"type": "Group",
"name": "GsfWrTempAlexa",
"label": "Arbeitszimmer",
"tags": [],
"groupNames": []
},
{
"link": "https://myopenhab.org/rest/items/IsensorsSfWrHeating_TemperatureAlexa",
"state": "NULL",
"stateDescription": {
"pattern": "%.0f C",
"readOnly": true,
"options": []
},
"editable": false,
"type": "Number",
"name": "IsensorsSfWrHeating_TemperatureAlexa",
"label": "Temperature in Workroom",
"category": "temperature",
"tags": [],
"groupNames": ["GsfWrTempAlexa"]
}
I then had Alexa discover new devices. Both (Group and Item) were found. But when I said "Alexa, tell me the temperature in workroom, Alexa told me that workroom was not responding.
I found it suspicious that there were no tags stored, because for my power plugs I’ve tagged the items with “Switchable”. So I tagged IsensorsSfWrHeating_TemperatureAlexa with “CurrentTemperature”. After a re-discovery Alexa kept complaining about not getting a response. I even tried changing the room name to help Alexa, but still no success.
The REST API reported the tag I set btw:
{
"link": "https://myopenhab.org/rest/items/IsensorsSfWrHeating_TemperatureAlexa",
"state": "NULL",
"stateDescription": {
"pattern": "%.0f C",
"readOnly": true,
"options": []
},
"editable": false,
"type": "Number",
"name": "IsensorsSfWrHeating_TemperatureAlexa",
"label": "Testroom",
"category": "temperature",
"tags": ["CurrentTemperature"],
"groupNames": ["GsfWrTempAlexa"]
}
What am I doing wrong? Is there somewhere a tutorial which tells me the exact steps for this task?
Best regards,
cd_