You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The blind reports 5 tuya data points in set_data_response and doesn't seem like a good match for the existing tuya cover quirks. (The existing quirks I tried were able to command it to move, but don't decode it's status/position.)
I've made good progress writing a custom quirk (it all looks like it works) but have few questions:
Any idea why battery remaining doesn't work? I can see in the log my quirk is updating the power cluster attribute, but home assistant shows unknown. Resolved: I didn't have a power cluster derived from LocalDataCluster
Is there a WindowCovering cluster attribute that tracks motor status? (I can't see one, but it seems weird there's isn't one to track opening/closing. My draft quirk creates a new one to allow me to use dp_to_attribute mappings to send an open/close command.)
Is this the right way to map from commands to a send DPs to the TUYA device. I copied this from some of the existing TuyaMCUCluster-based examples (e.g. TuyaRCBOMetering.) It seems a bit abstract to override the command method just to map to an attribute, especially when no standard attribute exists. Resolved: seems like the accepted way to do it.
Any idea why the _CONSTANT_ATTRIBUTES don't work? (I was hoping these might fix the battery and show the window cover type, but HA doesn't show values in the entity nor when reading the zigbee attributes. Resolved: same or similar as battery problem.
Do I need to consider using TuyaNoBindPowerConfigurationCluster or the tuya spell variants? (How would I know if I do?) Resolved: appears to work fine without it.
Does this need to be rewritten for quirks v2? I've read what I can find about v2, but from what I can tell v2 wouldn't reduce code or simplify this quirk much.
Solution description
Fix battery percent in my custom quirk
New quirk integrated in zha without needing a custom one.
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 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.
Problem description
Hi all, I'd like support for this TUYA roller blind, sold here https://www.zemismart.com/products/zm25r3
The blind reports 5 tuya data points in set_data_response and doesn't seem like a good match for the existing tuya cover quirks. (The existing quirks I tried were able to command it to move, but don't decode it's status/position.)
I've made good progress writing a custom quirk (it all looks like it works) but have few questions:
Any idea why battery remaining doesn't work? I can see in the log my quirk is updating the power cluster attribute, but home assistant shows unknown. Resolved: I didn't have a power cluster derived from LocalDataClusterIs this the right way to map from commands to a send DPs to the TUYA device. I copied this from some of the existing TuyaMCUCluster-based examples (e.g. TuyaRCBOMetering.) It seems a bit abstract to override the command method just to map to an attribute, especially when no standard attribute exists. Resolved: seems like the accepted way to do it.Any idea why the _CONSTANT_ATTRIBUTES don't work? (I was hoping these might fix the battery and show the window cover type, but HA doesn't show values in the entity nor when reading the zigbee attributes. Resolved: same or similar as battery problem.Do I need to consider using TuyaNoBindPowerConfigurationCluster or the tuya spell variants? (How would I know if I do?) Resolved: appears to work fine without it.Solution description
Fix battery percent in my custom quirk
New quirk integrated in zha without needing a custom one.
Screenshots/Video
Screenshots/Video
[Paste/upload your media here]
Device signature
Device signature
Diagnostic information
Diagnostic information
Logs
Logs
When using one of the existing TUYA cover quirks:
With my custom quirk:
Custom quirk
Custom quirk
Additional information
No response
The text was updated successfully, but these errors were encountered: