Ikea Smart Blinds control


#1

I am trying to make a piston in webcore so when my lightsensor reads 13000 lux starts a timer for 10 minutes and if the light after 10 minutes is still 13000 lux, lower my IKEA Smart Blinds. If the light droppes below 13000 lux it resets the timer to start again if light goes over 13000lux.
And then a similar piston for when they are supposed to go up… (8000lux)
This is gonna prevent my blinds to go up and down with every sky that passes over.

Im a rookie when it comes to webcore and would apriciate all help I could get.
Thanks
Syver


#2

That logic is usually written something like this:

IF LightSensor's lux stays above 1300 for 10 minutes
Then
    Lower Blinds
END IF

Disclaimer:

In most installations, “lux” changes very frequently.
(IE: Due to the spam, it’s rare that I use lux as a trigger, but YMMV)