LUA scripts group

Moderator: leecollings

Post Reply
Arczipl
Posts: 6
Joined: Friday 08 September 2017 23:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

LUA scripts group

Post by Arczipl »

Hello,
I have this scripts

commandArray = {}
if devicechanged['Xiaomi Switch'] == 'Click' then
if otherdevices['Łazienka LED'] == 'Off' then
commandArray['Łazienka LED'] = 'On'
else
commandArray['Łazienka LED'] = 'Off'
end
end
return commandArray

It's turn on and off LED light in bathroom. I have new idea, becouse I have RGBW LED in bathroom want change switches to group.
Can you help me change this in my LUA scripts?
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests