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
71.75k stars 30k forks source link

Tuya energy metering stopped working #125509

Open greenamit opened 2 weeks ago

greenamit commented 2 weeks ago

The problem

I’m using the spm02-d2tw WIFI energy meter, based on Tuya via HA integration and Tuya IoT platfrom. Everything worked fine for months and since 2/9 it hasn’t pass the Total Energy count (kWh) to HA anymore. Only real-time voltage, current, and power values.

I tried to delete and add the device again and it doesn’t show the total energy. I tried to explore it with local-tuya and was able to see those variables.

What version of Home Assistant Core has the issue?

core-2024.9.1

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

tuya

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

greenamit commented 2 weeks ago

Screenshot 2024-09-08 at 0 14 23

home-assistant[bot] commented 2 weeks ago

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

Code owner commands Code owners of `tuya` 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 tuya` 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)


tuya documentation tuya source (message by IssueLinks)

heyflavio commented 2 weeks ago

+1!

I have the exact same issue, but started on Sept 4th.. Might be related to some Home Assistant (Core) update itself (?)

andersongulao commented 2 weeks ago

Same problem here

Leatherface75 commented 2 weeks ago

Restarting the addon works here after i have restarted Home-Assistant. If i don't do that it doesn't work here either and i had this issue before 2024.9 so it's not that.

greenamit commented 2 weeks ago

you mean 'reload' the tuya integration? I tried to reload it (Home Assistant was restarted) but nothing changes. Do you need to remove/add the meter after that?

Leatherface75 commented 2 weeks ago

you mean 'reload' the tuya integration? I tried to reload it (Home Assistant was restarted) but nothing changes. Do you need to remove/add the meter after that?

Maybe your issue is something else than my issue. I mean just reload the integration and then it works until next restart of Home-Assistant.

greenamit commented 1 week ago

any update?

andersongulao commented 5 days ago

Any update?

image