Page 2 sur 2

Re: Gestion de l'automatique vs action humaine

Publié : 11 avr. 2016, 11:43
par jacob
Hello.

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"
Source: https://www.domoticz.com/wiki/Events