You might be better off using a ‘break beam sensor’ rather than a PIR so it doesn’t activate if just walking past the top or bottom of the stairs (like the type used to set off a beeper when entering a shop doorway). Or if your stairs are carpeted a pressure sensing mat.
A bunch of LED strips, Darlington driver transistors and an ESP32 running ESPhome would make this pretty much autonomous - not even needing any Home Assistant automation. Though of course you could enable it via HA (if a smoke alarm is triggered at night for example).
Interesting and I thought of doing something similar. Instead of steps, LEDs would be mounted under handrail and a section would light as you would walk down/up instead of just lighting up in a sequence after a trigger… probably it would require more than 2 PIR sensors (in my design).
I had an idea to do this using an ultrasonic sensor at the top of the stairs facing down them at the same angle as the stairs (so the signal is essentially parallel to the handrail) and use the distance reading to determine where on the staircase the person is and turn on the lights at the correct spot using an addressable LED strip. It shouldn’t be too hard… but I don’t have stairs so no use to me
I would have to agree with @tom_l about a break sensor.
Currently I use a dual PIR sensor setup for a single stair case lighting system and the PIR sensor unless adjusted perfectly go off when someone passes.
I had though about doing this but the wiring would be a little more unsightly than in the video.
Addressable LED strips would be the way to go. The LED strips would either need to be calibrated at a lower power or have a cover to disperse the intensity. (walking up could be blinding at night depending on the angle or where the strips are placed.)
Regarding if this is possible to make. Looks very possible.
Thanks for the link. I am currently looking for a solution, as I will start renovating my stairs soon.
I hope I will find a way to control it via mqtt and integrate it in my house management through hassio
I will opt for the ws2813b with serial wiring across the elements and hope to be able to ‘cut’ them into stairs digitally. If you have any tips then please let me know!
My LED stairs project works very well on the desk. I used ESP8266, PIRs and MQTT. For stairs better go with 12V LEDs (ws2811). I used that sketch: https://hackaday.io/project/163744-led-stair-lights-arduino-controlled-motion-act but changed LED lib to FastLED. Of course low level converter, capacitor and resistor are a must-have.
I will use that PIRs: