Page 1 of 1

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

Posted: 07 Nov 2026 13:34
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

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

Posted: 08 Nov 2026 10:30
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.