Page 1 of 1
run dzvents script from switch
Posted: Friday 02 October 2020 12:12
by kroonp
Hello,
Is it possible to start a dzvents script using a switch? And if possible how to?
Thankx,
Peter
Re: run dzvents script from switch [Solved]
Posted: Friday 02 October 2020 13:25
by waaren
kroonp wrote: Friday 02 October 2020 12:12
Is it possible to start a dzVents script using a switch? And if possible how to?
Like this?
Code: Select all
return {
on = {
devices = {
'a switch',
},
},
execute = function(domoticz, device)
domoticz.log('Device ' .. device.name .. ' was updated', domoticz.LOG_INFO)
end
}