remotec-scenemaster-zrc90 more than 10 event listeners - error

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
moelli
Posts: 4
Joined: 15 Aug 2022 11:28

remotec-scenemaster-zrc90 more than 10 event listeners - error

Post by moelli »

Hi, I put 12 rules to my scenemaster and got a lot of trouble: the eventlist didn´t work correct on, z-way-server run into errors and showed irregular actions.
with chatgpt I found the problem:
in .../automation/lib/eventemitter2.js
is a variable : var defaultMaxListeners = 10 defined.
If you put more than 10 listeners to one unit (scenemasterr) the number of allowed listenes is exceeded and eventemmitter2.js calls than a function "console:trace" (line 392)
which is not defined annd runs into an "undefined is not a function" error.
Any ideas? or correction of ./automation/utils.js ???

As a workaround I set the defaultMaxListeners to 30

moelli
piet66
Posts: 282
Joined: 04 Feb 2017 17:00

Re: remotec-scenemaster-zrc90 more than 10 event listeners - error

Post by piet66 »

As a workaround I set the defaultMaxListeners to 30
I made it exactly the same. Think that's the correct way, running it for 6 years now.I don't see any need to change ./automation/utils.js.
Raspberry Pi 3 Model B Rev 1.2
Raspbian GNU/Linux 10 (buster, 32bit)
RaZberry by Z-Wave.Me(327) ZW0700 7.21.00 07.42/17367041 1025/257
Z-Way version v4.1.4 from 2024-07-30 21:24:02 +0300
Post Reply