LUA scripts group
Posted: Monday 28 May 2018 22:22
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?
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?