not return a commandArray

Moderator: leecollings

Post Reply
twinbee
Posts: 1
Joined: Sunday 08 October 2023 2:52
Target OS: -
Domoticz version:
Contact:

not return a commandArray

Post 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?
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: not return a commandArray

Post by gizmocuz »

This is not the solution you are looking for, but please use dzVents !
Makes life a lot easier....
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest