Node-red-contrib-rfxcom stopped working

Hi all

After restarting Home Assistant today, Node Red 6.2.0 wouldn’t start with the following error:
[22:43:30] INFO: Starting installation of custom NPM/Node-RED packages…

@serialport/[email protected] install /opt/node_modules/rfxcom/node_modules/@serialport/bindings
prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=12.15.0 runtime=node arch=x64 libc=musl platform=linux)
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:158:21)
gyp ERR! System Linux 5.4.0-40-generic
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /opt/node_modules/rfxcom/node_modules/@serialport/bindings
gyp ERR! node -v v12.15.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @serialport/[email protected] install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @serialport/[email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I updated to version 7.0, Node Red now starts but with the following message and therefore my flows aren’t working.

Welcome to Node-RED

18 Jul 22:30:03 - [info] Node-RED version: v1.1.0
18 Jul 22:30:03 - [info] Node.js version: v12.17.0
18 Jul 22:30:03 - [info] Linux 5.4.0-40-generic x64 LE
18 Jul 22:30:03 - [info] Loading palette nodes
18 Jul 22:30:04 - [info] Dashboard version 2.22.1 started at /endpoint/ui
/bin/sh: /opt/node_modules/node-red-node-pi-gpio/testgpio.py: not found
18 Jul 22:30:04 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
18 Jul 22:30:04 - [warn] ------------------------------------------------------
18 Jul 22:30:04 - [warn] [node-red-contrib-rfxcom/rfxcom] Error: Cannot find module ‘@serialport/bindings’
Require stack:

  • /opt/node_modules/serialport/lib/index.js
  • /opt/node_modules/rfxcom/lib/rfxcom.js
  • /opt/node_modules/rfxcom/lib/index.js
  • /opt/node_modules/rfxcom/index.js
  • /opt/node_modules/node-red-contrib-rfxcom/rfxcom.js
  • /opt/node_modules/@node-red/registry/lib/loader.js
  • /opt/node_modules/@node-red/registry/lib/index.js
  • /opt/node_modules/@node-red/runtime/lib/nodes/index.js
  • /opt/node_modules/@node-red/runtime/lib/index.js
  • /opt/node_modules/node-red/lib/red.js
  • /opt/node_modules/node-red/red.js
    18 Jul 22:30:04 - [warn] ------------------------------------------------------
    18 Jul 22:30:04 - [info] Settings file : /etc/node-red/config.js
    18 Jul 22:30:04 - [info] Context store : ‘default’ [module=memory]
    18 Jul 22:30:04 - [info] User directory : /config/node-red/
    18 Jul 22:30:04 - [warn] Projects disabled : editorTheme.projects.enabled=false
    18 Jul 22:30:04 - [info] Flows file : /config/node-red/flows.json
    18 Jul 22:30:04 - [info] Server now running at http://127.0.0.1:46836/
    18 Jul 22:30:04 - [info] Waiting for missing types to be registered:
    18 Jul 22:30:04 - [info] - rfxtrx-port
    18 Jul 22:30:04 - [info] - rfx-detector-in
    18 Jul 22:30:04 - [info] - rfx-doorbell-in
    18 Jul 22:30:04 - [info] - rfx-sensor
    18 Jul 22:30:04 - [info] - rfx-lights-in
    18 Jul 22:30:04 - [info] - rfx-blinds-in
    18 Jul 22:30:04 - [info] - rfx-meter
    [22:30:05] INFO: Starting NGinx…

I’ve tried reverting to older snapshots of NodeRed and none are working.

I am running Hassio, Home Assistant Supervised version 0.112.4 on an Intel NUC with Ubuntu 20.04 LTS and docker version 19.03.8

I found an article where someone else has issues on a Synology NAS

Does anyone have a fix for this or a way or reverting back to a previous version of node-red-contrib-rfxcom so I can get my flows working again?

My automations that use motion sensors and doorbell rely on the RFXCom.

Thanks in advance

Hi all

Is anybody else experiencing the same problem as me? If not, I assume its something unique to my environment.

On the Github link I provided earlier, someone has now worked around the issue by using an old version of node-red-contrib-rfxcom and manually intalling serialport, but I dont think they are running Home Assistant and I dont know how to apply the same configuration.

Thanks in advance for any help.

Hi all,

Same issue here…Used to work before with manual configuration of system_packages and npm_packages, but this no longer works…

[17:40:24] INFO: Starting NGinx...
23 Jul 17:40:24 - [info] Waiting for missing types to be registered:
23 Jul 17:40:24 - [info]  - rfxtrx-port
23 Jul 17:40:24 - [info]  - rfx-blinds-out
23 Jul 17:40:24 - [info]  - rfx-sensor
23 Jul 17:40:24 - [info]  - rfx-doorbell-in
23 Jul 17:40:24 - [info]  - rfx-meter
23 Jul 17:40:24 - [info]  - rfx-detector-in
23 Jul 17:40:24 - [info]  - rfx-PT2262-in

Found a quick fix by adding these dependencies in node-red config, section npm_packages :

npm_packages:  
- nan
  - serialport
  - node-red-contrib-rfxcom

Hope this helps a little

Thanks jibeer

Sadly, that hasn’t worked for me.

When I entered the packages you recommended, the config tool is reformatting what I enter onto a single line. I’m not sure if this matters?

system_packages: []
npm_packages:
  - nan - serialport - node-red-contrib-rfxcom

When node-red is restarted I now have the following messages

[cont-init.d] node-red.sh: exited 0.
[cont-init.d] user.sh: executing... 
[22:57:10] INFO: Starting installation of custom NPM/Node-RED packages...

> @serialport/[email protected] install /opt/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=12.17.0 runtime=node arch=x64 libc=musl platform=linux)
gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack     at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack     at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:167:21)
gyp ERR! System Linux 5.4.0-42-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/node_modules/@serialport/bindings
gyp ERR! node -v v12.17.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok

I then added “make” to the configuration like this

system_packages:
  - make
npm_packages:
  - nan - serialport - node-red-contrib-rfxcom
init_commands: []

The log now shows this


OK: 140 MiB in 52 packages
[23:02:58] INFO: Starting installation of custom NPM/Node-RED packages...

> @serialport/[email protected] install /opt/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=12.17.0 runtime=node arch=x64 libc=musl platform=linux)
make: Entering directory '/opt/node_modules/@serialport/bindings/build'
  CXX(target) Release/obj.target/bindings/src/serialport.o
make: Leaving directory '/opt/node_modules/@serialport/bindings/build'
make: g++: No such file or directory
make: *** [bindings.target.mk:110: Release/obj.target/bindings/src/serialport.o] Error 127
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.4.0-42-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /opt/node_modules/@serialport/bindings
gyp ERR! node -v v12.17.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 

> [email protected] postinstall /opt/node_modules/serialport
> node thank-you.js

Thank you for using serialport!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/serialport/donate


npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @serialport/[email protected] (node_modules/@serialport/bindings):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @serialport/[email protected] install: `prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
added 17 packages from 14 contributors and audited 1077 packages in 7.406s

37 packages are looking for funding
  run `npm fund` for details

found 4 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[23:03:06] INFO: Starting Node-RED...

> addon-node-red@ start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"

23 Jul 23:03:07 - [info] 

Welcome to Node-RED
===================

23 Jul 23:03:07 - [info] Node-RED version: v1.1.0
23 Jul 23:03:07 - [info] Node.js  version: v12.17.0
23 Jul 23:03:07 - [info] Linux 5.4.0-42-generic x64 LE
23 Jul 23:03:07 - [info] Loading palette nodes
23 Jul 23:03:08 - [info] Dashboard version 2.22.1 started at /endpoint/ui
/bin/sh: /opt/node_modules/node-red-node-pi-gpio/testgpio.py: not found
23 Jul 23:03:08 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
23 Jul 23:03:08 - [warn] ------------------------------------------------------
23 Jul 23:03:08 - [warn] [node-red-contrib-rfxcom/rfxcom] Error: Cannot find module '@serialport/bindings'
Require stack:
- /opt/node_modules/serialport/lib/index.js
- /opt/node_modules/rfxcom/lib/rfxcom.js
- /opt/node_modules/rfxcom/lib/index.js
- /opt/node_modules/rfxcom/index.js
- /opt/node_modules/node-red-contrib-rfxcom/rfxcom.js
- /opt/node_modules/@node-red/registry/lib/loader.js
- /opt/node_modules/@node-red/registry/lib/index.js
- /opt/node_modules/@node-red/runtime/lib/nodes/index.js
- /opt/node_modules/@node-red/runtime/lib/index.js
- /opt/node_modules/node-red/lib/red.js
- /opt/node_modules/node-red/red.js
23 Jul 23:03:08 - [warn] ------------------------------------------------------
23 Jul 23:03:08 - [info] Settings file  : /etc/node-red/config.js
23 Jul 23:03:08 - [info] Context store  : 'default' [module=memory]
23 Jul 23:03:08 - [info] User directory : /config/node-red/
23 Jul 23:03:08 - [warn] Projects disabled : editorTheme.projects.enabled=false
23 Jul 23:03:08 - [info] Flows file     : /config/node-red/flows.json
23 Jul 23:03:08 - [info] Server now running at http://127.0.0.1:46836/
23 Jul 23:03:08 - [info] Waiting for missing types to be registered:
23 Jul 23:03:08 - [info]  - rfxtrx-port
23 Jul 23:03:08 - [info]  - rfx-detector-in
23 Jul 23:03:08 - [info]  - rfx-doorbell-in
23 Jul 23:03:08 - [info]  - rfx-sensor
23 Jul 23:03:08 - [info]  - rfx-lights-in
23 Jul 23:03:08 - [info]  - rfx-blinds-in
23 Jul 23:03:08 - [info]  - rfx-meter
[23:03:08] INFO: Starting NGinx...
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)

Hey jag100, you’re nearly done, just try with these system_packages, so you will have all dependanecies installed

system_packages:
  - make
  - python3
  - g++
  - gcc
  - linux-headers

Massive thank you, Jibeer!

I’m working again!

For anyone else with this issue, the fix was to put the following into the configuration

system_packages:
  - make
  - python3
  - g++
  - gcc
  - linux-headers
npm_packages:
  - nan - serialport - node-red-contrib-rfxcom
init_commands: []

There are errors in the log on start-up, but Node-Red is working correctly so far.


Executing busybox-1.31.1-r16.trigger,
: 140 MiB in 52 packages,
(1/1) Installing make (4.3-r0),
(1/12) Installing binutils (2.34-r1),
(2/12) Installing gmp (6.2.0-r0),
(4/12) Installing libgomp (9.3.0-r2),
(3/12) Installing isl (0.18-r0),
(5/12) Installing libatomic (9.3.0-r2),
(6/12) Installing libgphobos (9.3.0-r2),
(8/12) Installing mpc1 (1.1.0-r1),
(9/12) Installing gcc (9.3.0-r2),
(7/12) Installing mpfr4 (4.0.2-r4),
(10/12) Installing musl-dev (1.1.24-r9),
(12/12) Installing g++ (9.3.0-r2),
(11/12) Installing libc-dev (0.7.2-r3),
: 333 MiB in 64 packages,
(1/1) Installing linux-headers (5.4.5-r1),
: 340 MiB in 65 packages,
OK: 28525 distinct packages available,
[11:31:05] INFO: Starting installation of custom NPM/Node-RED packages...,
> @serialport/[email protected] install /opt/node_modules/@serialport/bindings,
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild,
prebuild-install WARN install No prebuilt binaries found (target=12.17.0 runtime=node arch=x64 libc=musl platform=linux),
make: Entering directory '/opt/node_modules/@serialport/bindings/build',
  CXX(target) Release/obj.target/bindings/src/serialport.o,
In file included from ../src/./serialport.h:6,,
                 from ../src/serialport.cpp:1:,
../../../nan/nan.h: In function 'void Nan::AsyncQueueWorker(Nan::AsyncWorker*)':,
../../../nan/nan.h:2294:62: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type],
 2294 |     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete),
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)':,
      |                                                              ^,
../src/serialport.cpp:78:69: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type],
   78 |   uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);,
      |                                                                     ^~~~~~~~~~~~~,
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)':,
../src/serialport.cpp:135:71: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type],
  135 |   uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);,
      |                                                                       ^~~~~~~~~~~~~~~,
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)':,
../src/serialport.cpp:175:70: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type],
  175 |   uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);,
      |                                                                      ^~~~~~~~~~~~~~,
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)':,
../src/serialport.cpp:215:70: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type],
  215 |   uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);,
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)':,
../src/serialport.cpp:270:68: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type],
  270 |   uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);,
      |                                                                    ^~~~~~~~~~~~,
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)':,
../src/serialport.cpp:314:68: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type],
  314 |   uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);,
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)':,
../src/serialport.cpp:363:76: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type],
  363 |   uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);,
      |                                                                            ^~~~~~~~~~~~~~~~~~~~,
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)':,
../src/serialport.cpp:409:70: warning: cast between incompatible function types from 'void (*)(uv_work_t*)' {aka 'void (*)(uv_work_s*)'} to 'uv_after_work_cb' {aka 'void (*)(uv_work_s*, int)'} [-Wcast-function-type],
  409 |   uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);,
../src/serialport.cpp: At global scope:,
../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of 'ToParityEnum' [-Wparentheses],
  430 | SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {,
      |                            ^,
../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of 'ToStopBitEnum' [-Wparentheses],
  449 | SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {,
      |                              ^,
In file included from ../../../nan/nan.h:56,,
                 from ../src/./serialport.h:6,,
/root/.cache/node-gyp/12.17.0/include/node/node.h:608:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local<v8::Object>)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type],
  608 |       (node::addon_register_func) (regfunc),                          \,
      |                                           ^,
/root/.cache/node-gyp/12.17.0/include/node/node.h:642:3: note: in expansion of macro 'NODE_MODULE_X',
  642 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage),
      |   ^~~~~~~~~~~~~,
../src/serialport.cpp:483:1: note: in expansion of macro 'NODE_MODULE',
  483 | NODE_MODULE(serialport, init);,
      | ^~~~~~~~~~~,
  CXX(target) Release/obj.target/bindings/src/serialport_unix.o,
In file included from ../src/serialport.h:6,,
                 from ../src/serialport_unix.cpp:2:,
../src/serialport_unix.cpp: In function 'int setup(int, OpenBaton*)':,
../src/serialport_unix.cpp:176:82: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=],
  176 |     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);,
      |                                                                                  ^~,
../src/serialport_unix.cpp:176:13: note: 'snprintf' output 20 or more bytes (assuming 1043) into a destination of size 1024,
      |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~,
../src/serialport_unix.cpp: In function 'void EIO_Open(uv_work_t*)':,
../src/serialport_unix.cpp:86:84: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=],
   86 |     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);,
      |                                                                                    ^~,
../src/serialport_unix.cpp:86:13: note: 'snprintf' output 22 or more bytes (assuming 1045) into a destination of size 1024,
      |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~,
  CXX(target) Release/obj.target/bindings/src/poller.o,
In file included from ../src/poller.cpp:1:,
  CXX(target) Release/obj.target/bindings/src/serialport_linux.o,
  SOLINK_MODULE(target) Release/obj.target/bindings.node,
  COPY Release/bindings.node,
make: Leaving directory '/opt/node_modules/@serialport/bindings/build',
> node thank-you.js,
> [email protected] postinstall /opt/node_modules/serialport,
Thank you for using serialport!,
If you rely on this package, please consider supporting our open collective:,
> https://opencollective.com/serialport/donate,
+ [email protected],,
1,
+ [email protected],
+ [email protected],
added 18 packages from 14 contributors and audited 1077 packages in 8.016s,
37 packages are looking for funding,
  run `npm fund` for details,
found 4 low severity vulnerabilities,
  run `npm audit fix` to fix them, or `npm audit` for details,
[cont-init.d] user.sh: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
[11:31:14] INFO: Starting Node-RED...,
> addon-node-red@ start /opt,
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js",
24 Jul 11:31:14 - [info] ,
===================,
Welcome to Node-RED
1 Like

Glad to hear that! BTW, the logs don’t really show errors but more exactly shows warnings…
Happy RFXCom :blush:

rfxcom not working again on latest addon 8.1.0

Any idea how to fix that?

https://community.home-assistant.io/t/home-assistant-community-add-on-node-red/55023/953

I just upgraded from 7.2.11 to 8.1.1 and rfxcom is working for me.

I also no longer need the workaround in the system_packages and npm_packages part of the configuration. I don’t know if this was part of this release or a previous one. My config is back to the following:-

system_packages: []
npm_packages:
  - node-red-contrib-rfxcom
init_commands: []

At first, I couldn’t upgrade, I was getting an error in supervisor to say it was unhealthy. I resolved this by running an os update
sudo apt-get dist-upgrade

Hope this may help

On 8.1.1 rfxcom works again :smile:

I recently updated to 13.5.1 and had this issue with [err] path /config/node-red/node_modules/@serialport/bindings

After adding these packages (found in this thread) it worked again:

npm_packages:
  - nan
  - serialport
  - node-red-contrib-rfxcom
system_packages:
  - make
  - python3
  - g++
  - gcc
  - linux-headers

Thanks and also maybe helpfull for others?

Newbie here. I have the same problem when trying to install Node-red-contrib-rfxcom. I tried adding the packages to my configuration as above but when I ran the check under Developer Tools prior to restart I got the error below so didn’t attempt restart:-

Configuration invalid!
 Integration error: system_packages - Integration 'system_packages' not found.
Integration error: init_commands - Integration 'init_commands' not found.
Integration error: npm_packages - Integration 'npm_packages' not found.