Is there a way to set this minimum level in dzvents?
I tried the follow code, but it interferes with some other scripts when using the switchOff() function.
Code: Select all
{
on =
{
devices =
{
304,
},
},
logging =
{
level = domoticz.LOG_ERROR, -- set to LOG_ERROR when tested and OK
marker = 'Woonkamer-Plafondlamp)'
},
execute = function(dz, item)
lamp = dz.devices(304)
if lamp.level < 30 then
lamp.dimTo(31)
end
end
}