I need some help to make dzvents script,
Between 21:30 to 06:30, when i press my switch, i would like light to 20%, other time at 100%
my first tink is, make dimTo(20) with a order swtichOff directly to setup level at 20% and when i press my switch, light is dimming to 20%
but not work, if i press my switch, light is always 100% ( or last manual state )
i read the wiki, and find maybee a solution quietOn/quietOff,
but when i use quietOn i have always a error

attempt to call field 'quieton' (a nil value)
can i use quietOn with a level or dimTo fonction?
sorry,i'm not good to make script for my test i make this :
Code: Select all
return {
on = {
timer = {
'at 16:53'
}
},
execute = function(domoticz, timer)
domoticz.log('Script Run')
domoticz.devices('SDB').quietOn.().dimTo(20)
domoticz.devices('SDB').switchOff()
end
}
