I have light sensor which returns a lux value every 5 minutes.
My flow checks for some weather variables (rain/wind) and light.
If rain and/or too much wind, open screen.
If rain/wind ok and lux>2750, close screen.
If it is closed and lux<2750, I don't want to open it immediately, but want to wait 2 measurement cycles and preferably use some lower thresholds (eg. 2400) before opening upon the 3rd measurement.
Has anyone some ideas how to accomplish this ?
Currently if there are some clouds the screen opens, 5 minutes later it closes again I want to avoid this and make it more robust.