ESP8266 to monitor electricity with SDM devices and send to MQTT
Here I show you guys how you easily can get it setup and to monitor your electricity with an ESP8266 and a couple of meters. Data is then sent to MQTT and processed with Node red and forward to Influx
What you need
- ESP8266 https://ebay.to/2CWIbxD
- TTL to RS485 converter https://ebay.to/2Pbq9gY
- SDM630 or 120 https://ebay.to/2OBMLI0 https://ebay.to/2R4QV7V
- 5 V din rail PSU https://ebay.to/2q573Ld
- 120 ohm resistor
- Silicone wires https://ebay.to/2q4oHyY
Code to the ESP8266 can be found here: https://github.com/daromer2/SmartHome Original code if you follow the forked repo.
How to connect it up:
It can then look like this:
With code from https://github.com/daromer2/diypowerflow
Feel free to check out my Raspberry project that contain many of the base stuff. In version 9 it will contain above as well!!
In node red I have this layout where i Fetch the data via MQTT and then store in Influx. I have added a queue in front to make sure that it doesnt jam up the Influx DB since i have no queue handling there.
Can be found under this link https://pastebin.com/quX3U99F
And this is how it looks: