help with dimming 100 > 10 and back via "Hold" switch
Posted: Wednesday 29 April 2020 23:29
hello members 
im newbie with dzVents,..
on/off light with "click" is ok
with "hold" reducing light to 10% is also ok
with this script:
but i want with next "hold" to recover light output to 100%
or "click" always toggle light to 100% from off
(one of these methodes)
thxx brad
sry for my english

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