Question: Overwrite MACCapabilityFlags

Hello,

I have a question, is it possible to over write the MACCapabilityFlags with a device spezific quirk?
If yes, is there some example availabe?

Greetings & Thanks
Alex

Best is if you post/ask such question as a new issue(s) to the zha-device-handlers repository on GitHub:

ZHA Device Handlers repository is otherwise primarly used for quirks bugs and feature requests, see:

PS: Also be aware ZHA developers are working on a new ZHA-Quirks V2 architectural:

1 Like

Thank you very much.

I delved into the Custom Quirks of ZHA and wrote my own custom quirk.

This line of code in my Quirk solves the problem.

self.node_desc.mac_capability_flags &= ~0b00000100  # Clear the mains powered bit

@AlexW75 Nice but please submit the new quirk code as either a pull request or issue (device request) to the ZHA Device Handlers repository on GitHub → GitHub - zigpy/zha-device-handlers: ZHA device handlers bridge the functionality gap created when manufacturers deviate from the ZCL specification, handling deviations and exceptions by parsing custom messages to and from Zigbee devices.

See GitHub guides about creating pull requests: