MQTT Binding Multiple Channels referencing the same topic

Is the most efficient way of updating several items from one MQTT JSON state update Topic to create multiple channels with different JSONPATH translations on each and then link each channel to an item? Currently I have several switch channels per Thing referencing the same topic.

  tele/MyDevice/STATE

that topic delivers a JSON containing the state of several Items such as

{"Time":"2020-01-29T04:03:58","Uptime":"3T01:19:24","UptimeSec":263964,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":7,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","Wifi":{"AP":1,"SSId":"xxxxxx","BSSId":"xx:xx:xx:xx:xx:xx","Channel":xx,"RSSI":62,"Signal":-69,"LinkCount":2,"Downtime":"0T00:00:10"}}

Each channel on the thing is subscribed to the same topic with a slightly different JSONPATH such as

 JSONPATH:$.POWER1

and

 JSONPATH:$.POWER2

Is this the most efficient way?

:+1: That’s the way.

1 Like