-
Notifications
You must be signed in to change notification settings - Fork 27
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 consumption not shown correctly #125
Comments
Ah - this is the first time I have seen a value above 0 for |
This had to be fixed in the upstream library: oyvindwe/connectlife#17 |
Fixed in version 0.18.1 |
Perfect! I tested it and works good. Thanks for the fast fix and for the whole work you did in this integration. If you agree, later I'll create a PR to update data dictionary and set daily_energy_kwh state_class to total_increasing, kWh |
Ah, yes, this should be |
@oyvindwe Sure, I can do it. Do you think is better to update all the data_dictionaries containing |
@enrico1036 That is a fair point. I suggest you make a PR with all the changes for 009-100 first.
|
I'm using device 009-100 and I want to know device's daily energy consumption. I run dump and I can see the same value reported by ConnectLife App. This is the dump: 009-100.json
The problem is when the consumption is below 1. In home assistant I can only view the integer part of the number. Not the decimals. Since this is a daily consumption it will reset every day resulting to be always 0 or sometimes 1 at the end of the day.
I tried to scroll the source code but I cannot find an explicit cast to integer. How can this be fixed? I can create the pull request and test on my own but I need help if you can point me to the right place in source code.
Thanks
The text was updated successfully, but these errors were encountered: