My WTH moment was discovering the filter sensor. It just seems so pointless. In order to calculate a moving average I had to create a MQTT sensor with the raw data and a filter sensor with the average.
tbh I donât understand why sensors are so different feature-wise.
Yes, filter would be a feature of each sensor. So ability to assign default icon or use templates to setup attributes.
The need of creating intermediate sensors just to achieve final sensor with required features is counter-productive.
If one executes this search: https://www.home-assistant.io/integrations#search/sensor various first class sensors donât appear including filter, statistics etc. In general I think that any of the existing sensors that require the entity_id of another sensor should be implemented as filters.
Edit: min_max too and maybe a few others. One could probably drop min_max in favour of statistics or vice versa.
Idk if this helps make them more discoverable since the categories are so huge but there is a sensor and binary sensor category. Looks like most integrations categorize themselves there when their integration makes either a sensor or a binary sensor. The utility integrations donât currently seem to do that, they probably should be updated and dual-listed for some small increased visibility.
It wonât help with the search since thatâs still a search by name but maybe a bit easier to find. Also it might be nice if when your search term exactly matched a category if the UI showed a link at the top of the search results like âdid you mean the category âsensorâ?â for users to click on.