Can't dim light with LUA
Posted: Thursday 24 November 2016 18:55
Hi, I want to dim my lights with a LUA-command. In my switchpanel I can dim the lights (higher or lower).
I used this command:
if devicechanged['Woonkamer -alles']=='On' and otherdevices['Keuken spotjes']=='Off' then
commandArray['Keuken spotjes']='Set Level: 5%'
end
But the lights don't dim to 5%. They will go on, when they are off. But they remain on 60% which was the dimming-state on the switch panel.
I've got the KIKA AILD-250 dimmer installed.
How do I solve this problem?
And is there also a command to read out the dimming-rate in LUA?
Very new to LUA and the search-function didn't helped me either....
I used this command:
if devicechanged['Woonkamer -alles']=='On' and otherdevices['Keuken spotjes']=='Off' then
commandArray['Keuken spotjes']='Set Level: 5%'
end
But the lights don't dim to 5%. They will go on, when they are off. But they remain on 60% which was the dimming-state on the switch panel.
I've got the KIKA AILD-250 dimmer installed.
How do I solve this problem?
And is there also a command to read out the dimming-rate in LUA?
Very new to LUA and the search-function didn't helped me either....