Can't dim light with LUA

Moderator: leecollings

Post Reply
Melissen
Posts: 65
Joined: Wednesday 16 November 2016 9:39
Target OS: -
Domoticz version:
Contact:

Can't dim light with LUA

Post by Melissen »

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....
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
Melissen
Posts: 65
Joined: Wednesday 16 November 2016 9:39
Target OS: -
Domoticz version:
Contact:

Re: Can't dim light with LUA

Post by Melissen »

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
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
User avatar
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

Post by jvdz »

-edit- I see it works when using the slider in Domoticz?
what command are you sending with LUA?

Code: Select all

commandArray['Keuken spotjes']='Set Level 5'
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Melissen
Posts: 65
Joined: Wednesday 16 November 2016 9:39
Target OS: -
Domoticz version:
Contact:

Re: Can't dim light with LUA

Post by Melissen »

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
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
Melissen
Posts: 65
Joined: Wednesday 16 November 2016 9:39
Target OS: -
Domoticz version:
Contact:

Re: Can't dim light with LUA

Post by Melissen »

Image
Image
Image
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
Melissen
Posts: 65
Joined: Wednesday 16 November 2016 9:39
Target OS: -
Domoticz version:
Contact:

Re: Can't dim light with LUA

Post by Melissen »

Typed everything again.... it works now...

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



PROBLEM SOLVED !!!

Image
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest