hultenvp / solis-sensor

HomeAssistant integration for the SolisCloud PV Monitoring portal via SolisCloud API
Apache License 2.0
207 stars 42 forks source link

Precision of sensors #297

Closed hultenvp closed 1 year ago

hultenvp commented 1 year ago

I was seeing something similar with many of the total values only increasing in steps of 10 - which was then messing up some hourly/daily weekly meters. In this figure the TotalPanelPower is being pulled directly from my inverter using a Rest call, Solis Energy total is coming from this integration. I fixed this locally by editing soliscloud_api.py for the affected parameters and changing the number of decimals from 2 to 3 e.g. INVERTER_ENERGY_THIS_YEAR: ['eYear', float, 3],#changed from 2. I haven't proposed this a change as I wasn't sure if it would work for all cases e..g does total energy at higer levels start being reported as MWh - and then 6 dp would be needed to get 1 KWh resolution? image

Originally posted by @astronaut63 in https://github.com/hultenvp/solis-sensor/discussions/282#discussioncomment-6203073