Comments (10)
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:
- either the import of the data into our statistics sensor is wrong or
- 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.
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.
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.
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.
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.
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.
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.
@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:
Is that a wrong setup?
from wienernetzesmartmeter.
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 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.
@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)
- no data showing up after (version 1.43) KeyError: "Sum" in Logfile HOT 3
- Einspeisezählpunkt wird gefunden aber keine Daten HOT 1
- after update 1.4.3 statistic entity is not working HOT 2
- Error on device update HOT 2
- since middle of January statistic entities are not working HOT 7
- Statistics Import Stops Working after Renaming Statistics Entity HOT 2
- Energy Dashboard shows feeding without actually feeding in place HOT 31
- Problem with 29.02. HOT 2
- Subsequent update to statistics after initial import is not working HOT 5
- wnsm: Error on device update HOT 7
- No statistics are imported the day after the consumtion HOT 1
- Subsequent update to statistics after initial import is still not working HOT 10
- Error on wnsm/live_sensor.py:68 HOT 14
- two Smartmeters under the same contract. consumption and production HOT 1
- HomeAssistantType was used from wnsm, this is a deprecated alias which will be removed in HA Core 2025.5 HOT 1
- Keine Verbindung seit neuem Einspeisepunkt HOT 14
- ig
- Change password for integration HOT 2
- Unnamed error in wnsm/live_sensor.py:68 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wienernetzesmartmeter.