[Pylontech 4.8kWh 5000 Battery] individual cell voltage monitoring via WiFi to MQTT broker #1391
gitisgreat2023
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to monitor my individual cells of my Pylontech 5000, before I build my DIY 48V box and sell my Pylontech. Especially the balancing I'm interested in, to gain some experience with those topics before going to the DIY box.
So I needed the individual cell voltages in a database, in my case iobroker with the history adapter on MQTT topics.
It wasn't completely trivial so I would like to share my experiences to enable other people to have a jump start and have a working system very fast.
Step 1:
Solder together the hardware according to this.
I have one change, I use the 5V instead the 3.3V to power the Max3232. That's the pin next to GND on the ESP. You put the LAN cable into the console port of the Pylontech, on the other end you need pin 3 6 and 8 (gnd).
Step 2:
Then configure (WiFi and MQTT credentials), compile and flash PylontechMonitoring.ino on your ESP86266.
Step 4:

Test your setup. Connect to your ESP and execute the command "bat".
That should give you a result like this:
Step 5:
Configure Node Red to extract the output of Step 4 automatically every 10 seconds and store those 15 voltages (and 3 other: min, max and (max-min)) to MQTT.
The Node Red code is running since 12 hours without an issue. I'm a complete newbie in Node Red so probably it can be done much more elegant.
Code
Beta Was this translation helpful? Give feedback.
All reactions