i need a switch to turn on , a variable to get value 'true', then i need the script to wait for 120 seconds for the physical action to take place, then the var to take the 'false' value. i 'm not getting how pause/sleep works in domoticz !!!
something like this:
Code: Select all
moveRl.switchOn().forSec(120)
valveResetInProgress.set('true')
dz.log('Waiting for 120 seconds before setting valve position...', dz.LOG_INFO)
sleep(120)
valveResetInProgress.set('false')