Design idee on movement in the house

I have several sensor detecting movement in every room. There is one in the living room, in in the bedroom and another one in the bathroom. I would create love to create a rule for detecting that the house is live in the morning so movement in every room within the last 10 Minutes. Like you get up in the morning and go to bathroom and the livingroom . When this happens I would switch on some wemos. With normal programming I would count the different rooms movement to a variable and when it exceeds 3 than I would trigger an event.
How can I do this here with HA?

Movement detecting in all three rooms the last 15 Minutes
trigger switch on a wemo.

AppDaemon + Occusim