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?
esphome/esphome#12187 adds AnalogInput to esphome. It works fine on z2m. For zha it seems that EngineeringUnits or ApplicationType is required
zha/zha/application/platforms/sensor/__init__.py
Lines 624 to 629 in cf2133e
Those could be mapped to
unit_of_measurementanddevice_classfrom 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?