Scripting: I need to wait for a blind to close before continuing

Hi All,

Is there a way to wait for a blind to close? I use blinds for actuator control for opening and closing my skimmers. I tried a while loop with closingOutput, but that didn’t work well.
Maybe I should do a timer and wait a while, but it would be nicer to wait until the closingOutput is false.

The thing I want to achieve: On scheduled times I want the skimmers of my pond to close and the airflow turned of before I feed the fish. After that wait for 5 - 10 minutes (to let the fish eat) and open the skimmers and turn of the airflow again.

Hope someone has a tip.

Regards,

André

Hi,

if you have a ThingState you can trigger code on there using onValueChanged: {...}.

But I’m not sure if that’s what you’re asking for. Perhaps post your current script or the relevant parts of it so we understand better.

1 Like

OnValueChanged was what I needed. Together with 2 timers I can arrange the feeding of my Koi and give the fish some time to eat before the skimmers are open again.

Thanks again!

1 Like