Problem routine simple automation rules

hello friends, I have a routine to turn off the lights if there is no movement in 30 minutes in the kitchen, because even if there is movement it turns off the lights, I don't understand why it doesn't do the routine well, here I give you the routine

Turn on logging for that rule, and see what shows up in the logs. Post a screenshot here of when it does this.

Usually the lights are set to turn on with motion. You have them turning off. Then 30 minutes later, they are set to turn off. I think you need to set What do you want to do? as on.

Anyway, make sure you don't have any other rules using these lights. You can see where they are being used at the bottom of the Devices page for the lights.

1 Like

So what would the rule be? trigger : motion off?