bohdan-s / hassio-repository

Home Assistant Add-ons
GNU General Public License v3.0
21 stars 19 forks source link

It accept 0 as value from time to time #3

Open Prahlus opened 1 year ago

Prahlus commented 1 year ago

Hi, it works great just one small issue. Sometimes a 0 sneaks in the middle of the day. Possibly a float conversation on an unavailable data or something else.

Is it possible to only allow 0 kwh as value at past midnight as a workaround. Like at 01:00

The 0s causes the energy tab to See it as a new increase. Causes the Stat to increase x2

My other option is to start some filtering like only allowing the value if its more than previous unless time is after midnigt, but I already have so much history in that entity. So it would be awesome to get a fix instead.

Screenshot_20230901_233451_Home Assistant

Prahlus commented 1 year ago

Any chance that we can take a look at this ? @bohdan-s

bohdan-s commented 1 year ago

Yup. Sorry. This is a know bug. I hard coded the wrong registers. I have a new version in the works that fixes this. But I’ve been caught up in real world and haven’t had time to release sorry.

Prahlus commented 1 year ago

It looks like the right register (daily generation) to me however it sometime ends up registering a 0 kwh during the day. When in time do you think you can bless us with an update?

Screenshot_20230910_063935_Home Assistant

Prahlus commented 1 year ago

Any update on this? @bohdan-s?