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
TP-Link energy monitoring values all wrong #12029
Comments
Hi @timdonovanuk , based on your description, I can't find any mistake. I see only a feature request to add the 7 and 30 days total and average values. The expected
Maybe I misunderstood the issue. Could you please clarify. Thx |
So
At the moment "lifetime consumption" means "lifetime of HA tracking the plug" rather than the actual value. The plug is the source of truth. So why datalog the value in HA and use that to compute total_energy_kwh when the correct value could just be pulled direct from the plug? If HA is down or the plug is not connected to HA for whatever reason, the total_energy_kwh value will always be incorrect. |
Maybe I'm wrong, but the ´total_energy_kwh´ is collected from the plug. See here and is not calculated based on the history in HA. |
Odd - so as mentioned in my first post, why in my example does the plug show |
@timdonovanuk Have you checked the numbers reported in HA against what is reported by May be worth checking with @rytilahti too as he is an author of that library. |
the consumption of 33.3 on the screenshot is for the last 30 days only and not the total consumption. |
Thanks @DanNixon I'll have a go with that and report back! @ReneNulschDE |
You have to check what does |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍 |
Home Assistant release (
hass --version
):0.62.0
Python release (
python3 --version
):Python 3.5.3
Component/platform:
platform: tplink
Description of problem:
The values the HA tplink component reports do not match up with the actual values as reported by the tplink app (Kasa).
Here is what the app reports:
Here is what HA reports:
current_power_w: 0.00 v
voltage: 250.2
total_energy_kwh: 1.880 (what is this value supposed to be, as it doesn't match any even closely)
today_energy_kwh: 0.214
current_a: 0.02
expected
I'd expect to see HA values that reflect the same (or at least close) as above, such as:
current_power_w: 0.00 v
voltage: 250.2
current_a: 0.02
30_day_total_energy_kwh: 33.3
7_day_total_energy_kwh: 16.1
1_day_total_energy_kwh: 0.21
30_day_average_energy_kwh: 1.11
7_day_average_energy_kwh: 16.1
Instead the values don't even match closely.
@DanNixon is this working fine for you?
The text was updated successfully, but these errors were encountered: