Well, I'm having a hard time every time I try to configure what with the illuminance.
This time I'm trying to figure out how to turn on a switch when the mode is day or evening only (and only between 1pm and 9 pm). if the illuminance becomes lower than X.
Also, I don't want the light to come back on if I turn it off afterwards until next day.
I have create a global variable and create an app that reset the value when mode change to night. But I'm not sure if this work correctly..