Multiple commands on a dimmer in LUA

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
argoon
Posts: 1
Joined: Monday 09 January 2017 8:39
Target OS: Linux
Domoticz version:
Contact:

Multiple commands on a dimmer in LUA

Post 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 :?:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest