set KAKU dimmerlevel from LUA

Moderator: leecollings

Post Reply
manjh
Posts: 859
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

set KAKU dimmerlevel from LUA

Post 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:
Hans
niceandeasy
Posts: 102
Joined: Thursday 28 January 2016 22:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: NL
Contact:

Re: set KAKU dimmerlevel from LUA

Post 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.
manjh
Posts: 859
Joined: Saturday 27 February 2016 12:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: set KAKU dimmerlevel from LUA

Post 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.....
Hans
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest