-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] sensor.eforsyning_energy_used suddely jumped on 31/12-2022 #48
Comments
same goes for the water used & exp used. |
The integration only formats data from the eForsyning API in the format Home Assistant likes, and zeroes out data which are verifiable wrong, like cooling or return temperature of 85 or more degrees which is caused by read errors on the meter. There are different sensors in play, some show daily use and expected use, and some the total used and expected used. I hope the names are clear enough for this difference. I my web-eForsyning I can see non totals data from 2023 on the year and month views, but the daily view does show something. |
just checked my meter. 25834 so from 31/12 until today I've used 193 Kwh -which is 27Kwh pr. day average these are the 2 charts that are making me question the numbers.. water and kwh I wonder if it's ""just"" unexpected usage.. I wish I could see data from january already :( |
Yes, that would raise an eyebrow or two :-) Stay tuned, maybe I can fish out this so January can get to look okay :-) |
Okay, the trouble is that there is this parameter in the API call which designates which year is relevant. It is important because some have years from July to June, others from October to September, and others from January to December (like me). Those with skewed years probably won't see any of this weirdness. If I get data using the marker I can get from the API I cannot get January data, and monthly and yearly data is "empty". If I use current year, those with skewed years will get in trouble. |
Would it be an option to just put the start of year as a config patan for the user to input? |
If that would make things easier? |
I have asked the developers of eForsyning and it is actually something which is controlled by the local heating company. They have to update a year marker which can even be automated on their side. I have made a workaround which tries to bridge the gap by optimistically getting the new year data and if that is valid, just go with that during the first month of the year. |
Data fetched using API year data does not match current year.
Try pre-release v1.1.5 It seems to do the job for me at least. |
Hmm |
Yes. With this change data is opportunistically fetched during January for the correct year to compensate for a value the heating company needs to update. This only works out for some sensors as others are updated from yearly data or budget prognosis. It also means that before all data from 2022 were fetched, the upper picture, to the new data from the current year to be fetched - the history resets every year. In any case it is impossible to show data which simply does not exist. My own local deliverer wrote me back that accumulated data will not appear until February, meaning some sensors may simply work off 2022 numbers, meaning registering a constant at best. My used vs. expected seems okay. I have not seen a jump like from 84 kWh to 24 kWh |
I've looked through my debug log and found something interesting. It looks like they have changed the api. According to this plugin, the url to my data has always been: https://apiapp.dff-edb.dk/aabenraa/api/getebrugerinfo?id=536f0e012e19bb12b748fb092dXXXXXX But when I open the homepage and look at the data, it fetch the following url (where also all the 2023 data is included) The same goes for: |
hi
the sensor for energy used suddenly jumped from 38 to 106 in my integration.
I cannot figure out where something went wrong.
looking in the eForsyning App or website I do not see this number anywhere nor can I see which datapoint would supply this number.
The exp sensor shows sensor.eforsyning_energy_exp_used shows 57.
I'd like to find the issue but not sure how to proceed.. please advice.
The text was updated successfully, but these errors were encountered: