Hi,
How do you configure a scene that will turn on lights when motion and does not turn off until motion sensor has been safe for X time?
I am looking for both Lua and block options, if available.
Until now I have only found option for "delay" meaning lights will turn off after given time no matter if there has been motion during "delay" period.
Hope someone has found a solution for this.
I use copies of the scene for different rooms. That way I can tune the lux and maxTime easily.
I have changed the code to make it more flexible, for instance, I use in my garage two motion sensors.
In the declarations there are also time option like “sunrise” and “sunset”. If you add a block scene (and later disable it to keep it for future experiments) you can experiment with that condition and convert it to Lua to see how it looks like with all the {} and or constructions.