had a first look on utils.stringSplit an copied the script below from forum, but it does not
work, I always get
2021-05-17 08:54:00.332 Status: dzVents: Error (2.4.19): ...domoticz/scripts/dzVents/generated_scripts/Script #1.lua:12: attempt to call field 'stringSplit' (a nil value)
Can one of you assist?
BTW I tested some more scripts found at this forum, get always the same error message
Many thanks.
Code: Select all
return {
active = true,
on = {
timer =
{
'every 1 minutes'
},
},
execute = function(dz)
local myString = "A-B-C-D"
myTable = dz.utils.stringSplit(myString,"-")
for idx, val in pairs(myTable) do
dz.log(idx..val)
end
end