Multiple commands on a dimmer in LUA
Posted: Monday 09 January 2017 8:52
Hi,
I'd like to send 2 successive orders to one dimmer device (a light).
Sending 2 command is OK for On or Off command, but I don't know the syntax for a dimmer
Here is an example of working script
But this one doesn't work
what is the right syntax for doing that 
I'd like to send 2 successive orders to one dimmer device (a light).
Sending 2 command is OK for On or Off command, but I don't know the syntax for a dimmer
Here is an example of working script

Code: Select all
commandArray[1] = {[light] = 'On'}
commandArray[2] = {[light] = 'Off AFTER 10'}

Code: Select all
commandArray[1] = {[light] = 'Set level 30'}
