Essaie en ajoutant ceci après la fonction switchOnFor (ligne 493) :
Code : Tout sélectionner
-- switch Off a device for x seconds
function switchOffFor(device, secs)
switchOff(device)
commandArray[device] = "On AFTER "..secs
endCode : Tout sélectionner
-- switch Off a device for x seconds
function switchOffFor(device, secs)
switchOff(device)
commandArray[device] = "On AFTER "..secs
end
Code : Tout sélectionner
switchOffIn