home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.99k stars 29.07k forks source link

Wrong energy consumption of HS110(EU) #121255

Open YoshiiPlayzz opened 2 weeks ago

YoshiiPlayzz commented 2 weeks ago

The problem

When I went through the Energy Dashboard, I noticed that the power consumption of the socket in a day is extremely high. Bild_2024-07-04_225541994 That's why I went back in history and noticed that it had happened a few times before: image So I also checked the ernergy usage in the Kasa app and there it showed only 93,2kWh for the last 30 days! In the energy dashboard I used the sensor.device_name_energy entity. Also I saw all peaks in the entity sensor.device_name_today_consumption image

What version of Home Assistant Core has the issue?

2024.7.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

TP-Link

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tplink

Diagnostics information

config_entry-tplink.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 weeks ago

Hey there @rytilahti, @bdraco, @sdb9696, mind taking a look at this issue as it has been labeled with an integration (tplink) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tplink` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tplink` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tplink documentation tplink source (message by IssueLinks)

sdb9696 commented 2 days ago

It looks like the affected days are all prior to the release date of 2024.7. If this issue recurs for days since 3rd July please reopen.

YoshiiPlayzz commented 2 days ago

The issue recured at the 5, 10 and 11th of July. On the 5th the peak was at 134.130kWh. The peak on the 10th of July was first 90kWh around midnight and then -160kWh at 7:35pm... image On the same day around midnight there was again a peak.. image

sdb9696 commented 2 days ago

What does the app say for the same days? Is it working ok on other days? i.e. App == HA?

YoshiiPlayzz commented 2 days ago

In the Home Assistant App the values are the same.

sdb9696 commented 2 days ago

I mean the kasa/tapo app

YoshiiPlayzz commented 2 days ago

There they are lower. Just around 13kWh for the last 7 days.

sdb9696 commented 2 days ago

Do they ever match up? Were the devices on during the spikes and off when they match up?

YoshiiPlayzz commented 1 day ago

Yesterday and today it kinda matched up. There was only a difference of 0.3kWh. Also at the spikes the switch was off. Another thing that I recogized is that I used "Computer Joshua energy" from Powercalc integration at the energy dashboard, which adds idle power. So the displayed values are off by a bit. I disabled it now but I don't think that caused the problem because the indivual entity hasn't gone up at the time of the peak. image