localtuya
localtuya copied to clipboard
Label DPs with cloud API descriptions if available
The Tuya cloud Get Device Specification Attribute API provides a name for most DPs for most devices. When configuring a device, include that name if it's available.
Great!
It could be quite useful
Not sure if it's working on edit; tested via merging your branch into https://github.com/CloCkWeRX/localtuya-experimental
When I edit an existing device; I see:
No relevant failures in the logs, so either it's not being invoked via edit or I've done something wrong when deploying. Fairly confident these DPs would be labelled
Not sure if it's working on edit
The DP strings (previously including values, and now including names) are cached for existing devices -- grep for CONF_DPS_STRINGS. I don't know of an existing way to invalidate this cache other than manually removing the dps_strings values from core.config_entries.
Alright, much happier now:
This makes life significantly easier! Potentially could self configure some DPs if the naming is 1:1 automagically; or detect platform.
@rospogrigio after you land the stability fixes, I feel like this one is a good feature to include. Tested locally; seems happy.
Wish to have this merged please
I logged in just to say this would have helped me a lot. Any reviewer able to merge it?
No only I can merge it but I am having a super tough period, I'll do it as soon as I can. Thank you for your understanding, bye
Probably it's a good idea to allow other to chime into the project? With nearly 1000 issues and 100 pull requests there is a lot of demand and a lot of will to collaborate, right?
@rospogrigio what's the missing ci for merging?