Howto 'transform' fast state changes into 1?

Is it possible to make multiple state changes, that follow briefly after each other, ‘transform’ into 1 if within a certain timeframe?

I assume this can be done with a template but cannot find out how.
TIA

There’s a throttle option in the Filter integration if it’s a numeric value.

1 Like

Hi Didgeridrew, thanks for helping! :bowing_man:

Sorry, I should have shared this right away:

  • one is a binary sensor and this has been bothering me quite some time so I thought to finally tackle this
  • the 2nd one: I started with Frigate and use the image (person) detection as a trigger

Apparently, none of those seem to usable with the filter integration.

For the binary sensor you could use a state-based template binary sensor with delay_on and/or delay_off to throttle the state changes.

For the Frigate-based sensor, what are you currently getting and what do you want?

It’s a KNX binary sensor which does not seem to have that option… :grimacing:

For Frigate, I’m trying out the different sensors but maybe I have to read the Frigate documentation once more…
I was using the Person sensor but this would trigger multiple times within a short timeframe.
I’m using this to activate the screen on an Android tablet & reload the HA app wo when the doorbell is pushed the app navigates to another dashboard with a live stream from the doorbell & some control buttons.

Maybe you can use a trigger based template sensor instead with knx.telegram trigger. Or just use the trigger in your automation directly instead of a binary sensor… if it’s a doorbell, it probably doesn’t have a state anyway.

1 Like