Page 1 of 1

not return a commandArray

Posted: Sunday 08 October 2023 3:00
by twinbee
Hello
I have a problem and don't know what to do next.
if I want to run this script here:
  • return {
    on = {
    timer = { "every 1 minute" } -- Timer alle 1 Minute auslösen
    },
    execute = function(domoticz, timer)
    commandArray = {} -- Deklarieren Sie ein leeres commandArray

    -- Schalten Sie den Schalter "testschalter" ein
    commandArray['testschalter'] = 'On'

    return commandArray -- Geben Sie das commandArray zurück, um den Schalter zu steuern
    end
    }
I keep getting this error message:
Error: EventSystem: Lua script test did not return a commandArray
I think I've checked and done everything but I can't get any further. Can someone help me?

Re: not return a commandArray

Posted: Monday 09 October 2023 7:44
by gizmocuz
This is not the solution you are looking for, but please use dzVents !
Makes life a lot easier....