I have been looking around to find the simplest? solution to turn on a light triggered by a motion sensor but restarting the timer and I think my code is short enough but as I am no coder syntax is wrong. At least that's what I think. Code stolen and adapted from various places... (sorry if not allowed but where do a beginner start)
First my conditions
then my actions
Please login or register to see this code.