Hey everyone. I have been trying to think of ways to trigger an automation every other time something happens. For example, I wanted to get a notification every other time my Roomba ran that would remind me to empty the waste bin. That way, it never gets too full. Is there a way to make a trigger every other time (or even 3+ times) something happens?
Create an input_boolean
helper called input_boolean.even_trigger
(or whatever you want).
Then, in your automation’s action
, include:
- service call to toggle
input_boolean.even_trigger
- condition to continue only if it is
on
- your notification code
For longer periods, use an input_number
and increment instead of the toggle, test for the number you want in the condition, and a reset-to-zero call after the notification.
1 Like
I am doing the exact same thing and my vacuum drives to the trash can after ever third cleaning cycle.
I’m using a input_number for that which is incremended after every cleaning cycle. When the number equals 3 it is time to empty the bin and I get a persistent notification.
When I dismiss the notification the vacuum drives back to the station.
1 Like