Trigger Automation after N Times in a State

I’d like to trigger an automation after a door has been opened 5 times.

Does anyone have any ideas on how to achieve this?

Like “Stop notifying me that the door is opening and closing because your wife has decided to leave and enter the house 75 times?”

Joking aside, I created an automation to handle that with appdaemon. I believe you can do it in HA without appdaemon, but I haven’t done it myself.

I believe you are going to want to implement a counter and build your automations off that.

2 Likes

@petro yes, indeed. Thanks so much!