
im newbie with dzVents,..
on/off light with "click" is ok
with "hold" reducing light to 10% is also ok
with this script:
Code: Select all
return {
on = { devices = { 62 }}, -- Name of your button
execute = function(dz, item )
if item.state == "Click" then
dz.devices(55).toggleSwitch() -- Name of your light
elseif item.state == "Hold" then
dz.devices(55).dimTo(10) -- Name of your light
end
end
}
or "click" always toggle light to 100% from off
(one of these methodes)
thxx brad
sry for my english