Attributes are useful for conveying non-numeric metadata about a sensor measurement. But sometimes they are used for numeric measurements too.
Most recently, I realized that weather.get_forecasts
returns /all/ of its data as attributes. As a result, I have no historical information on any of the weather data my HA instance has recorded. If I had known about this a long time ago, I could’ve setup sensors to record these values. But that’s manual, tedious, and easy to miss until you realize it’s too late.
I don’t think this is specific to weather - I already have a handful of template sensors that are just “record this attribute value as a sensor value”. So - WTH are attributes used for numeric time-series data?