I have some lights and sensors setup under HomeKit. Lighting control and sensor status both work fine for manual operation from the Home app. What I would like to do is setup an automation where the light is turned off when the sensor has not detected any movement for 5 minutes. I can easily setup an automation to turn the light on when the sensor detects movement. But what appears to be lacking here is the ability to delay an action for a period of time. And for it to reset the timer if it detects movement again. Am I missing something here or is there another HomeKit compatible tool that would allow me to do this?