remotec-scenemaster-zrc90 more than 10 event listeners - error
Posted: 07 Nov 2026 13:34
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
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