Closed yuvalabou closed 2 years ago
tuya documentation tuya source (message by IssueLinks)
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!
(message by CodeOwnersMention)
add_ele
is an incremental notification for the use or larger chunks of energy and is not a consistent value. Additionally, the Tuya API does not provide the total/current/past, or any other energy value that is usable.
At this point, this is not implementable for Home Assistant; as the data is simply not provided.
As a workaround, you can use Integration - Riemann sum integral to calculate the energy usage based on the power usage that is provided.
Thank you frenck, what a bummer. Hope tuya will provide those values natively soon.
The problem
Currently the switch sensors does not provide energy metering, However those readings are present on the app as well as in diagnostics data ("add_ele" key which is currently at 0) but still missing from the sensors provided by the integration.
What version of Home Assistant Core has the issue?
2022.05
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
Tuya
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tuya/
Diagnostics information
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information