I just installed 2.5.0~M6-1 (Milestone Build) to test with new version binding, I really don’t feel much difference to 2.4 mqtt binding, I found if I make any changes to thing, even log say thing is Online, it’s not pulling, until restart binding by bundle:restart, and I other un-modify things will poll data, but updated/new things won’t untill system restart. this is exactly same as 2.4
second, I got a little confuse on few thing can’t get poll, I can get Rpi4B get poll, but rest 3 won’t, I can’t figure out why, I am 100% sure the topic name is correct, then rest is exactly same, have tried restart OH2 many times, but only 4B works… don’t know why
Thing topic Rpi4B "Rpi 4B Info" @ "BedR" {
Channels:
Type number : CPU1Usage "CPU1 Usage" [ stateTopic="Sensor/openhabian4B/status", transformationPattern="JSONPATH:$.CPU1" ]
Type number : CPU2Usage "CPU2 Usage" [ stateTopic="Sensor/openhabian4B/status", transformationPattern="JSONPATH:$.CPU2" ]
Type number : CPU3Usage "CPU3 Usage" [ stateTopic="Sensor/openhabian4B/status", transformationPattern="JSONPATH:$.CPU3" ]
Type number : CPU4Usage "CPU4 Usage" [ stateTopic="Sensor/openhabian4B/status", transformationPattern="JSONPATH:$.CPU4" ]
Type number : CPUTemp "CPU Temp" [ stateTopic="Sensor/openhabian4B/status", transformationPattern="JSONPATH:$.CPUTemp" ]
Type number : CPUFreq "CPU Frequency" [ stateTopic="Sensor/openhabian4B/status", transformationPattern="JSONPATH:$.CPUFreq" ]
Type number : Eth0Tx "Ethernet Tx" [ stateTopic="Sensor/openhabian4B/status", transformationPattern="JSONPATH:$.Tx" ]
Type number : Eth0Rx "Ethernet Rx" [ stateTopic="Sensor/openhabian4B/status", transformationPattern="JSONPATH:$.Rx" ]
Type datetime : LastSeen "Last Seen" [ stateTopic="Sensor/openhabian4B/status", transformationPattern="JSONPATH:$.Time" ]
}
Thing topic RpiServer "Rpi Server Info" @ "CompuR" {
Channels:
Type number : CPU1Usage "CPU1 Usage" [ stateTopic="Sensor/OpenhabianPi-Server/status", transformationPattern="JSONPATH:$.CPU1" ]
Type number : CPU2Usage "CPU2 Usage" [ stateTopic="Sensor/OpenhabianPi-Server/status", transformationPattern="JSONPATH:$.CPU2" ]
Type number : CPU3Usage "CPU3 Usage" [ stateTopic="Sensor/OpenhabianPi-Server/status", transformationPattern="JSONPATH:$.CPU3" ]
Type number : CPU4Usage "CPU4 Usage" [ stateTopic="Sensor/OpenhabianPi-Server/status", transformationPattern="JSONPATH:$.CPU4" ]
Type number : CPUTemp "CPU Temp" [ stateTopic="Sensor/OpenhabianPi-Server/status", transformationPattern="JSONPATH:$.CPUTemp" ]
Type number : CPUFreq "CPU Frequency" [ stateTopic="Sensor/OpenhabianPi-Server/status", transformationPattern="JSONPATH:$.CPUFreq" ]
Type number : Eth0Tx "Ethernet Tx" [ stateTopic="Sensor/OpenhabianPi-Server/status", transformationPattern="JSONPATH:$.Tx" ]
Type number : Eth0Rx "Ethernet Rx" [ stateTopic="Sensor/OpenhabianPi-Server/status", transformationPattern="JSONPATH:$.Rx" ]
Type datetime : LastSeen "Last Seen" [ stateTopic="Sensor/OpenhabianPi-Server/status", transformationPattern="JSONPATH:$.Time" ]
}
Thing topic Rpi3BPlus "Rpi 3B+ Info" @ "LivR" {
Channels:
Type number : CPU1Usage "CPU1 Usage" [ stateTopic="Sensor/openhabian3BPlus/status", transformationPattern="JSONPATH:$.CPU1" ]
Type number : CPU2Usage "CPU2 Usage" [ stateTopic="Sensor/openhabian3BPlus/status", transformationPattern="JSONPATH:$.CPU2" ]
Type number : CPU3Usage "CPU3 Usage" [ stateTopic="Sensor/openhabian3BPlus/status", transformationPattern="JSONPATH:$.CPU3" ]
Type number : CPU4Usage "CPU4 Usage" [ stateTopic="Sensor/openhabian3BPlus/status", transformationPattern="JSONPATH:$.CPU4" ]
Type number : CPUTemp "CPU Temp" [ stateTopic="Sensor/openhabian3BPlus/status", transformationPattern="JSONPATH:$.CPUTemp" ]
Type number : CPUFreq "CPU Frequency" [ stateTopic="Sensor/openhabian3BPlus/status", transformationPattern="JSONPATH:$.CPUFreq" ]
Type number : Eth0Tx "Ethernet Tx" [ stateTopic="Sensor/openhabian3BPlus/status", transformationPattern="JSONPATH:$.Tx" ]
Type number : Eth0Rx "Ethernet Rx" [ stateTopic="Sensor/openhabian3BPlus/status", transformationPattern="JSONPATH:$.Rx" ]
Type datetime : LastSeen "Last Seen" [ stateTopic="Sensor/openhabian3BPlus/status", transformationPattern="JSONPATH:$.Time" ]
}
Thing topic Rpi3B "Rpi 3B Info" @ "GuestR" {
Channels:
Type number : CPU1Usage "CPU1 Usage" [ stateTopic="Sensor/OpenhabianPi3B/status", transformationPattern="JSONPATH:$.CPU1" ]
Type number : CPU2Usage "CPU2 Usage" [ stateTopic="Sensor/OpenhabianPi3B/status", transformationPattern="JSONPATH:$.CPU2" ]
Type number : CPU3Usage "CPU3 Usage" [ stateTopic="Sensor/OpenhabianPi3B/status", transformationPattern="JSONPATH:$.CPU3" ]
Type number : CPU4Usage "CPU4 Usage" [ stateTopic="Sensor/OpenhabianPi3B/status", transformationPattern="JSONPATH:$.CPU4" ]
Type number : CPUTemp "CPU Temp" [ stateTopic="Sensor/OpenhabianPi3B/status", transformationPattern="JSONPATH:$.CPUTemp" ]
Type number : CPUFreq "CPU Frequency" [ stateTopic="Sensor/OpenhabianPi3B/status", transformationPattern="JSONPATH:$.CPUFreq" ]
Type number : Eth0Tx "Ethernet Tx" [ stateTopic="Sensor/OpenhabianPi3B/status", transformationPattern="JSONPATH:$.Tx" ]
Type number : Eth0Rx "Ethernet Rx" [ stateTopic="Sensor/OpenhabianPi3B/status", transformationPattern="JSONPATH:$.Rx" ]
Type datetime : LastSeen "Last Seen" [ stateTopic="Sensor/OpenhabianPi3B/status", transformationPattern="JSONPATH:$.Time" ]
}
Topic as below, it all shows update with MQTT1.x, below topics update every minute(60s), and I use MQTT.fx to real time monitor updates below topics to isolate the problem source
Sensor/OpenhabianPi-Server/status >> not seeing on 2.5M6
Sensor/openhabian3BPlus/status >> not seeing on 2.5M6
Sensor/OpenhabianPi3B/status >> not seeing on 2.5M6
Sensor/openhabian4B/status >> this work on 2.5M6
content as
{"CPU1":4.08,"CPU2":6.06,"CPU3":6.06,"CPU4":4.95,"CPUTemp":52.1,"CPUFreq":600,"Tx":1.00,"Rx":0.00,"Time":2019-12-09T05:38:02}
Off-topic question, please kindly advise what is the proper way to poll thing status on 2.5?
I used below when 2.2-2.4
var CompuRCeilingLstatus = getThingStatusInfo("miio:basic:0abcdef").getStatus()
after wake up, I find out why not getting update, I made mistake on the items channel link,
after correction, everything work as expect, sorry for wasting everyone’s time here.