-
Notifications
You must be signed in to change notification settings - Fork 38
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
Homekit sensors going backwards, daily #71
Comments
The same was reported here: I'm not sure what happens and can't debug myself because I don't have HomeKit. Maybe we can work around it bij taking the previous value if it drops or something? |
This would solve the original problem, but it would just break mine, since mine seams to drop, but not recover |
@jay-oswald is your increasing total matching the value you're getting in SEMS/total production on the inverter itself? Mine is (except for the nightly decrease/increase) |
@gemmaker I'm not sure, the data does not seam to match. Its almost as if the data is total energy usage, then every night at midnight the solar generation is removed to drop down to import, instead of total. Not sure why it would do that, but its the only thing that explains it |
Hello, Seems like you are using Powerful and GoodWe like myself. Could you tell me how you integrated the Goodwe inverter and HomeKit energy consumption to HA and what entities you are using to get the energy dashboard up and running? I am really struggling here and any help would be greatly appreciated. |
Couple more things: But they seem to have the same issue as you guys had. I think that the values going backwards every day is most likely a quirk of the SEMS API. If we were to look at the SEMS API in the middle of the night I think we would see the issue. Here's what I added to configuration.yaml:
|
Hi Jay, Yeah this is why I only brought total power in as a separate attribute and didn't replace anything existing with it. |
what I've found. the daily totals look fine. they reset at 12:02am. |
Hey @philipbrennan I've got a ticket open with GoodWe at the moment about it, but pretty sure there's been lots of people create tickets about it and they haven't done anything. I'm mainly doing it so that GoodWe can admit it dosen't work and Im going to see if I can get my money back and replace the HomeKit with an IoTaWatt instead. For me I don't mind much about starting from 0 today, as far as im concerned all the old data I've got is useless anyway. So your template sensors worked properly overnight? It didnt drop and bounce back overnight? If you look at my graph above it takes till about 9am to get back above where the drop was, those spikes throughout the morning all seam to be recovering the loss at midnight, I don't have anything running overnight, not even hot water or anything, just my 200-250w baseload For my node red flow I call the main get endpoint Ther dosen't seam to be any alternative to the |
so what I've done is changed:
to this:
I didn't get the adjustments quite right so there is still a small bump for today ( I don't know how to reset sensors completely without recreating them completely ). But I think it will look fine over next few days. |
So I've done the changeover, actually its fine for export since that hadn't start moving yet today :) import, small bump from the switchover, the dip is from the usual problem last night. hopefully all good from now on Question for @ once this is working, I'd like to PR in my sensor templates. I'll change the total generation to this approach as well as it is a direct replacement into the current structure and would work for multiple inverters, and add comments explaining how to do this part of it. |
so this approach doesn't quite work. On further reading, total_increasing tolerates 10% fluctuations in the value.. and since I applied an offset of ~ 200 units , the nightly reset is not being interpreted as a reset. I'll need some better logic to only apply the offset when outside of the nightly reset range. Will update when I have it working. |
I think for this to work I'd need a bit more logic, to build a template sensor which smoothly increases in output over time, without any resets or spikes. I'm sure others have come across this so I'll take a broader look. |
Mine still has the spikes. I think they are fairly severe bugs in goodwe code.. they can't figure out how to keep a rolling total without spikes :( |
Seems nuts you can't even report on the homekit data from their portal. I posted this in the other issue and it's definitely calmed things down with import export. #73 (comment) Export is now sweet as if I check if the inverter's doing anything. Only issue now is my template logic is still allowing that second drop for some reason. |
Thanks to @Denifia this issue is fixed! Day 1 after new version- one reversal spike after midnight: |
I'm using two integrations for separate Goodwe components. I have a Goodwe Inverter, and a Goodwe Homekit (which is correctly showing in SEMS - which means with the PV output, export to grid, and grid input, the difference is how household load is derived).
The values from my inverter SEMS are working, and showing in the HA energy page correctly:
However the values for both PV export, and Grid Import, while generally tracking correctly both go 'backwards' daily, then correct themselves. This doesn't appears in the SEMS itself. The jumps backwards (which relates directly) to the previous day's total) results in crazy graphs and totals within the HA energy page, every day.
The text was updated successfully, but these errors were encountered: