nodered
i have a similar situation i want to turn on spreader lights with a relay when pir sensor triggered but only at nite time.
i didn't find a gpio in actions in op, so i get the data to nodered and manipulate it there.. there i can use bigtimer for dusk dawn and trigger a relay with a gpio.
you could do what you want like that too , but use a function or node to check how long that the sensor is on before an action takes place.
jim
i have a similar situation i want to turn on spreader lights with a relay when pir sensor triggered but only at nite time.
i didn't find a gpio in actions in op, so i get the data to nodered and manipulate it there.. there i can use bigtimer for dusk dawn and trigger a relay with a gpio.
you could do what you want like that too , but use a function or node to check how long that the sensor is on before an action takes place.
jim