bullitt186 / ha-stiebel-control

An ESPhome / Home Assistant configuration to monitor & configure Stiebel Eltron Heating Pumps via a CAN Interface
GNU General Public License v3.0
33 stars 6 forks source link

HA complains about unit_of_measurement #3

Open hawkeye80 opened 1 year ago

hawkeye80 commented 1 year ago

HA is complaining about several unit_of_measurement issues.

Logger: homeassistant.components.sensor Source: components/sensor/init.py:661 Integration: Sensor (documentation, issues) First occurred: 17:32:55 (32 occurrences) Last logged: 18:05:32 Entity sensor.stiebel_eltron_can_bus_lz_verd_2_heizbetrieb_manager (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('duration') it is using; expected one of ['min', 'h', 'ms', 's', 'd']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 Entity sensor.stiebel_eltron_can_bus_lz_verd_2_ww_betrieb_manager (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('duration') it is using; expected one of ['min', 'h', 'ms', 's', 'd']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 Entity sensor.stiebel_eltron_can_bus_lz_verd_1_2_ww_betrieb_manager (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('duration') it is using; expected one of ['min', 'h', 'ms', 's', 'd']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 Entity sensor.stiebel_eltron_can_bus_lz_verd_2_kuehlbetrieb_manager (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('duration') it is using; expected one of ['min', 'h', 'ms', 's', 'd']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22 Entity sensor.stiebel_eltron_can_bus_lz_verd_1_heizbetrieb_manager (<class 'homeassistant.components.esphome.sensor.EsphomeSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('duration') it is using; expected one of ['min', 'h', 'ms', 's', 'd']; Please update your configuration if your entity is manually configured, otherwise create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+esphome%22

One is a simple typo: https://github.com/bullitt186/ha-stiebel-control/blob/5976bbe6060a40c5fde2420573a78dceeb48a62b/heatingpump.yaml#L1118C29-L1118C29 unit_of_measurement: kWh

Not sure what the duration basis of the others is.

And by the way: great project