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
remotec-scenemaster-zrc90 more than 10 event listeners - error
Re: remotec-scenemaster-zrc90 more than 10 event listeners - error
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.As a workaround I set the defaultMaxListeners to 30
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
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