Which HASS plugin?I got the pace BMS reporting to MQTT through home assistant plugin using a TCP serial connection to the RS232 port. Now, I am looking for a script or something that will read the EG4 lifepower4 packs through another TCP RS485 port connection and can parse, send to Mosquitto server.
It is called BMS Pace, Version 2.1.0. You have to add the repository: https://github.com/Tertiush/bmspaceWhich HASS plugin?
You have looked at this, right? https://eg4electronics.com/wp-conte...DBUS-Communication-Protocol_ENG-correct-1.pdfThe missing piece now is the EG4 BMS data. I have JK, PaceBMS, EG4 (Narada?). Look at my dashboard here: https://snapshots.raintank.io/dashboard/snapshot/wlLroZdEFbB25anH1PBdzRmWY1q3Hx17
Now I see that the document has been replaced with a more proper modbus document (same link). The calculation method was in the document I was originally reading, but not sure if I will be able to find it again.I don’t get how that is calculated.
This was what I was looking at before.It would be very good if you can find that document again because I am pulling my hair like the last person in the thread above. For now, I'm leaning towards just ignoring the CRC.
Are you doing the ASCII sums or hex sums? That is where they lost me.Yeah, I can't figure this one out. For example,
Function 1 - Read data 7e 01 01 00 fe 0d has a checksum of 0xFE and the sum of the numbers is 0x02
Function 67 - Read protection parameters 7e 01 43 00 fe 0d also has a checksum of 0xFE but the sum of the numbers is 0x44
Yeah, I get that... but as I read it I think you need to do math as ASCII values rather than just as Hex. Why the hell someone would think that is logical is beyond me.Well, ascii can be represented in hex and there are some hex that can’t be printed like all the voltage values so everything is done in hex.
Starting up...
Loading config.yaml
Connection Type: IP
MQTT connected with result code 0
Connecting to BMS...
trying to connect 192.168.10.218:8002
BMS socket connected
BMS Version: QT-YS00-16SV100A-V3.10
BMS Serial Number: 16778846
Cells: 16
V Cell1: 3331 mV
V Cell2: 3331 mV
V Cell3: 3331 mV
V Cell4: 3331 mV
V Cell5: 3331 mV
V Cell6: 3331 mV
V Cell7: 3331 mV
V Cell8: 3331 mV
V Cell9: 3331 mV
V Cell10: 3331 mV
V Cell11: 3331 mV
V Cell12: 3331 mV
V Cell13: 3331 mV
V Cell14: 3331 mV
V Cell15: 3331 mV
V Cell16: 3331 mV
I Pack: 0.0 A
I Remaining Capacity: 78.8 Ah
I Design Capacity: 97.8 Ah
Temp1: 20 C
Temp2: 20 C
Temp3: 19 C
Temp4: 19 C
MOS_Temp: 20 C
Ambient_Temp: 20 C
Pack 2, Cycles: 136
Pack 2, V Pack: 53.29 V
Pack 2, SOH: 97.8 %
SOC: 80.57 %
Script running....
HA Discovery Disabled