I have no idea what is going on.
With the latest Node-Red update my devices arent being auto completed in node-red.
So if I write “cover.” it doesn’t show any of the HA covers.
If I write the correct cover name, the flow works as it should.
Node-Red is 3.0.2 (HA Addon 13.4.0).
HA is 2022.9.7
My config nodes looks like this:
For me it looks like it know all the nodes?
What is the way forward, export all flows, uninstall and reinstall node-red, or is there a simpler way?
I found some nodes in Manage Palette that needed updating.
The node-red-contrib-home-assistant-websocket was updated without issues
The node-red-contrib-modbus failed
logfile shows:
2022-10-01T08:27:39.719Z Install : node-red-contrib-modbus 5.23.2
2022-10-01T08:27:39.737Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-10-01T08:27:40.506Z [err] npm
2022-10-01T08:27:40.507Z [err] WARN config
2022-10-01T08:27:40.507Z [err] production Use `--omit=dev` instead.
2022-10-01T08:27:57.841Z [err] npm ERR! code 1
2022-10-01T08:27:57.841Z [err] npm ERR! path /config/node-red/node_modules/@serialport/bindings
2022-10-01T08:27:57.843Z [err] npm ERR! command failed
2022-10-01T08:27:57.843Z [err] npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2022-10-01T08:27:57.845Z [err] npm ERR! prebuild-install warn install No prebuilt binaries found (target=16.16.0 runtime=node arch=x64 libc=musl platform=linux)
2022-10-01T08:27:57.845Z [err] npm ERR! gyp info it worked if it ends with ok
2022-10-01T08:27:57.845Z [err] npm ERR! gyp info using [email protected]
2022-10-01T08:27:57.845Z [err] npm ERR! gyp info using [email protected] | linux | x64
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python checking Python explicitly set from command line or npm configuration
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python - "--python=" or "npm config get python" is "/usr/bin/python3"
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python - "/usr/bin/python3" is not in PATH or produced an error
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python checking if "python3" can be used
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python checking if "python" can be used
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python **********************************************************
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python You need to install the latest version of Python.
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python you can try one of the following options:
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python For more information consult the documentation at:
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python **********************************************************
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! find Python
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! configure error
2022-10-01T08:27:57.845Z [err] npm
2022-10-01T08:27:57.845Z [err] ERR! gyp ERR! stack Error: Could not find any Python installation to use
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! stack at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
2022-10-01T08:27:57.845Z [err] npm ERR!
2022-10-01T08:27:57.845Z [err] gyp ERR! stack at PythonFinder.<anonymous> (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
2022-10-01T08:27:57.845Z [err] npm ERR! gyp ERR! stack at exithandler (node:child_process:406:5)
2022-10-01T08:27:57.845Z [err] npm
2022-10-01T08:27:57.846Z [err] ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:418:5)
2022-10-01T08:27:57.846Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
2022-10-01T08:27:57.846Z [err] npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
2022-10-01T08:27:57.846Z [err] npm ERR! gyp ERR! stack at onErrorNT (node:internal/child_process:478:16)
2022-10-01T08:27:57.846Z [err] npm ERR! gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
2022-10-01T08:27:57.846Z [err] npm
2022-10-01T08:27:57.846Z [err] ERR! gyp ERR! System Linux 5.15.67
2022-10-01T08:27:57.846Z [err] npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2022-10-01T08:27:57.846Z [err] npm ERR! gyp ERR! cwd /config/node-red/node_modules/@serialport/bindings
2022-10-01T08:27:57.846Z [err] npm ERR! gyp ERR! node -v v16.16.0
2022-10-01T08:27:57.846Z [err] npm ERR! gyp ERR! node-gyp -v v9.0.0
2022-10-01T08:27:57.846Z [err] npm ERR!
2022-10-01T08:27:57.848Z [err] gyp ERR! not ok
2022-10-01T08:27:57.851Z [err]
2022-10-01T08:27:57.851Z [err] npm ERR! A complete log of this run can be found in:
2022-10-01T08:27:57.851Z [err] npm ERR! /root/.npm/_logs/2022-10-01T08_27_40_427Z-debug-0.log
2022-10-01T08:27:57.865Z rc=1
And the last failed as well, node-red-node-email:
2022-10-01T08:32:02.712Z Install : node-red-node-email 1.17.0
2022-10-01T08:32:02.760Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-10-01T08:32:03.604Z [err] npm
2022-10-01T08:32:03.605Z [err] WARN
2022-10-01T08:32:03.605Z [err] config production Use `--omit=dev` instead.
2022-10-01T08:32:07.802Z [err] npm
2022-10-01T08:32:07.802Z [err]
2022-10-01T08:32:07.803Z [err] ERR!
2022-10-01T08:32:07.803Z [err]
2022-10-01T08:32:07.803Z [err] code
2022-10-01T08:32:07.804Z [err] ENOTEMPTY
2022-10-01T08:32:07.804Z [err] npm
2022-10-01T08:32:07.805Z [err]
2022-10-01T08:32:07.805Z [err] ERR!
2022-10-01T08:32:07.805Z [err]
2022-10-01T08:32:07.805Z [err] syscall
2022-10-01T08:32:07.805Z [err] rename
2022-10-01T08:32:07.806Z [err] npm
2022-10-01T08:32:07.806Z [err]
2022-10-01T08:32:07.807Z [err] ERR!
2022-10-01T08:32:07.807Z [err]
2022-10-01T08:32:07.807Z [err] path
2022-10-01T08:32:07.807Z [err] /config/node-red/node_modules/node-red-node-email/node_modules/encoding-japanese/src
2022-10-01T08:32:07.808Z [err] npm
2022-10-01T08:32:07.808Z [err]
2022-10-01T08:32:07.808Z [err] ERR!
2022-10-01T08:32:07.808Z [err]
2022-10-01T08:32:07.809Z [err] dest
2022-10-01T08:32:07.810Z [err] /config/node-red/node_modules/.node-red-node-email-9kimBKpy/node_modules/encoding-japanese/src
2022-10-01T08:32:07.811Z [err] npm
2022-10-01T08:32:07.811Z [err]
2022-10-01T08:32:07.812Z [err] ERR!
2022-10-01T08:32:07.813Z [err]
2022-10-01T08:32:07.818Z [err] errno -39
2022-10-01T08:32:07.820Z [err] npm
2022-10-01T08:32:07.821Z [err] ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/node-red-node-email/node_modules/encoding-japanese/src' -> '/config/node-red/node_modules/.node-red-node-email-9kimBKpy/node_modules/encoding-japanese/src'
2022-10-01T08:32:07.825Z [err]
2022-10-01T08:32:07.825Z [err] npm ERR! A complete log of this run can be found in:
2022-10-01T08:32:07.825Z [err] npm ERR!
2022-10-01T08:32:07.825Z [err] /root/.npm/_logs/2022-10-01T08_32_03_536Z-debug-0.log
2022-10-01T08:32:07.835Z rc=217
During restart I see this in the log:
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /config/node-red/node_modules/node-red-node-email
npm ERR! dest /config/node-red/node_modules/.node-red-node-email-9kimBKpy
npm ERR! errno -39
npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/node-red-node-email' -> '/config/node-red/node_modules/.node-red-node-email-9kimBKpy'
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-10-01T08_33_36_353Z-debug-0.log
[10:33:40] WARNING: Failed un-installing conflicting packages
cont-init: info: /etc/cont-init.d/node-red.sh exited 0
But doing these updates didn’t solve the problem.
This should have resolved with version 0.45.3
It was updated to 0.45.3 above (though I forgot to mark the version), and now it says there is a 0.45.4, but that fails to install…
2022-10-01T14:06:59.616Z Install : node-red-contrib-home-assistant-websocket 0.45.4
2022-10-01T14:06:59.539Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-10-01T14:07:00.438Z [err] npm
2022-10-01T14:07:00.439Z [err]
2022-10-01T14:07:00.439Z [err] WARN
2022-10-01T14:07:00.440Z [err]
2022-10-01T14:07:00.440Z [err] config
2022-10-01T14:07:00.440Z [err] production Use `--omit=dev` instead.
2022-10-01T14:07:03.699Z [err] npm
2022-10-01T14:07:03.699Z [err] ERR!
2022-10-01T14:07:03.699Z [err] code ENOTEMPTY
2022-10-01T14:07:03.700Z [err] npm
2022-10-01T14:07:03.700Z [err] ERR! syscall rename
2022-10-01T14:07:03.700Z [err] npm
2022-10-01T14:07:03.700Z [err] ERR!
2022-10-01T14:07:03.700Z [err]
2022-10-01T14:07:03.700Z [err] path /config/node-red/node_modules/node-red-node-email
2022-10-01T14:07:03.700Z [err] npm ERR! dest /config/node-red/node_modules/.node-red-node-email-9kimBKpy
2022-10-01T14:07:03.701Z [err] npm ERR! errno -39
2022-10-01T14:07:03.703Z [err] npm ERR! ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/node-red-node-email' -> '/config/node-red/node_modules/.node-red-node-email-9kimBKpy'
2022-10-01T14:07:03.705Z [err]
2022-10-01T14:07:03.705Z [err] npm ERR! A complete log of this run can be found in:
2022-10-01T14:07:03.705Z [err] npm
2022-10-01T14:07:03.706Z [err] ERR! /root/.npm/_logs/2022-10-01T14_07_00_362Z-debug-0.log
2022-10-01T14:07:03.715Z rc=217
-----------------------------------------------------------
2022-10-01T14:17:58.989Z Install : node-red-contrib-home-assistant-websocket 0.45.4
2022-10-01T14:17:58.924Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2022-10-01T14:17:59.766Z [err] npm
2022-10-01T14:17:59.767Z [err]
2022-10-01T14:17:59.768Z [err] WARN
2022-10-01T14:17:59.768Z [err]
2022-10-01T14:17:59.768Z [err] config
2022-10-01T14:17:59.768Z [err] production Use `--omit=dev` instead.
2022-10-01T14:18:02.845Z [err] npm
2022-10-01T14:18:02.845Z [err]
2022-10-01T14:18:02.845Z [err] ERR!
2022-10-01T14:18:02.845Z [err]
2022-10-01T14:18:02.845Z [err] code
2022-10-01T14:18:02.846Z [err] ENOTEMPTY
2022-10-01T14:18:02.846Z [err] npm
2022-10-01T14:18:02.846Z [err]
2022-10-01T14:18:02.846Z [err] ERR!
2022-10-01T14:18:02.847Z [err]
2022-10-01T14:18:02.847Z [err] syscall
2022-10-01T14:18:02.847Z [err] rename
2022-10-01T14:18:02.847Z [err] npm
2022-10-01T14:18:02.847Z [err]
2022-10-01T14:18:02.847Z [err] ERR!
2022-10-01T14:18:02.848Z [err]
2022-10-01T14:18:02.848Z [err] path
2022-10-01T14:18:02.848Z [err] /config/node-red/node_modules/node-red-node-email
2022-10-01T14:18:02.848Z [err] npm
2022-10-01T14:18:02.848Z [err]
2022-10-01T14:18:02.849Z [err] ERR!
2022-10-01T14:18:02.849Z [err]
2022-10-01T14:18:02.849Z [err] dest
2022-10-01T14:18:02.849Z [err] /config/node-red/node_modules/.node-red-node-email-9kimBKpy
2022-10-01T14:18:02.850Z [err] npm
2022-10-01T14:18:02.850Z [err]
2022-10-01T14:18:02.850Z [err] ERR!
2022-10-01T14:18:02.850Z [err]
2022-10-01T14:18:02.850Z [err] errno
2022-10-01T14:18:02.851Z [err] -39
2022-10-01T14:18:02.853Z [err] npm
2022-10-01T14:18:02.853Z [err]
2022-10-01T14:18:02.854Z [err] ERR!
2022-10-01T14:18:02.854Z [err] ENOTEMPTY: directory not empty, rename '/config/node-red/node_modules/node-red-node-email' -> '/config/node-red/node_modules/.node-red-node-email-9kimBKpy'
2022-10-01T14:18:02.856Z [err]
2022-10-01T14:18:02.857Z [err] npm
2022-10-01T14:18:02.857Z [err]
2022-10-01T14:18:02.857Z [err] ERR!
2022-10-01T14:18:02.857Z [err] A complete log of this run can be found in:
2022-10-01T14:18:02.857Z [err] npm
2022-10-01T14:18:02.857Z [err]
2022-10-01T14:18:02.858Z [err] ERR!
2022-10-01T14:18:02.858Z [err] /root/.npm/_logs/2022-10-01T14_17_59_696Z-debug-0.log
2022-10-01T14:18:02.869Z rc=217