Hi All the good guys from OpenHAB.
i have been adding stuff to my MQTT to My system. but seems to have ran in to a issue ?
i had one channel that worked from i set it up in the first go. now i added more channels to start adding to my system monitoring. and they just seem to fail me even if i followed the same velocify i used to set up the working on. i do get the information on mqtt explorer but cant seem to get it in to openhab.
i am using mosquito as my broker. all the other stuff seems to work that i set up.
please see attached screen grabs.( trying cpuTemp)
mqtt explorer :
Sitemap :
Things File :
Bridge mqtt:broker:mosquitto "MQTT Broker" [ host="192.168.1.5", port=1883, clientid="openhab", secure=false]
{
Thing topic system "System"{
Channels:
Type number : DB-TEMP "DB-Temp" [ stateTopic="OpenHAB-DB/TEMP" ] //currently working
Type number : DBCPU_Temp "CPU Temp" [ statTopic="OpenHAB-DB/cpuTemp"]
Type number : DBLoad "CPU Load" [ statTopic="OpenHAB-DB/CPULOAD"]
// Type number : DBmem_used "Mem Used" [statTopic="OpenHAB-DB/MUSED"]
// Type number : DBmem_free "Mem Free" [statTopic="OpenHAB-DB/MFREE"]
// Type number : DBmem_size "Mem SIZE" [statTopic="OpenHAB-DB/MSIZE"]
// Type number : DBdrive_size "Drive SIZE" [statTopic="OpenHAB-DB/DSIZE"]
// Type number : DBdrive_used "Drive Used" [statTopic="OpenHAB-DB/DUSED"]
// Type number : DBdrive_avail "Mem Avail" [statTopic="OpenHAB-DB/DAVAIL"]
}
items :
/* OpenHAB-DB 1 */
Number DB_Temp "DB Temp[%.1f °C ]" {channel="mqtt:topic:mosquitto:system:DB-TEMP"}
Number DBCPU_Temp "CPU Temp[%.1f °C ]" {channel="mqtt:topic:mosquitto:system:DBCPU_Temp"}
Number DBLoad "Load[%.1f % ]" {channel="mqtt:topic:mosquitto:system:DBLoad"}
Number DBmem_used "Mem Used[%.1f MB]" {channel="mqtt:topic:mosquitto:system:DBmem_used"}
Number DBmem_free "Mem Free[%.1f MB]" {channel="mqtt:topic:mosquitto:system:DBmem_free"}
Number DBmem_size "Total Mem[%.1f MB]" {channel="mqtt:topic:mosquitto:system:DBmem_size"}
Number DBdrive_size "Total drive [%.1f GB ]" {channel="mqtt:topic:mosquitto:system:DBdrive_size"}
Number DBdrive_used "Drive Used[%.1f %]" {channel="mqtt:topic:mosquitto:system:DBdrive_used"}
Number DBdrive_avail "Drive Avail [%.1f %]" {channel="mqtt:topic:mosquitto:system:DBdrive_avail"}
Sitemap :
Frame label="OpenHAB-DB 1" {
Default item=DB_Temp
Default item=DBCPU_Temp
Default item=DBLoad
}