dzVents error after upgrading to v4.11775 [Solved]

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

Moderator: leecollings

Post Reply
johnrwoods
Posts: 10
Joined: Thursday 12 December 2019 11:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: UK
Contact:

dzVents error after upgrading to v4.11775 [Solved]

Post 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.
Last edited by johnrwoods on Thursday 05 March 2020 18:29, edited 1 time in total.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: dzVents error after upgrading to v4.11775

Post 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/
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
johnrwoods
Posts: 10
Joined: Thursday 12 December 2019 11:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: UK
Contact:

Re: dzVents error after upgrading to v4.11775

Post by johnrwoods »

That was it. I had:
timer = ( 'at 04:00 on sun' )

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

Thank you very much.
johnrwoods
Posts: 10
Joined: Thursday 12 December 2019 11:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: UK
Contact:

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

Post by johnrwoods »

Solved
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest