Skip to content

EngineeringUnits and ApplicationType shall not be mandatory for AnalogInput #614

@tomaszduda23

Description

@tomaszduda23

esphome/esphome#12187 adds AnalogInput to esphome. It works fine on z2m. For zha it seems that EngineeringUnits or ApplicationType is required

# The units are determined by one of these
if (
self._cluster_handler.application_type is None
and self._cluster_handler.engineering_units is None
):
return False

Those could be mapped to unit_of_measurement and device_class from esphome. Both are optional though.
One possibility would be to make those mandatory in esphome.
Zigbee spec defines EngineeringUnits or ApplicationType as optional. @prairiesnpr any reason to make it mandatory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions