So I have to choises, buy the very expensive HomeSeer to replace Domoticz, or learn LUA.
The problem is that I do not have much programmering experience, yust a little powershell (windows) and batch (windows), but not much more.
So how to learn it? And not just in general, but for use with Domoticz.
Maybe first just like "If BUTTON1 = off and TEMP < 20C set BUTTOM2 = on"
But also like "If ENERGY > 10W for 10 minutes turn BUTTON2 off"
and like: "If BUTTON1= off Set BUTTON2 = off, else if BUTTON1=on set BUTTON2= on"
And things like that?
I think some easy examples and description of what all the commands and symbols in the script do will helt alot.
Eks: I see many people write "commandArray" someplaces in the script, what does that meen?
EDIT: Got this to work

Code: Select all
commandArray = {}
if (devicechanged['1 - Stue, Stålampe'] == 'On') then
commandArray['21 - Kjøkken, Taklampe']='On'
end
return commandArray
commandArray = {}
and this:
return CommandArray