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. 
    • Thanks