Skip to content

[ZHA] Quirks v2 switch support for writing bitmaps #68

@TheJulianJES

Description

@TheJulianJES

Some quirks want to expose multiple switch entities for setting different bits of a bitmap.
For that, we might be able to allow quirks v2 switch entities to provide a function that takes both the new switch state and existing attribute state to get the value ZHA should write. We already have something similar for reading values: attribute_converter.

See my review comment in this PR for background:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovements of existing functionality

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions