Simple Lua on/off
Posted: Thursday 21 January 2016 22:50
So, decided to give Lua a look.. Got stuck allready...
I want to learn it, so i start with the basics: Turn a light of..... Sigh
Saved it as UTF-8, uploaded it to scripts/lua/ folder...
Looks quite simple but something is wrong..
I want to learn it, so i start with the basics: Turn a light of..... Sigh
Code: Select all
commandArray = {}
if (devicechanged['Dressoir Rechts'] == 'Off') then
commandArray['Dressoir Links']='Off'
end
return commandArray
Looks quite simple but something is wrong..