I have a problem with OH2 transcription of an item linked by HTTP on OH3
I managed to do it under VS in text mode:
the Things
Thing http:url:Home_Wizard1 “Home Wizard1” [ baseURL=“http://192.168.0.16”, refresh=2] {
Channels:
//Type Number : Channel_Thermostat “Thermostat”
Type string : Ch_Th1 “Thermostat_1” [stateExtension=“/disquette/telist”,stateTransformation=“JSONPATH:$.response[0].te”,refresh=“10”]
}
the Item
Number Th1 “Therm_1: [%.2f °C]” (Thermostat) {channel=“http:url:Home_Wizard1:Ch_Th1”}
The Sitemap
Thing http:url:Home_Wizard1 “Home Wizard1” [ baseURL=“http://192.168.0.16”, refresh=2] {
Channels:
//Type Number : Channel_Thermostat “Thermostat”
Type string : Ch_Th1 “Thermostat_1” [stateExtension=“/disquette/telist”,stateTransformation=“JSONPATH:$.response[0].te”,refresh=“10”]
}
It all works perfectly
But the problem is when I want to reproduce it under the integrated interface!
For the thing and the related item I think I understood:
we can see that the linked item indicates the temperature on the channel:
I think the solution is in editing the item and adding Metadata
But where to find the documentation and the syntax?
Thank you
Arpagor