Open marcusb opened 2 months ago
UVI
is not listed as a valid unit here: (which is linked from esphome doc): https://www.home-assistant.io/integrations/sensor/#device-class
Solution: In your esphome config, set device_class
and unit
to valid values.
Ie setting device_class
to generic_number
and unit
to None
or empty would treat the values as pure numbers (Number
) without any quanity information.
Ok but this device (Apollo MTR-1) is built for HomeAssistant so it definitely works there. Perhaps it's sensible to default to Number
for unknown units?
It would also be helpful to only warn on this once, not every few seconds.
Yes the defaulting could be better. It was initially designed to make it easy to spot misconfiguration, but I guess it is too noisy ;)
I have a device with a LTR-390 ambient light and UV sensor, and the binding it emits this warning every few seconds:
I would guess it should be treated as a Number.