This is seriously not thought through as it is today.
I saw someone making two automations:
- Turn on light when movement has been detected.
- Turn ON light when NO MOVEMENT has been detected AND set this to turn off light after x minutes.
It sounds ingenious - it should catch it in a loop between automation 1 and 2 as long as you move within the x minute interval. But it seems like someone at apple has broken that option as well, because I cannot get it to work. Either lights will be turned off while you're still present or it will never go into #2 and lights will stay on forever. Maybe someone else can get it to work?
I also seen some lengthy shortcuts attempts. Here's one:
https://patrikmojzis.medium.com/mot...-off-lights-after-a-certain-time-a9b616b719ae but it doesn't work stable either. It should in theory, but I think it depends on the sensors and that's again a lack of standards.
Finally - and this is the most ridiculous: I have a logic circle that also offers to double as movement sensor. I quickly learned that it would as expected turn on light when detecting motion. And when not detecting motion any more it will turn off ligths as expected... and then turn them back on because the image its seeing is changing because, well... it got darker in the room. Light on - lights off - lights on - lights off... 😂