Using the time series derivative of a signal as a trigger?

I have a CO2 monitor that I would like to use to automatically kick on an exhaust fan when the signal spikes up - regardless of what the level was at when it starts climbing.

Are any blueprints or other systems in Home Assistant setup to be able to trigger on strong upswings in the time series, like these?

The Trend helper can be used to create a binary sensor that turns on when the slope/gradient of the sensor’s value exceeds a defined value.

2 Likes

Another option; I use it to trigger the bathroom exhaust fan when the humidity spikes up.

1 Like