PRTG and Sonoff smart meter part 2 - MQTT strikes back
Summary
Back in the mists of time (March 2019), I wrote a blog post describing how a REST Custom sensor can be used to read energy consumption data from a Sonoff POW2 smart switch. One of the cool features provided by the Tasmota custom firmware used in that project is support for the MQTT protocol. Click the button with the stack of horizontal lines above the return value window to see the data in a neat JSON format. Copy all of the JSON data from the Value panel in MQTT Explorer – make sure you include ALL the curly brackets (braces) or unpleasant things will happen. As soon as PRTG has queried the broker and created the channels, you can edit them to add the unit labels to each one: Although this post explains how to extract energy usage data from a Sonoff POW2 smart switch using MQTT, the same tools and techniques can be applied to any device that supports MQTT!