Thank you for clarifying.@virus100b Wired version switches are read only so just represent status of the BMS switch but you cannot change it from HA.
@widget4145 is using mode 2 so his config will be 01 to 07 and this is the only way for ESP to gather all informations from BMSes
For mode 2 do i need to change addresses in the code
"bms_rs485_address: '0x00' # BMS 1 DIP switch" starting from 01 or i can let this like that and ESP will just skip BMS1 and will start from BMS2 as this will have address 01 ?
After testing this solution few days weird things happened and I do not understand why. When there was enough solar power and battery power SmartBMS switched my Growatt SPF 5000 ES to Solar/Grid mode from Solar/Battery mode. So 500W load was using grid and in the same time battery was charged 4000W. Can you explain logic behind this? It is intentionally programmed? I saw this behavior at balancing state which is perfectly OK allowing balance without using batteries. But why this happened in the morning during Bulk charging state? All the automatic charge voltage, current and discharge are turned off. That's weird for me.
It seems that you are having the same problem as txubelaxu, it is the default values of the sensors that are displayed when no BMS is combined. We can continue on the subject below:What would be the reason that smartbms is reporting wrong Min/Max Cells Voltage and Temperatures?
This error send the alarm errors seen on logs:
[16:42:31][D][jk_rs485_sniffer:330]: SCANNING TO DISCOVER...0x03
[16:42:32][D][text_sensor:064]: 'smartbms Smart BMS 1 Charging Instruction': Sending state 'Stop'
[16:42:32][D][text_sensor:064]: 'smartbms Smart BMS 1 Alarm': Sending state 'OVP'
[16:42:32][D][sensor:094]: 'smartbms Smart BMS 1 Requested Discharge Voltage': Sending state 0.00000 V with 1 decimals of accuracy
[16:42:32][D][text_sensor:064]: 'smartbms Smart BMS 1 Warning': Sending state 'UTP'
[16:42:32][main:469]: Charge Status : Alarm
[16:42:32][D][text_sensor:064]: 'smartbms Smart BMS 1 Charging Status': Sending state 'Alarm'
[16:42:32][D][sensor:094]: 'smartbms Smart BMS 1 Auto Charge Voltage': Sending state 55.40000 V with 1 decimals of accuracy
[16:42:32][D][jk_rs485_sniffer:330]: SCANNING TO DISCOVER...0x04
[16:42:32][D][jk_rs485_sniffer:330]: SCANNING TO DISCOVER...0x05
[16:42:33][D][text_sensor:064]: 'smartbms Smart BMS 1 Charging Instruction': Sending state 'Stop'
[16:42:33][D][text_sensor:064]: 'smartbms Smart BMS 1 Alarm': Sending state 'OVP'
[16:42:33][D][sensor:094]: 'smartbms Smart BMS 1 Requested Charge Current': Sending state 0.00000 A with 1 decimals of accuracy
[16:42:33][D][text_sensor:064]: 'smartbms Smart BMS 1 Warning': Sending state 'UTP'
[16:42:33][main:469]: Charge Status : Alarm
[16:42:33][D][text_sensor:064]: 'smartbms Smart BMS 1 Charging Status': Sending state 'Alarm'
[16:42:33][D][sensor:094]: 'smartbms Smart BMS 1 Auto Charge Voltage': Sending state 55.40000 V with 1 decimals of accuracy
[16:42:33][D][jk_rs485_sniffer:330]: SCANNING TO DISCOVER...0x06
View attachment 222036
So, it looks like Growatt programmed inverter logic then.The CAN bus simply communicates information about charge, voltage, current, soc, soh, alarms, warning, etc. There is nothing in the code that could change the operating mode of an inverter, however each inverter reacts differently to the information it receives from the CAN bus. This is the case for example with the 100% SoC, some inverters stop charging when the SoC is at 100% and no longer respect the requested charging voltage, this is why 100% is transmitted at the end of the Bulk/Absorption phase only. So we need to understand why your inverter reacted like that?
Yes, they are all at 15.17.@widget4145 Did you upgraded your JK Inverter BMSes to 15.17?
Which firmware version do you have on your BMSes?
How long is your CAN and RS485 cables?
Still fighting with RS485 connection. I suspect strong EMI from my inverter and this may be problem with unstable connections.
Likely that the galvanic isolation in the inverter ttl to rs485 circuitry is faulty or missing.Found the cause of my RS485 connection problems but for now I have no idea how to fix it.
As soon as I turn off solar panels from my inverter using isolation switch all the communication immediately starting to work without any problems. When I turn them back on than after few seconds RS485 communication is gone or very unstable, causing also ESP restart.
I suspect strong interferences from my PV cabling is going thru inverter to batteries causing RS485 connection mess. Few meters of the PV cables is routed along AC cables and I think, it may be the problem or the MPPT in inverter is such a big bad noise generator. What do you think?
@kommando I do not use RS485 connection to inverter for now. For now for testing it is just ESP Atom connected to RS485 of one of two batteries with JK BMSes.Likely that the galvanic isolation in the inverter ttl to rs485 circuitry is faulty or missing.
Try this, turn on the PV but turn off the charging only on the battery BMS you have the RS485 connection with, this may isolate the interference to the PV charging.@kommando I do not use RS485 connection to inverter for now. For now for testing it is just ESP Atom connected to RS485 of one of two batteries with JK BMSes.
This is some amazing work, looks like a lot in progress still, and I am just wondering if there is a consensus on best components to use to put this together. I have not bought anything yet, maybe the first or 2nd post on this thread could be updated with a link to "latest/greatest" components.
This is my plan (hoping to buy all this in the next month):
1 EG4 18KPV (possibly 2 in future, or 2 Growatt 10kHU if they pan out)
2x EVE 16S packs (possibly 3-4 future)
Hoping for wire reduction using BLE, could wire RS485
Have Home Assistant VM, hoping to integrate with Solar Assistant to automate things like well pumps after 100% SOC reached.
Which JK model is best, ESP32 models... etc.
Tried as you advised, no change. Even turning off MCCB to batteries did not helped so it looks like strong interference?Try this, turn on the PV but turn off the charging only on the battery BMS you have the RS485 connection with, this may isolate the interference to the PV charging.
I do not think, that galvanic separation will help in my case because I tried on MCCB disconnected batteries and connection problems are still there so as stated above I suspect very strong interference from my PV panels/cabling/MPPT.@cinusik @virus100b
The RS485 board which is proposed in this README (draft) is the one used by @txubelaxu who developed the RS485 component for the new JK-BMS PB. It's definitely not the best board. With PVbrain2 we use the board below which has galvanic isolation but it has not yet been tested with the component from @txubelaxu, this board does not need TALK PIN.
RS485 board High Speed Dual version
Yes does look like the inverter is transmitting a large amount of interference, now is it a fault unique to your inverter or part of the design ?Tried as you advised, no change. Even turning off MCCB to batteries did not helped so it looks like strong interference?
Try to use a ferrite ring and wrap the 485 cable twice through the ring. Deye is supplying with the inverter 2 ferite Rings. One for Battery cables and one for BMS cable.Tried as you advised, no change. Even turning off MCCB to batteries did not helped so it looks like strong interference?