Hi all, totally new to this and trying my best to learn about wled, circuits and sensors so I can create my first project.
I’m trying to create a door sensor, as someone approches, the PIR triggers and runs a light sequence then staying on with white for about 30 seconds for the actual illumination.
I’ve got the D1 mini and PIR connected on a breadboard, I’ve created presets and a playlist.
I’ve assigned the GPIO button to the PIR. It’s now a matter of adjusting the delay and distance on the PIR, but I’m running into problem.
What controls the light sequence to turn off, because the lights stay on with the last sequence in the playlist? Does the PIR trigger the D1 to turn off or does WLED control that portion, if so how?
I’m not entirely sure of the triggering mechanism of the PIR.
This has bugging me for days as its not easy to figure how how many seconds the PIR is delayed for, the pot adjustemnt is just guess work then trying to figure out the lights off time and how.
Also, am I doing this all wrong and/or is there a smarter way to do this, as I could be complicating things unnecessarily, whilst keeping things simple as I dont want to get into home assistant etc? Thanks all