Tasmota Energy Monitoring with NodeRED, Influx and Grafana

18. Februar 2023 at 19:07
Print Friendly, PDF & Email


Energy monitor using NodeRED, InfluxDB and Grafana

This project is using power monitoring devices like Gosund SP111, SONOFF POW to measure the energy consumption. Data is collected by NodeRED and pushed to a Influx database. Finally Grafana is used to provide a dashboard.

Supporting files are availabe on github:


Grafana Monitoring





The flow is kept very generic. You do not need to manually create flows for each devices. Instead of using discovery, NodRED is listening to all SENSOR messages and creating automatically a list of devices.

The fields pushed to the influx database are

  • device: myDevice,
  • event: ‘tele’,
  • power: msg.payload.ENERGY.Power,
  • today: msg.payload.ENERGY.Today,
  • yesterday: msg.payload.ENERGY.Yesterday,
  • total: msg.payload.ENERGY.Total

At the end of each day at 11.58 p.m. the value of today is pushed to another measurement in influx.

Tsamota Devices


Any Tasmota device with power measurement will work: NOUS A1T, Gosund SP111, BlitzWolf SHP2 (old version with ESP), SONOFF POW


When I started with home automation I thought it is a bright idea to seperate MQTT messages by building. Accordingly I changed the full topic to “house/%prefix%/%topic/”.
Probably I would not do it anymore.