Simple counter sensor

Hi,
I have roomba, and would like to send notification to clean it if it was “on” five times. Then I clean it and reset the counter.
So, I want to create sensor counter, which will increase value then roomba is “on”
How can I do that?

Assuming your roomba is connected to HA, try this:

Cheers!
DeadEnd