Page 1 of 1

set KAKU dimmerlevel from LUA

Posted: Wednesday 30 March 2016 23:19
by manjh
I am trying to set a KAKU dimmer level from a LUA script, and believe this would be the most obvious way:

otherdevices_svalues['Keuken'] = 100%

I tried several other variants, with or without quotes, and with or without the percentage.
None work.

Any hints?

I already tried searching through the LUA examples but could not find a solution. :oops:

Re: set KAKU dimmerlevel from LUA

Posted: Wednesday 30 March 2016 23:50
by niceandeasy
What about

Code: Select all

commandArray['DimmableDevice']='Set Level 50'
, which is a quote from https://www.domoticz.com/wiki/Events.

Read that wiki page in full. It has all the basics.

Re: set KAKU dimmerlevel from LUA

Posted: Thursday 31 March 2016 0:13
by manjh
That did it. And that page is indeed a wonderful source of information, I will read it carefully tomorrow morning.
I wonder why I did not find that before, I searched the Wiki and the Forum.....