Mycodo Input - MQTT JSON

Hi Guys,
I’ve put together the attached input for mqtt messages encoded in JSON format. My use case is a sensor that posts to a topic with multiple measurements taken published in JSON format. This is able to take the JSON keys and pull out the values. Pretty simple and straightforward, but powerful in having remote sensors.mqtt_paho_json.py (11.5 KB)

2 Likes

Thanks. It looks great. I’ll see if I can think of any changes over the next day, then commit it for the next release. It looks like a nice addition to the MQTT Input lineup.