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....
Can't dim light with LUA
Moderator: leecollings
Can't dim light with LUA
RFXcom433e ver1009,Raspberry Pi,Domoticz v3.5877
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
Re: Can't dim light with LUA
Naam: Keuken spotjes
Weergeven regelsZoeken :
Datum
Data
2016-11-24 18:56:18 Set Level: 60 %
2016-11-24 18:56:17 Set Level: 66 %
2016-11-24 18:46:53 Set Level: 6 %
2016-11-24 18:46:20 Off
2016-11-24 18:39:51 Set Level: 66 %
2016-11-24 18:39:49 Set Level: 26 %
This is the log for Keuken spotjes... when I change the dimmingrate manually
Weergeven regelsZoeken :
Datum
Data
2016-11-24 18:56:18 Set Level: 60 %
2016-11-24 18:56:17 Set Level: 66 %
2016-11-24 18:46:53 Set Level: 6 %
2016-11-24 18:46:20 Off
2016-11-24 18:39:51 Set Level: 66 %
2016-11-24 18:39:49 Set Level: 26 %
This is the log for Keuken spotjes... when I change the dimmingrate manually
RFXcom433e ver1009,Raspberry Pi,Domoticz v3.5877
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
- jvdz
- Posts: 2334
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Can't dim light with LUA
-edit- I see it works when using the slider in Domoticz?
what command are you sending with LUA?
Jos
what command are you sending with LUA?
Code: Select all
commandArray['Keuken spotjes']='Set Level 5'
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Re: Can't dim light with LUA
Tried this,,, doens't work
In Blockly I can dim the light biy pressing a switch... very strange. Seems to be a fault in the command: set level
In Blockly I can dim the light biy pressing a switch... very strange. Seems to be a fault in the command: set level
RFXcom433e ver1009,Raspberry Pi,Domoticz v3.5877
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
Re: Can't dim light with LUA
RFXcom433e ver1009,Raspberry Pi,Domoticz v3.5877
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
Re: Can't dim light with LUA
Typed everything again.... it works now...
I can put the script down, if someone wants to have it.
PROBLEM SOLVED !!!

I can put the script down, if someone wants to have it.
PROBLEM SOLVED !!!

RFXcom433e ver1009,Raspberry Pi,Domoticz v3.5877
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
KaKu:16c remote,dimmer,wall-sockets,sunscreenswitch
Promax:wall sockets Elro:wall sockets Somfy:RFY screens
TFA:weather station Chinese temperature sensors, smoke detectors, power switches
Who is online
Users browsing this forum: No registered users and 1 guest