make-all / tuya-local

Local support for Tuya devices in Home Assistant
MIT License
1.28k stars 505 forks source link

Allow feature flags to indicate availability of entities and values in lists. #2337

Open make-all opened 6 days ago

make-all commented 6 days ago

Some devices use feature flag dps to indicate the availability of features, so a single tuya firmware can cover a number of device variants.

These feature flags can either be booleans, or some kind of encoded string (hex, binary - which can be handled as hex missing a lot of bits, base64) or possibly a bitfield, so any interpretation of them should be after decoding.

Design idea:

make-all commented 5 days ago

Implemented, but need to adjust some configs to use it, and write tests based on that.