Tu peux essayer un FOR ou AFTER:
It is also possible to change the state for a device for a fixed period of time; if the device only needs to be turned on for 10 minutes, use 'On FOR 10'.
To change the state for a device after a fixed period of time; if the device only needs to be turned on after 10 seconds, use 'On AFTER 10'. AFTER is in seconds and accepts 3 seconds at least. ('On AFTER 2' doesn't work).
The keywords FOR RANDOM AFTER must be written in CAPITAL LETTER.
Code : Tout sélectionner
-- commandArray['a device name'] = "On"
-- commandArray['another device name'] = "Off AFTER 10"