I have already migrated in a very smooth way from OH 2.5.11 to OH 3.
Need to do some changes in my items files for the new TR-064 binding and they are working.
But i am missing some channels for my FB7590. The missing channels als prompted under “Information” as “Thing Properties”.
Is there a way to get these information as channel like in the OH2 Binding?
What channels are missing in your opinion ? Information shown in your screenshot are - apart from SoftwareVersion - static, so per definition properties and no channels.
Even SoftwareVersion is not worth to be a channel IMHO, as it is nothing to change daily/weekly or so…
I got you wrong. As hmerk mentioned it’s probably not worth, but you could use the REST API. Just go to Dev Tools and get the Data from the API. Maybe you can parse the data with the http binding and a json transformation.
Please correct me if I’m wrong, but that’s a solution I would try…
A rule is doing the API Call, transform the string into different values and push the values into the items.
Here is the code if someone wants to use is too.
var String logName = “Fritzbox”
rule “Fritzbox API Calls”
when
System started or
Time cron “0 0 * * * ?” // jede Stunde
then
val ApiCall = sendHttpGetRequest(“http://user:password@openhabhost/rest/things/tr064%3Afritzbox%uniqueid”, 10000)
val ModelName = transform(“JSONPATH”, “$.properties.ModelName”, ApiCall.toString)
val SoftwareVersion = transform(“JSONPATH”, “$.properties.SoftwareVersion”, ApiCall.toString)
val SerialNumber = transform(“JSONPATH”, “$.properties.SerialNumber”, ApiCall.toString)
val fblabel = transform(“JSONPATH”, “$.label”, ApiCall.toString)
fboxName.postUpdate(ModelName)
fboxVersion.postUpdate(SoftwareVersion)
fboxSerial.postUpdate(SerialNumber)
fboxManufacturer.postUpdate(fblabel)
logInfo(logName, “Fritzbox Thing Properties pushed into items.”)
end
@hmerk But there are actually two missing channels that are more dynamic than the thing properties mentioned before. I am also missing the “Downstream Current Rate” and “Upstream Current Rate” from the v2 Binding. Is there a chance to add these two channels or to get values via API Call?