Add additional unique ID suffix to v2 quirks #303
Labels
enhancement
New feature or request
priority: medium
This should be addressed or looked at soon
quirks
Quirks related
We should provide an optional kwarg for a unique ID "suffix suffix" to this:
zha/zha/application/platforms/__init__.py
Lines 353 to 356 in d7e6544
Currently, v2 quirks can only add one entity (per platform) per attribute id. Otherwise, they silently fail to create at runtime due to duplicate IDs. This is an issue with buttons (writing different values) or (binary) sensors (parsing values differently).
We should validate quirks v2 metadata (in zha-quirks, zigpy, or zha?) to make sure there's an explicit warning about this.
If this happens, the conflicting quirk v2 entities should have a
uid_suffix
kwarg added. This would be an additional suffix to the attribute UID suffix already in ZHA.The text was updated successfully, but these errors were encountered: