sfstar / hass-victron

Integration for Home Assistant to fetch data from the victron gx device via modbusTCP
Apache License 2.0
185 stars 29 forks source link

Measurement precision on Tank capacity entity #38

Open Next9999 opened 1 year ago

Next9999 commented 1 year ago

PLease mofidy the Unit of measure to 3 digit or more

com.victronenergy.tank Tank capacity 3001 uint32 10000 0 to 429496.7296

image

sfstar commented 1 year ago

Hello and thank you for opening this issue. Both the remaining and the capacity registers have the same decoding scheme definition (as can be seen in the screenshot).

Screenshot 2023-02-01 at 18 44 15

Since the remaining sensor does report values with 3 digits after the . it seems that the capacity is 0.100 and it is being shorted by ha to 0.1. Could you confirm if the capacity is set to 0.1m3 in the gx device configuration?

In order for me to further troubleshoot this I will need to setup a test venus OS device. However, currently I do not have a lot of time available so this will have to wait until the end of februari / beginning of march

Next9999 commented 1 year ago

voila...

image

sfstar commented 8 months ago

I believe this might be fixed by changing the display precision setting in home assistant. Since it defaults to displaying 1 number after the decimal. Changing this to a precision of 3 numbers after the decimal should provide you with what you are looking for.