Code Monkey home page Code Monkey logo

Comments (10)

DarwinsBuddy avatar DarwinsBuddy commented on June 21, 2024 1

Thanks @reox for mentioning me.
I did not have the time to follow up on issues yet.
I just looked over your conversation and I agree it has to be correlated with my latest commits.

Two things are possible:

  1. either the import of the data into our statistics sensor is wrong or
  2. the data returned by /Bewegungsdaten (which we changed to, due to some people not getting anything back from the former export endpoint) is somehow looking differently (and the smartmeter portal is compensating for that fact)

though I'd also first look into 1., but can probably earliest look into it on Sunday (if even).

@maia thank you so much for your time to report everything so clearly. it's really helpful. re: a service to trigger re-import that's possible I guess, though I'd be missing a thing right now to imagine it: @reox Is there a way (other than calling the purge entities service) to get rid of all the data of an entity programmatically managed by the recorder?

from wienernetzesmartmeter.

reox avatar reox commented on June 21, 2024

it should do a re-import of all historic data if you delete the integration and also delete the statistics, then re-install the integration.

from wienernetzesmartmeter.

maia avatar maia commented on June 21, 2024

Thanks. I was hoping for something easier and I was wondering if that is an issue related to the install – because if yes, then a fresh install won't really help.

from wienernetzesmartmeter.

maia avatar maia commented on June 21, 2024

I've now had a third day reporting a negative usage amount (which is impossible, as I do not generate energy), and then no new data since.

Bildschirmfoto 2024-02-03 um 17 40 49

I would like to suggest to implement a service that one can trigger to re-import the data? There must be an easier way than to uninstall, delete all sensor data manually, reboot, reinstall each time the API returns wrong data for a brief moment.

PS: This here seems to be related: #216 (comment)

from wienernetzesmartmeter.

maia avatar maia commented on June 21, 2024

I now had another day of -3.89kWh negative consumption, with only this value set for 12:00-13:00 and no other values for the other hours for the day. Interestingly this amount is exactly the sum of my hourly usage on the prior day (which at least displays proper values for each hour from 12:00 to 24:00).

from wienernetzesmartmeter.

reox avatar reox commented on June 21, 2024

This problem sounds like that the statistics sensor and the meter are reporting into the same statistics. If they do, the values cancel each other out and you see these negative records.

Do you still have the two sensors? One with _statistics appended and one without? Does you _statistics sensor has a value? It should say no value available, because otherwise the statistics module gets confused...

from wienernetzesmartmeter.

maia avatar maia commented on June 21, 2024

@reox I deactivated the two sensors of the place I've moved out a few years ago and kept the two sensors for the current place I live at. And I've used the _statistics sensor in the energy panel configuration:
Bildschirmfoto 2024-02-06 um 19 29 35
Bildschirmfoto 2024-02-06 um 19 30 34
Is that a wrong setup?

from wienernetzesmartmeter.

reox avatar reox commented on June 21, 2024

ah, thanks for the hint. This might be a regression of 821b76d

@DarwinsBuddy could that be the case? I think the problem is, if the sensor state is set to 0, the statistics module will interpret this as negative consumption.

from wienernetzesmartmeter.

reox avatar reox commented on June 21, 2024

@reox Is there a way (other than calling the purge entities service) to get rid of all the data of an entity programmatically managed by the recorder?

This is definitely possible via the GUI but I'm not sure if a API exists. I cannot find anything here: https://github.com/home-assistant/core/blob/dev/homeassistant/components/recorder/statistics.py

from wienernetzesmartmeter.

DarwinsBuddy avatar DarwinsBuddy commented on June 21, 2024

@reox Is there a way (other than calling the purge entities service) to get rid of all the data of an entity programmatically managed by the recorder?

This is definitely possible via the GUI but I'm not sure if a API exists. I cannot find anything here: https://github.com/home-assistant/core/blob/dev/homeassistant/components/recorder/statistics.py

Seems like there is a possibility to call services within a custom component, but there is no possibility in doing this "on upgrading the integration".

I could think of a way of enabling this via the config flow. Though it would not be much of a difference compared to what's described in the FAQs.

from wienernetzesmartmeter.

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.