I want to make a table ('myTable'). The index has to be a Domoticz device ID (DzDeviceID), the trigger. When that device triggers, I need to look up a premade api/json so I can open it (onActionUrl), and more info, like the name of the trigger (triggerName).
So, in my fantasy LaLaLua-language I need to do something like
Code: Select all
myTable[DzDeviceID].onActionUrl = myPremadeUrl
myTable[DzDeviceID].triggerName= thetriggername
Obviously, it doesn't work.
I tried variations of declaring the array, like:
Code: Select all
local myTable= {
onActionUrl= {},
triggerName= {}
}
Do I need to use
Code: Select all
insert.table
Code: Select all
insert.table
I am so confuuuused!
S.