-
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
Energy card #28
Comments
Hello @triggertrade |
Hi, I had the same problem. I tried different things, it always came back. I now tried setting it to start and restarting HA, now the history in the energy dashboard is correct. (I did not find negative values in the outliers) I will report back if I will have any additional issues. Do you need more information? |
Hello @patrickbusch |
Hi @Delmael, I can't see an update to a new version yet. I attached a view from database for one of the total consumption sensors. At one point it just shows a number that is way lower than the numbers before that. This is after the steps I mentioned in my earlier post. ![]() ![]() Hope this helps |
There is a v2.1.1 available, you should see in HACS to download it, restart, go to the option of your config entry and set it to "start". The problem come from the underlaying methods to generate stats and the reset of a sensor |
Thanks, I can see the 2.1.1 now. Installed it, Restarted HA -> seeing negative values. Set config to start -> seeing negative values on only one of my five entities. Set config to start again -> still seeing negative values on one of my five entities. Restart HA -> No negative values for now. I will report back in a few hours, if it works now. |
Hum, is this device a pmo (get only energy consumption, not a heater) ? Could you share the diagnostics of config entry please ? |
all my devices are heaters. I attached the diagnostics. After leaving it running for an hour, it corrected the entry above. I will keep an eye on it. |
Could you also share the diagnostics of the config entry? (download via the setup page of the integration) maybe we can find something we have in common |
home-assistant_smartbox_2025-02-24T15-08-13.694Z.log i also added my log here. |
Currently, I can see that I have negative values right after the change of the hour. I can't see why. (Has lower values in the sum of the statistics table). |
When I change setup to start then reboot HA it returns positive value but on refresh turns negative value again |
I dont know what else to try |
Let's me explain how it works 😄 Currently, HA go get the new value of the sensor each 15 secondes (i think). And then, each 5 minutes it runs a job to compute a short statistics. Every hour it compute the hourly statistics. To "bypass" this, every 15 minutes I get the last 7 days of consumption and update/insert it in the statistics. I should maybe try to deactivate the recurrent poll of value and push it by myself 🤔 |
Does anyone of you can share his home with this email [email protected] or [email protected] ? |
Sure i’ll share no problem my HA has only got the Heaters enabled if you want to play with it send it over now |
as a test i've edited the sensor.py will leave it on test and keep you updated |
I can't access to your ha, and i was talking about your smartbox home account :) |
Sure no problem Will share now its HJM |
My first try was not the good one. |
Cannot share mine, unfortunately. I think your explanation on how it works also explains, why the cost is not updated correctly. Before your update to 2.1.0 I used an old version and did the calculations myself, they were fine, not perfect, but close enough - by using a helper with on Integral. I am just trying to understand how the calculation from Home Assistant itself works in detail. |
Thanks for the investiguation. If i can solved the first negative issue on the short term statistics it can resolved all this thread |
I think if the short terms get solved it may also solve the long terms. I'll wait with openening an issue with the cost calculation as it may be depending on this issue here. |
I'm trying different way of updating the short terms, have to wait every start of hour to see the result 😅 |
I've overcam the issue as a temp fix using the Configuration YAML :
then i created a helper {% set value = states('sensor.bureau_heater_energy |
I didn't know this options was existing. Could you share your home with [email protected] ? I will have a look on it. |
Hi everyone |
I know how to solve my problem. I am going to put the meter clamp in the direction of the current, since it is placed in reverse direction, and then deactivates the change of sign in the manufacturer's app, and all the data included current and historical power of consumption should be positive in the integration and in the manufacturer's app. |
Hi, I'm having issues with the energy card sometimes it shows me negative values others it works is there a work a round on this situation ?
The text was updated successfully, but these errors were encountered: