Fair enough. I'll post it for Rule Machine but Motion Lighting is the way I would go for this. Select 'Apps' and then 'Add built-in app' select Motion Lighting apps. There are restrictions for Lux and Time in that app.
Try search for Lights on motion pluss app and install that. It's an easy one, if you give up RM.
I have this app running in the living room and here is my rule. Change to 3 minutes instead of my ten, you find under restriction part. Good luck.
I can’t see this rule turn off the light until next morning when the lux is above set value, if triggered after dark? Does it?
I guess a switch or dashboard tile is used for that, for this one?
The goal I had was to fully automate the light, without any switches, and at the same time minimize the agressiveness and need to keep moving in the room, more than natural. And to be honest, there is not so much movement when laying on the couch and wathcing TV, even with 2 people in the room.
But one motion sensor looking at the room from one side, close to entry points, and another one in the window closer to the U-shaped couch, seems to work pretty well to achieve this. Both with catshing arm movements and the right time to turn on the lights based on outside darkness. Its a tuning thing, so it takes some tweeking, for usre.