Skip to content

Energy Monitoring

Some of the most useful Tasmota devices are the plugs and modules that measure as well as switch โ€” the "POW" models in Sonoff's naming (Pow, Pow R2, Pow Elite and their many cousins from other brands), built around dedicated energy-metering chips. They report voltage, current, power and accumulated energy, which turns "the washing machine is running" and "what does this appliance actually cost me" from guesses into data.

What the device reports

The telemetry arrives in the SENSOR message from the MQTT chapter, under an ENERGY object. The shape below is preserved verbatim in a comment in the energy driver's source (xdrv_03_energy.ino) โ€” the project documents its own wire format in its code:

{"Time":"2017-12-16T11:48:55","ENERGY":{"Total":0.212,"Yesterday":0.000,"Today":0.014,"Period":2.0,"Power":22.0,"Factor":1.00,"Voltage":213.6,"Current":0.100}}

Reading it: Power is instantaneous draw in watts, Voltage and Current the live mains values, Factor the power factor, Period the energy since the last report, and Today / Yesterday / Total the accumulators in kilowatt-hours. The device keeps the daily counters itself, across reboots, so a hub can chart consumption by simply listening.

The everyday uses compound quickly: a rule that switches off when Energy#Power falls below a threshold is a "washing finished" detector with no smart appliance required; a plug on a fridge that stops reporting its usual hum is an early warning; a week of Today figures is an appliance's real running cost, measured rather than nameplate-guessed.

The honest caveats

Two, and they matter. First, these are consumer metering chips, not revenue meters: good enough for "which appliance eats the budget" and automation triggers, not for billing anyone. Accuracy depends on calibration, and Tasmota provides commands for it (the energy driver registers its own command family โ€” voltage, current and power calibration among them) if you have a known load to calibrate against. Second, the safety chapter applies with interest: an energy plug is still a cheap mains device, and its metering chip does not raise its safe load rating by one watt.