Page 1 of 1

dzVents error after upgrading to v4.11775 [Solved]

Posted: Thursday 05 March 2020 7:24
by johnrwoods
I have just upgraded to v4.11775 and am now getting the following error every minute:

Error: EventSystem: in /home/pi/domoticz/dzVents/runtime/dzVents.lua: /home/pi/domoticz/dzVents/runtime/EventHelpers.lua:462: bad argument #1 to 'for iterator' (table expected, got string)

I have disabled all of my event scripts but the error persists.

Any help would be appreciated.

Re: dzVents error after upgrading to v4.11775

Posted: Thursday 05 March 2020 9:10
by waaren
johnrwoods wrote: Thursday 05 March 2020 7:24 Error: EventSystem: in /home/pi/domoticz/dzVents/runtime/dzVents.lua: /home/pi/domoticz/dzVents/runtime/EventHelpers.lua:462: bad argument #1 to 'for iterator' (table expected, got string)
I have disabled all of my event scripts but the error persists.
You will only get this error if you have a syntax fault in one of your scripts like

Code: Select all

timer = 'every minute',   -- this generates the error in line 462
timer = { 'every minute' }, -- correct syntax
Can you please double check that no active scripts are left in

Code: Select all

/home/pi/domoticz/scripts/dzVents/scripts 
or in

Code: Select all

/home/pi/domoticz/scripts/dzVents/generated_scripts/

Re: dzVents error after upgrading to v4.11775

Posted: Thursday 05 March 2020 18:27
by johnrwoods
That was it. I had:
timer = ( 'at 04:00 on sun' )

I have replaced the () with curly brackets {}.

Thank you very much.

Re: dzVents error after upgrading to v4.11775 [Solved]

Posted: Thursday 05 March 2020 18:28
by johnrwoods
Solved