Thank you for writing and maintaining this usermod!
I was wondering if it would be possible to make 2 more options available in this usermod.
Instead of turning of segments, I would like to change them to an preset or effect or something. Ultimately I would like it to have one or two pixels on on the beginning and ending of each segment at all times.
next I would like to be able to set an effect on each segment when turned on.
EDIT: jesus i found the reason. For the plugin to work the LED’s need to be turned on per default and the plugin will just disable and enable the segments. If the main switch is off, the plugin will NOT turn the LED’s on if triggered.
i really don’t get it. At “Configuration - Usermods - Staricase” the mod is enabled (checkbox on). I can control my LED’s manually and i added segments which are working too.
if i do a curl:
curl -X POST -H "Content-Type: application/json" -d {"staircase":{"bottom-sensor":true}} 10.0.20.96/json/state
it responds with:
{"success":true}
and nothing happens - no LED’s turn on. Also if i fetch the state i get the expected answer:
now that i got it working i think i just found two bugs:
both senosrs need to be enabled in the settings (checkbox), otherwise the “top”-sensor wirl allways be true and nothing will work. also the top-sensor can not be set to false via CURL.
both sensors enabled - the fadeout will always be fom bottom to top - also if the top sensor is triggered.
I am 99% sure that there are no bugs. I am using the mod since 1 year now with ultra sonic sensors for top and bottom. The fade effect always works the right way. It is important, that both sensors get triggered. For example 1st is bottom, 2nd is top: fade will go upstairs.
I have everything set up on an ESP32 and I was actually surprised I got everything working relatively easy although the topic here doesn’t give that idea directly.
Compiling to an ESP8266 would not want to work, WEMOS D1 Mini same thing. Compiling to “wemos_shield_esp32” did work out of the box and I do use an ESP32 for my final setup so that all worked out.
I’m also using the HC-SR04 ultrasonic sensors and I currently have 1 installed at the top, but I did notice that the sensor seems to trigger a lot. Maybe a fly? Or can I do anything against the “false positives”? It’s connected directly to the ESP32 GPIO’s, so no resistor between it or anything like that.
Maybe a weird solution idea… I’m not sure if I understood correctly, but what if I could post the state of some external motion sensor, let’s say a Hue Motion sensor, via MQTT and then do some double check that if that motion sensor has sensed motion just before, than only the ultrasonic sensor should trigger?
One last weird thing I have… when the segments are triggered by the ultrasonic sensor at the top, everything works fine, but when the bottom ultrasonic sensor is triggered, all segments start blinking. This also happens when I turn on the segments manually. It does stop when I turn off segment 0. What can this be?
HI guys! Great Project here. I just started building this in a test environment before drilling holes in my stairway. Everything seems to be working and the only issue I have is , I’m seeing a little delay on the top USS sensor compared to the bottom USS sensor. I’m injection power on both sides of the led strip and data is injected into the led strip from the bottom side only. Should I be injection it from the top aswell or are there any settings I need to change?
Before you get into the usermod side of this project, I would suggest you do the basic power sizing.
How many LEDs will you have in total?
How many will be on in the worst case?
What brightness will you use ? (worst case)
How long is the strip for each step?
Those answers will give you an idea of the total power you will need to supply to your project.
You can then choose whether to use 5V or 12V (or even 24V) devices.
That will tell you how much current your power wiring must handle for your worst case.
It will also give you an idea of how much power injection will be needed to prevent voltage drops.
In general, if you can position your power supply near the middle of your setup, that will minimize the length of power runs.
The wiring for the PIR sensors doesn’t need to be particularly large, but you normally need at 3 wires - V+, signal, and ground for each sensor. Positioning the ESP board close to the start of your strips will help ensure the data line remains clean. Again, data wire doesn’t need to be large.
Once you’ve filled in some of the blanks, we can help you more.
Since the stairwell is being plastered at the weekend, I wanted to lay all the cables. I thought to myself that I would then have everything I needed to carry out the exact installation later. I would now have laid 2.5 mm² everywhere to be protected. It doesn’t matter whether it’s 5V, 12V or 24V, right?
That’s why I thought to myself, it’s better to have too many cables and thick cables than too few and thin ones.
I will measure the length of my steps later when I get home to get an approximate number of LEDs and strip length.
Are the same PIR sensors used at the bottom and top or should they be different models?
Maybe you already have model numbers for me so I can take a closer look at them.
I have the staircase mod working, but my ultrasonic sensor seems to not pickup unless your right in front of it. I’ve changed the distance to 100cm and still nothing changes.
Do I need a resistor? And if so where does it go? Or are there other settings somewhere to setup the sensor to pickup on further distance?
Is this usermod now part of the main WLED build (as per the edit in the 1st post), do I need to do anything other than install WLED onto as ESP32 to make this work?
This is so confusing. The 0.14 Beta release claims that the staircase mod is not part of the main WLED version. I upgraded my stairs from 0.13 to 0.14.1 Hoshi and all my staircase settings are gone meaning under the usermod menu in the GUI there are no more options to configure the motion sensors.
I searched and I found the binary for ESP32 with the staircase mod here WLED-wemos-shield/resources/Firmware/@Aircoookie/Latest at master · srg74/WLED-wemos-shield · GitHub and I installed it. Now, everything is back to normal again. (I linked the upper directory above in case you are not using ESP32, so you can download your specific version for your hardware).
It seems like the staircase mod did NOT make it into the mainstream WLED version because under usermod the settings for the motion sensors didn’t show up at all while it says to save and reboot to initialize the setting for the usermod section, that didn’t do anything. I had to install the binary linked above to make it work again. Remote install of this binary using the web browser worked fine replacing the mainstream WLED 0.14.1 with this WLED 0.14.1 staircase mod version.
Just wanted to share in case other people upgrade from 0.13 to 0.14 with usermod staircase installed.