Provide more attributes from devices. #683
oleh-shulha
started this conversation in
Ideas
Replies: 1 comment
-
I would love this too, I have a motion and luminance sensor but HA only shows the Motion attribute |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
Guys, firstly i would like to express my deepest gratitude for the great integration! Thank you very much, you awesome!
Now closer to the point and my idea. I have several devices that provide attributes that do not exist in HA entity.
Ex. wifi heater
And this is devise state from tuya API:
As you can see, from API i receive 'work_state' property, which represent current heater state: 'heat' if it works and heat air, and 'warm' if the air temperature has reached the set and heater idle.
Or another example:
Tuya WiFi smart plug contains power meter, but not exists in HA entity state attributes:
So, in order to improve automation scripts, it would be great to provide this data so that sensors or other entities can be targeted at them.
In test purpose, i try to extend base.py TuyaEntity by those code:
And now, my entities expose all required data to HA:
Actually the question, do you think it would be useful in official Tuya integration? Of course, well-formed and tested code, not what I showed in the block above.
I would like to have this in the master branch so that I don't support it separately in my fork.
I would be glad to hear your opinion, thank you!
Beta Was this translation helpful? Give feedback.
All reactions