I have 2 lua scripts called: script_device_dimmerstue.lua and script_device_dimmersoverom.lua
The first one was added first and is working, nothing happens on the second one but I can see the buttons beeing reffered to is triggered in the log.
First script:
Code: Select all
commandArray = {}
if (devicechanged['Stue dimmer S2 1 click'] == 'On') then
commandArray['Group:LivingRoom']='On'
elseif
(devicechanged['Stue dimmer S2 2 click'] == 'On') then
commandArray['Group:LivingRoom']='Off'
elseif
(devicechanged['Stue dimmer S2 3 click'] == 'On') then
commandArray['Group:Alt lys']='Off'
end
return commandArray
Code: Select all
commandArray = {}
if (devicechanged['Soverom dimmer S2 1 click'] == 'On') then
commandArray['Group:Soverom']='On'
elseif
(devicechanged['Soverom dimmer S2 2 click'] == 'On') then
commandArray['Group:LivingRoomAndSoverom']='Off'
elseif
(devicechanged['Soverom dimmer S2 3 click'] == 'On') then
commandArray['Group:Alt lys']='Off'
end
return commandArray
Is there some sort of conflict going on here?
Also after I added the last script the first one is much slower to trigger so I guess there is something strange going on here.