Tuya energy metering stopped working
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
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 closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign tuyaRemoves the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-informationRemove 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)
+1!
I have the exact same issue, but started on Sept 4th.. Might be related to some Home Assistant (Core) update itself (?)
Same problem here
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.
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?
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.
any update?
Any update?
is there a workaround or way to fix it? an ETA?
Same problem here with SPM01
Same problem here with SPM01
Have you tried my suggestion above? Plugin doesn't load as it should on Home-Assistant startup so you need to reload it manually.
Yes, i reloaded the tuya Integration but the total energy still unavailable
me too. Didn't solve the problem. Who should fix it, Tuya or HA?
No fix yet? Is there a workaround to get Total Energy count (kWh)?
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 has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.