I was wodering if a possible change can be made to the checkFirst function in dzVents:
could the function include a log message in case of activation? (so the syntax would be .checkFirst(logMessage of operation is performed)
if no argument is given then it runs as usual
example:
Code: Select all
if dz.devices(myDev).state == 'Off' then
dz.devices(myDev).switchOn()
dz.log('Hey!... I\'m ON!!')
end
can be turned to:
Code: Select all
dz.devices(myDev).switchOn().checkFirst('Hey!... I\'m ON!!')

ciao
M