

I’m gonna assume you’re not using Home Assistant yet.
There is an app for Home Assistant but from your comment I’m assuming you’re talking about something like Smart Life.
Home Assistant takes all these different companies and creates a central hub for them all. So we have Hue bulbs and Nest cameras all talking to each other via Home Assistant.
If you’re already using Home Assistant then disregard and have look into PIR and Mm Wave sensor.
I’ve moved up a level and recently made a bed sensor.
Lucky he passed those particular piss flaps on his way into the world