Coder Social home page Coder Social logo

Comments (12)

tijsverkoyen avatar tijsverkoyen commented on June 6, 2024 1

The check for invalid data is only in place for the total lifetime energy.

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on June 6, 2024 1

I think we all should report this to Huawei. You can mail them at [email protected]

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on June 6, 2024

Just to be 100% sure: are you using the latest version of the integration?

There is already some code in place to prevent this. The root cause is Huawei sending wrong data.

Normally the value should only be updated if the plant is producing.

Could you check which entity you are using? Because I suspect you are using?

from homeassistant-fusionsolar.

hufkens avatar hufkens commented on June 6, 2024

Thanks for the fast reply.
I'm using the 'sensor.fusionsolar_station_total_current_day_energy' and I installed the Integration via HACS. Not sure where I can see what version I am running?

from homeassistant-fusionsolar.

hufkens avatar hufkens commented on June 6, 2024

Sometimes the Solar in the Energy Dashboard drops below Zero. So indeed it feels like the API sends incorrect data.
Screenshot 2023-03-23 at 20 59 24

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on June 6, 2024

If you have installed it through HACS and there are no updates available then you are running the latest version.

from homeassistant-fusionsolar.

hufkens avatar hufkens commented on June 6, 2024

But adding that to the Energy Dashboard also does not show correct data. Before I used the Inverters Daily Energy, but when you have batteries it is not the Solar Energy alone. So I looked like the total_current_day_energy was the one I needed.

Thanks for the help, but as long as Huawei sends incorrect data it will not be solved I guess. Would be nice if that check could also be added to the total_current_day_energy

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on June 6, 2024

The problem is that it is not that easy to check.

At the moment the check for the lifetime value is that it is only updated if the plant is producing.

We can't do this for the daily energy as the data would otherwise be moved over to the next day.
Returning 0 while not producing is also not an option, because Home Assistant will see this as a reset of the data.

I don't have a clue on how to check if the data is invalid as there is no real logic to it.

from homeassistant-fusionsolar.

hufkens avatar hufkens commented on June 6, 2024

Thanks. I understand.

from homeassistant-fusionsolar.

danielhunt avatar danielhunt commented on June 6, 2024

I am seeing similar behaviour with this integration - every night between 2300-0000 there is a large spike
image

When I look at the underlying data in Grafana, I see there is a burst of (what appears to be invalid) data between 2300 and 0000, every 10 minutes, starting at 23:12. (there is a zero data tick @ 23:12, followed by 5 ticks of bad data before it is zero again at 00:12)
image

from homeassistant-fusionsolar.

danielhunt avatar danielhunt commented on June 6, 2024

Did anyone get a response from Huawei on this?

In the meantime, is it easy to get this addon to ignore any solar-panel generation data coming from the inverter between 11pm and 1am as a precaution?

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on June 6, 2024

I did not reported it, as I don't get the invalid data. Did you reported it, and got a response?

As the timeframe of "invalid" data will not be the same for everyone, and there is no easy way to check if the data is invalid I don't see a generic work around.

A possible way could be:

  1. Add a switch entity "Disable fetching data" in this integration
  2. In the UpdateCoordinator check for the state of this switch
  3. Use a schedule to turn on/off the "Disable fetching data" switch.

from homeassistant-fusionsolar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.