Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SofarModbusSensorEntityDescription scale wrong (plugin_sofar.py) #1226

Open
erichsch opened this issue Jan 18, 2025 · 2 comments · May be fixed by #1278
Open

SofarModbusSensorEntityDescription scale wrong (plugin_sofar.py) #1226

erichsch opened this issue Jan 18, 2025 · 2 comments · May be fixed by #1278

Comments

@erichsch
Copy link

3719
SofarModbusSensorEntityDescription(
name="Realtime Capacity",
key="realtime_capacity",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.BATTERY,
register=0x900E,
scale=0.1, (Must bee 1)
allowedtypes=BAT_BTS,

@cschlipf
Copy link
Contributor

cschlipf commented Mar 13, 2025

This scale has been removed already. But now the capacity is diplayed wrong:

Image

Why do you think it must be 1? Because of the modbus protocol description, where it seems to be wrong? With #1278 I am reverting this back to 0.1

@cschlipf
Copy link
Contributor

Weird, for other users it definitely seems to be 1. Looks like there are two versions.

@erichsch , what are the first digits of your serial and which HW version? In my case:

Hardware: V001
Seriennummer: SP2ES110...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants