I am sure exactly what you mean by supporting both v2 and v3 format. The example you provided works fine as it is if you don’t want make any changes. If you want to set Alexa v3 metadata settings just for learning purpose, this is how it would look:
Keep in mind that you can keep the v2 tag unchanged for other assistant integration but it won’t be proceed by the Alexa skill once the metadata parameter is configured.
I just added the option in the square brackets for the scaling to be used.
Can the square brackets be defined anywhere inbetween the {} brackets or must is be along side the ‘alexa=’ definition?
e;g; is this permitted?
Number BR4_Temp “Temperature [%.1f °C]” (gTemperature, gBR4_Temp, chartpersist, gBR_Temp, gBedroom4Thermostat) [“CurrentTemperature”] { alexa=“TemperatureSensor.temperature”, channel=“mihome:sensor_weather_v1:158d0002789d27:temperature”, [scale=“Celsius”] }
No it has to be specified just after the metadata value like in your first example.
Related to the scale configuration, it is now determined automatically using your OH regional settings. So unless Celsius isn’t your default setting, you don’t need to specify that parameter.
Thanks Jeshab,
I am working my way through the documentation, theres a lot
Well written too.
I am sure I will have more strange clarifications as I read and play so far after initial issue not knowing about the v3 migration and all my devices (180) failing it has been a great journey.
I have noticed one thing now I come to think of it that may not be the new skills issue but let’s bring it up anyway in case others have seen it too.
When I expose new items to alexa in openhab and then ask her to ‘discover devices’, she always says “no new devices were found” and yet they are added correctyly to her list in the amazon app. Any ideas?
Since the v3 update Alexa has not been able to find any new devices. I left it for a couple of days since the upgrade, but always got Device is not responding. So, I essentially removed all the configuration and linking of Alexa to Openhab Cloud and removing the tags and trying the v3 style - but to no avail. I am running on Release 2.4.
Perhaps a syntax error? I have 125 items and some of them are image items.
Although I do get many of the these messages below when triggering a discovery from the Alexa app: 2019-08-17 17:12:52.207 [WARN ] [thome.io.rest.internal.DTOMapperImpl] - Field 'editable' could not be eliminated: Can not set boolean field org.eclipse.smarthome.io.rest.core.item.EnrichedItemDTO.editable to null value
and it’s always no new devices found for awhile after that.
My recommendation for 2.4 users is to use the release candidate version of the binding from here. It works fine with 2.4 installations. Or of course, the 2.5 M2 includes the same version out of the box.
I have been adding some new thermostat upper and lower items, see below for two examples. I would like to test them, but I am not sure what to say to Alexa to get the values set, can you advise?
Number BR1_Max_Temp "BR1 Max Temperature" (gBR1_Temp, statepersist, gRoundup_1, gTempMax) { alexa="ThermostatController.upperSetpoint" }
Number BR1_Min_Temp "BR Min Temperature" (gBR1_Temp, statepersist, gRoundup_1, gTempMin) { alexa="ThermostatController.lowerSetpoint" }
Hi, sorry for the delayed response, I did the following today 17/08/2019 :
10:11, “alexa turn on Heat recovery”
10:12, “alexa discover devices”
Location: Northumberland, England.
Many Thanks for looking into this.
So, I just switched to OH 2.5.0.M2.
But the Alexa commands are still not working. Still the same behaviour. Devices do not react and searching for new devices doesn’t find anything.
Do I have to do anything else?
I already restarted the system several times with no success.