20.01.2018, 07:36
(25.02.2017, 08:09)Erwin van der Zwart Wrote: Hi,
os.sleep only stops the script where it is used, for event based scripts take into account that each event creates a new script procedure, so if you use os.sleep in a event based script you might have multiple instances of this script running in parallel. We have a small script to kill the previous script with os.sleep to avoid this.
BR,
Erwin
Hi Erwin,
where can I find this small script?
I want to start a toilet ventilation.
After light goes on wait for 1 minute then turn on ventilation for 2 minutes.
It would be possible somebody else goes to the toilet in that time.
Or maybe better turn on ventilation when light goes out.
Thanks John.