Problem making a new script

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Problem making a new script

Post by randytsuch »

I was trying to add a new script, and keep getting an error.
I even copied exactly an existing working script, get this error in the log

2017-07-23 09:05:00.434 Error: EventSystem: Lua script SprinklerTmr_Front did not return a commandArray

I only get the error for the new script, all my old scripts, which are formatted the same, don't give this error.

If I change to this format

Code: Select all

commandArray = {}

print ("All based event fired");

return commandArray
Then it works fine.
But I don't know how I am supposed to script within this format?

EDIT: Version 2.1.0

Randy
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Re: Problem making a new script

Post by randytsuch »

NVM, I was stupid
It was defined as a lua script instead of a dzvents script
(hanging head low lol)

Randy
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Problem making a new script

Post by dannybloe »

:)
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest