WTH do I need a separate filter platform sensor?

I have a bunch of sensors derived from published MQTT messages. I’d often like to apply some simple filtering to the successive published data values. I can do this by introducing another sensor using the filter platform, but this seems needlessly duplicative.

I see that ESPHome handily allows you to apply filtering integral with the definition of a data value that’s to be published, and I used that when ESPHome is on the other end. But not all of the inbound data arrives from that type of source.

It would be really nice if this filtering behavior was part of (at least MQTT platform) sensors as a generalized capability.


1 Like