• Have you tried out dark mode?! Scroll to the bottom of any page to find a sun or moon icon to turn dark mode on or off!

diy solar

diy solar

Seplos bms 3.0 multi battery pack monitoring (MQTT & Home Assistant)

multimake

New Member
Joined
Apr 12, 2022
Messages
1
I have been doing some research on the seplos rs485 bus, and I have programmed a python script to "listen" the data from the complete battery pack (when there is more than one) and publish it to a MQTT server (with auto discovery for home assistant).
When there is only one battery, modbus can be used directly, but when there are several batteries the main one acts as "Master" and there can only be one master, so there is no other option but to listen to what the master asks and decode it.
The code (a draft version) is in: https://github.com/ferelarg/Seplos3MQTT
 
I have been doing some research on the seplos rs485 bus, and I have programmed a python script to "listen" the data from the complete battery pack (when there is more than one) and publish it to a MQTT server (with auto discovery for home assistant).
When there is only one battery, modbus can be used directly, but when there are several batteries the main one acts as "Master" and there can only be one master, so there is no other option but to listen to what the master asks and decode it.
The code (a draft version) is in: https://github.com/ferelarg/Seplos3MQTT
This is absolutely great. I've been trying to connect it directly to Node Red with an RS485 adapter for days. I will look at your ideas on how to address the SEPLOS V3. I have a question? Would you like to work together? How can I help you and or do something good for your work?

Vg Denny
 
I was just about to get stuck into writing this exact thing... then found yours! Thanks so much @multimake for your work on this.

I have just finished implementing with a pi4. I have 3 15kW packs now, it's working perfectly to read all 3.

I did make a small change to your code. As standard it is streaming the MQTT data real-time. Great for eyeball monitoring but not so great for my automations based on Athom homey. Trying to react to all events crashed the MQTT server! I made a small change to cache the last result, then publish whatever is current at a configurable interval (every 60s for me). Let me know if you are interested in the changes, although I'm sure it's simple enough for you to do if you wanted.

So I now have modbus pulling from the inverter(s), MQTT for the batteries and a nice selection of flows to do things like manage EV charging (via Zaptec API), cheap rate battery charging, turning on the Active balancer (via a zigbee relay connected to the front button), ventilation if the inverter gets too hot, and whatever else I can dream up.

I've also set up openhasp on a cheap 4" lcd wall switch and fed it some of the MQTT data. 3D printed a case to have it on my work desk.

The wife doesn't appreciate any of this so here's some eye candy for you lot :)

1718567426556.png
1718567793072.png

1718567523393.png
1718568173369.png
1718567615614.png
 
Last edited:

diy solar

diy solar
Back
Top