Skip to content

Allow quirks v2 sensors/platforms to provide a lambda for parsing state #305

Closed
@TheJulianJES

Description

@TheJulianJES

We should consider providing a way that lets v2 quirks provide a lambda to allow ZHA to parse ZCL attribute state to a different HA state with the parsing being in the v2 quirk.

This should be implemented for at least binary sensors and normal/analog sensors.

We may also want to consider the other platforms.
Switch currently has a special force_inverted, invert_attribute_name implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquirksQuirks related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions