PIR Sensor Time Schedule

Hello there,

I want to control a bath mirror light (white 12V Led stripe) with a HC-SR505 PIR sensor.
So far everything works fine. The reason i need wled for my plan was to be able to dim the mirror during night time. Lets say, from 9 am - 9 pm it should light up at 100% brightness, from 9pm - 12 pm at 30% and after 0 am 10%.
But im struggling to set this up. I tried to create multiple presets and use the time schedule but now eventhough the pir sensor indicates “inactive”, the mirror lights up after the scheduled time. The only way to power it off is through the webinterface. Then it works as it should, till the next preset is scheduled. From then on it will again light up until i turn it off manually.
Is there anything I can do about this?

Thanks in advance

Rather than trigger a single preset at the time of day, trigger a playlist.
Each playlist will consist of 2 presets, the first sets the segments to the brightness level you want, while the second sets the strip state to Off.

Then your PIR can be used to change the strip state back to On as necessary.

Great, that sounds like a plan.
Can you help me how to set up the playlist correctly?

As an example playlist for (guessing) “Daytime brightness”, you’re close.
Remember, these playlists just setup the brightness level you want the PIR preset to activate.
They shouldn’t actually turn on the light, just set things up for the PIR.

And looking at this again, it should be even easier than I first imagined.
For each of your “time activate” presets:

  1. Click on the preset to activate it, the light will come on at the particular brightness you wanted.
  2. Click on the Power button in the upper left corner of the WLED GUI. The light goes out, but the brightness remains at the level you previously set.
  3. Click on the down arrow ( “v” ) next to the preset name so you can edit the preset.
  4. Check the box that says “Overwrite with state” and click Save.

That’s it, no playlists required! Now when these presets are tripped by the time macros, they only activate a particular brightness level. The light remains in an off state. The PIR preset will still turn them on, it will just use the brightness level that was last set by the time macro.

Awesome, this actually worked out!
Thank you very much for your help

How did this work? I’m sorry I don’t understand. For me the pir will only play whatever preset I set it to. I currently have it set on GPIO 12 for example and I set that GPIO to trigger preset 1. It will trigger preset 1, for 30 seconds and then turn off. I did this using a playlist on preset 1 to turn the lights one to the effect and then the last state in the playlist is off. How would I get this to run different brightness levels? There’s no way to change the state unless I manually go in to wled and change the brightness I wanted every time. If I’m going to do that I might as well open the app and turn it on every time. To me I feel like there should be a way to have the PIR scheduled to run different presets at different times of day, but I can’t seem to figure this out in wled.

Please don’t post the same questions across multiple topics.
I’d suggest you create your own topic (you can insert references to other topics if needed).

Otherwise, things get really cluttered.