mqtt-bridge-smartthings icon indicating copy to clipboard operation
mqtt-bridge-smartthings copied to clipboard

MQTT JSON Format

Open michapr opened this issue 3 years ago • 0 comments

Thank you for this work!

Do you plan to add the json option for MQTT server? As you know, many devices report today the data in compact json format - as sample

{"taskname":"system","Uptime":7658292.0,"RAM":767136.0,"Load":12.1,"CPU-Temp":51.5}
{"id":"A4:C1:38:5E:E1:0F","name":"ATC_5EE10F","rssi":-91,"distance":25.51913,"model":"LYWSD03MMC_ATC","tempc":20,"tempf":68,"hum":43,"batt":81,"volt":2.932}    
{"Time":"2021-03-07T11:08:07","Uptime":"42T14:24:15","UptimeSec":3680655,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":52,"POWER1":"OFF","POWER2":"OFF","POWER3":"ON","POWER4":"OFF","Wifi":{"AP":1,"SSId":"FRITZ!Box Fon WLAN 7170","BSSId":"2C:91:AB:29:2D:1E","Channel":11,"RSSI":76,"Signal":-62,"LinkCount":24,"Downtime":"0T00:21:57"}}

Most of my external devices are reporting in JSON ;)

Thanks! Michael

michapr avatar Mar 07 '21 10:03 michapr