-
Notifications
You must be signed in to change notification settings - Fork 634
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
Smartplugv2_energy.yaml file missing class state #3000
Comments
Probably it would be better to remove the entity for that, and move it to an attribute, since the information reported in dp 17 is next to useless. |
On second thoughts, I think the best solution for smartplugs that have "Energy" sensors that are not suitable to be used with device |
Many smartplugs provide an "add_ele" dp which reports energy usage over such a short period that it is not usable as an energy sensor within HA. On some smartplugs this was initially exposed as a sensor entity in case it was useful in specific cases, but in general we now know it is not useful, so later configs have this as an attribute of the switch or power sensor instead. For those configs that have it as a separate entity, this change disables the entity by default, to avoid confusing users over its usefulness. The change also adds the measurement class so that if users enable it, they can get long term statistics. Issue #3000
Thanks, works fine now. |
Description
id 17 with the category of diagnostic is missing the class: measurement, as per other id's.
This has been happening for many months, and thought that others would report it, I have been adding the extra line and fixing this myself after each update, it's time to have this fixed properly, thanks.
Easy fix.
Steps to reproduce
No response
Expected behaviour
No response
Additional context
Confirmation
I am sure this is a bug or improvement, that is well enough described that it can be implemented.
This report is for tuya-local, not for localtuya.
If this is for a specific device, the device config is mentioned above, or diagnostics are included.
Log messages or diagnostics relevant to the issue are included.
This is not requesting addition of a new device.
The text was updated successfully, but these errors were encountered: