fsaris / home-assistant-zonneplan-one

Unofficial Zonneplan integration for Home Assistant
https://github.com/fsaris/home-assistant-zonneplan-one
MIT License
104 stars 17 forks source link

Data is rounded #94

Closed arnoldpistorius closed 6 months ago

arnoldpistorius commented 7 months ago

Hi,

Since a few days I see some strange behaviour within the energy page of Home Assistant. It suddenly detected negative solar yield and since then it rounds all readings. In the graph below you see the negative reading and then all readings are rounded to 1.0:

image

Never saw a negative reading again, but I only see 1.0 readings now. I didn't do any updates of HA or this addon before it started to happen. I tried updating the addon, but still provides me only with 1.0 readings.

The sensor values just seem to be correct. I can imagine some faulty reading caused the HA database to be corrupted, but I know too little about it.

Do you have any idea what the issue can be?

rodavrow commented 7 months ago

For me this started in exactly the same way on the 16th. It makes me wonder if they have changed something with their API?

rddoove commented 7 months ago

I have the sam issues. All graph are rounded and outcome too Schermafbeelding 2024-01-19 om 18 24 18 jpeg

fsaris commented 7 months ago

Do you also see this in the stats of the sensor Zonneplan yield today?

@arnoldpistorius is your graph from the energy dashboard?

The values of the sensor have at least a 2 digit precision. The the 1.0 value seems odd.

arnoldpistorius commented 7 months ago

Yes my graph was from the energy dashboard.

Here's a screenshot of my zonneplan entities:

image

It seems the zonneplan total yield is rounded as well. Maybe that could be related..

image

fsaris commented 7 months ago

Maybe use yield today. That is updated more often and with more precision.

Total is currently not updated that often see https://github.com/fsaris/home-assistant-zonneplan-one/pull/91

rddoove commented 7 months ago

Indeed that did the trick. I used yield today in the energy dashboard

arnoldpistorius commented 7 months ago

The yield today sensor works indeed. However, my energy history is gone now ¯_(ツ)_/¯.

fsaris commented 6 months ago

found the data in the info we already fetch every 5 minutes. please test main version.

martijnrusschen commented 6 months ago

Yes this fixed the issue! Can confirm the last measured value is now updated every 5 min again. See screenshot below with the before/after.

Screenshot 2024-02-19 at 08 59 42@2x

fsaris commented 6 months ago

Fixed in https://github.com/fsaris/home-assistant-zonneplan-one/releases/tag/0.0.25