question

gprguy avatar image
gprguy asked

Modbus Register - Battery Time to go (system) - not seconds?

Hello - I am integrating my Cerbo GX with Home Assistant via Modbus-TCP. Overall it works very well, pulling data from my BMV-712 and my MPPT.

I have version 2.60 of the modbus-TCP spreadsheet, and it lists Battery Time to Go (System), address 846 as being in seconds. This does not appear to be the case, when I did the conversion to days/hours/minutes in Home Assistant the time to go number was much lower than what is being seen on the BMV's display. After some trial and error I found that with the BMV maxed out at 240.0 hours the register showed 8640. So 1 unit on the register equals 1/36th of an hour apparently. Re-doing my conversions based on that works great and the BMV and Home Assistant are now in lockstep.

I am not sure what the reasoning behind 1/36th of an hour being a unit is, but perhaps the spreadsheet should be updated.

Thanks - loving the products overall. I only wish my Orion Tr DC-DC had a ve.direct port on it so I could monitor that too.

Modbus TCP
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

2 Answers
elvis avatar image
elvis answered ·

Scale Factor is listed as .01

Did you divide by .01?


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

aentrop avatar image
aentrop answered ·

I too was stumped by the number I was getting in home assistant from modbus. Thanks for helping me solve this mystery!

In my case I am getting "3240" from modbus register, and the victron app says I have 3 days 18 hours remaining.

3d 18h =. 90 hours

90*60*60 = 324000 seconds, but as /u/elvis mentioned the scale factor is .01 = 3240!

3240 / 36 = 90 hours = 3d 18h = 324,000s * .01 / 60 / 60

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Related Resources