Page 1 of 1

Multiple commands on a dimmer in LUA

Posted: Monday 09 January 2017 8:52
by argoon
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 :)

Code: Select all

commandArray[1] = {[light] = 'On'}
commandArray[2] = {[light] = 'Off AFTER 10'}
But this one doesn't work :(

Code: Select all

commandArray[1] = {[light] = 'Set level 30'}
what is the right syntax for doing that :?: