r-renato / ha-climacell-weather

Climacell weather provider integration is a custom component for Home Assistant. The climacell platform uses the Climacell API as a source for meteorological data for your location.
MIT License
46 stars 10 forks source link

[Bug] Fire Index and Air Quality Index do not get recognized as numerical sensors in HA #14

Closed ajayjohn closed 3 years ago

ajayjohn commented 4 years ago

As you can see in the screenshots, though the value for these sensors is a float value, HA seems to treat them like text values. Consequently, HA doesn't show any kind of history graph for these values either. I read somewhere that this happens if you define a sensor without a unit and a device class.

Screen Shot 2020-07-08 at 10 34 44 PM Screen Shot 2020-07-08 at 10 34 29 PM
r-renato commented 3 years ago

I've added the unit of measurement for the fire index and epa, that answers your question.

Thanks, Renato

ajayjohn commented 3 years ago

Works perfectly now. Thanks!