Shelly 2.5 to control LED Stripes in the stairs

  • Hello,

    I'm actually pretty new to shelly and already started to have nice complicate ideas to do fun things.

    I bought some Shelly2.5, which I'm using for lights, all OK. Then I wanted to increase complexity...

    The idea is to have two PIRs (one upstairs, one downstairs), 2 sets of LEDs stripes under the step of the stairs with 2 RGBW controllers and to implement the following:

    - when I go down, the PIR upstairs detects me, it lights the upstairs LEDs, some seconds after, the downstairs LED (switch off upstairs) and after a minute, also switch off downstairs.

    - when I go up, the PIR downstairs detects me, it lights the downstairs LEDs, some seconds after, the upstairs LED (switch off downstairs) and after some seconds, also switch off upstairs.

    - at day, I'd like a full blown light, a dimmed light at night

    I'm not too worried about the "algorithm", somehow I will get it right with my webserver, and calling APIs back and forth with some timers (or using the Shelly timers).

    I started to buy and put the things together:

    - a quite big 24V power supply (I think 400W or so) :thumbup:

    - a roll of LED stripes that I can cut and put under the stairs

    - 2 RGBW controllers (ZJ-MW), with a nice API (actually not that nice, I had to install the chinese android app to connect them to my wifi but I can access them with the python3 flux_led <200b>module), so all OK. :saint:

    - 2 24V PIRs (https://www.aliexpress.com/item/32801808609.html)

    - a Shelly 2.5, supplied with 24V and connected to both PIRs and both RGBW controllers

    I have been using the schematic below, which takes on that the output of my PIRs is potential free, which I do not know (is a best guess) The switches entries on the shelly is thus either 24V (off) or 0V (on) ..

    I had some troubles during the cabling and now I have the following status:

    - My shelly 2.5 is blinking (long on, short off), even if I only connect L to 0 and N to 24V, no switches, no output :cursing:

    - I can connect to its web server, but if I turn both on through the web interface, it resets...:evil:

    I have seen somewhere that this led long on, short off is a sign that that there is no network, which I spied and network is there.

    My question are:

    - Is my shelly dead ? ;(

    - Is there something against my schematic in principle ? 8| Anybody having a better idea :?:

    If you read until here, thank you. If you understood all without opening the schematic, you're really good. If you can help, I thank you even more ! ;):love:


    Shelly_Stairs_qet_unten.png

    • Offizieller Beitrag

    Hi guigui , welcome to the forum. :)

    Sorry, but I see some mistakes in your project:

    • the PIR in your link is't potential-free. i think, this i the reason aour Shelly 2.5 doesn't work
    • why do you not use the switch-input (I) for the RGBW2? Permanently switching power on / power off is never good for electronic components
    • In addition, you will also detect the 2nd PIR in every direction, which falsifies your scenario

    I wish you success. :)

  • Hi Stefan,

    Thanks for your answer, super cool.

    1- Potential free PIR:

    Hum, I think I killed my Shelly, will buy some new ones....

    I tried this morning to hard reset it, and even then, and with nothing plugged (only 24V and Ground), I can access the webserver, but the protection goes on when I switch both outputs.

    Does somebody know about PIRs which are usable with shelly, I only found a list on 220V, and I would like to work on 24V.

    Shelly1 - compatible PIR sensors

    2- Switch input of the RGBW2:

    I do not have a switch input on my RGBWs controllers. I just named them RGB1 and RGB2, but these are not from shelly but from this chinese provider, indicated above and with magic home app

    May be I also buy the variant from Shelly and put the one I have to the trash. I will also check that my RGBW2 V+ is really 24V and not ground, I could have use the shelly to switch these RGBW outputs...

    3- Second PIR detects in both directions:

    Yes, clear, but that I can handle with a variable on the webserver, it can know in which scenario I am.

    Thanks for your help and your clever responses

    • Offizieller Beitrag

    :thumbup: You're welcome.

  • I just noticed that I never replied to this thread. I actually now used Shelly RGBW2 inputs, put some scripts on the activation buttons and used the following detector:

    Unterputz Mini Einbau IR Bewegungsmelder 360° 12V 24V - für LED geeignet - Mindestlast nur 1W
    Unterputz Mini Einbau IR Bewegungsmelder 360° 12V 24V - für LED geeignet - Mindestlast nur 1W
    www.amazon.de

    Unterputz Mini Einbau IR Bewegungsmelder 360° 12V 24V - für LED geeignet - Mindestlast nur 1W [Energieklasse F]

    Marke: HAVA

    Unterputz Mini Einbau IR Bewegungsmelder 360° 12V 24V - für LED geeignet - Mindestlast nur 1W
    Unterputz Mini Einbau IR Bewegungsmelder 360° 12V 24V - für LED geeignet - Mindestlast nur 1W
    www.amazon.de

    Everything is working as it should and I'm now buying the second set to go ahead with the next stairs ;)