Home Assistant Community Add-on: Node-RED

:tada: Release v4.0.2

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v0.2.11 (#258)
  • :arrow_up: Updates node-red-contrib-bigtimer to v2.2.3 (#259)
  • :arrow_up: Updates snyk to v1.188.0 (#253)
  • :arrow_up: Updates node-red to v0.20.7 (#265)
  • :arrow_up: Updates node-red-contrib-home-assistant-websocket to v0.13.1 (#266)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

:tada: Release v4.0.3

Full Changelog

This is a general maintenance release.

:ambulance: This release also takes care of mitigating the recently discovered lodash vulnerability that is considered high severity. Not all Node-RED nodes have patched and updated to handle this vulnerability, so the add-on does this for you on a higher level. We keep this in place till we are sure all is OK.

More information is provided by Snyk (whom we use to protect and actively scan our add-ons):

https://snyk.io/vuln/SNYK-JS-LODASH-450202

:hammer: Changes

  • :arrow_up: Upgrades add-on base image to v4.0.2
  • :ambulance: Mitigate lodash vulnerabilities (#263)
  • :arrow_up: Pin snyk to 1.195.1 (#270)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

1 Like

I installed the add on, but gets this error:

Error loading settings file: /etc/node-red/config.js
Error: Cannot find module ‘/config/node-red/settings.js’
[14:36:20] INFO: Starting Node-RED…

Is those files suppose to be a part of the add on or is something else wrong? I’ve reinstalled the add on a couple of times, but the error persists.

@Morten_DK Sounds like you already had a /config/node-red folder.
The add-on only creates the user configuration if the folder is absent (in order to prevent overwriting user data).

Try removing (or renaming) that folder and restart the add-on, it will create the default configuration on startup.

I’m having issues getting Node Red to connect to Home Assistant after reinstalling HA and restoring from a snapshot. I’m able to access nodered via the sidebar, but none of the nodes are able to connect to home assistant. I see API errors across the board, auto-complete doesn’t work, no sign of connection.

I just updated my entire home assistant installation (HassOS, HA Supervisor v170, HA v96.2). I’ve tried messing with settings, reinstalling nodered and starting clean - no previous config files. Still no luck.

Any ideas? Everything worked flawlessly before this.

Update: I was able to get the connection to work by manually inputting my duckdns address and creating a token (unchecking use I have hassio). However auto-complete isn’t working for me yet.

:tada: Release v4.0.4

Full Changelog

This is a general maintenance release.

Upgrades RPi.GPIO, which finally has support for GPIO on the aarch64 platform :tada:

:hammer: Changes

  • :arrow_up: Updates RPi.GPIO to v0.7.0 (#271)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Hey frenck, I really appreciate the timely update of security vulnerabilities. Thank you! :raised_hands:

2 Likes

Updating here for completeness sake: My issue ultimately turned out to be with my auth files. Somewhere during my snapshot restoration, the authorization for the proxy HA uses to talk with add-ons stopped working. It affected node red and another add-on. I wanted a clean slate so I deleted all my auth files, onboarding, hassio, etc. I needed to recreate users and credentials and such, but my problem has disappeared.

There might be an easier way, but this way works if you’re having add-on connectivity issues with hassio!

:tada: Release v4.0.5

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :books: Add Timezone configuration details (#273)
  • :pencil2: Minor typo (#274)
  • :arrow_up: Updates node-red-contrib-home-assistant-websocket to v0.14.0 (#275)
  • :arrow_up: Upgrades patch to 2.7.6-r5
  • :arrow_up: Updates snyk to v1.199.2 (#272)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

Great, that did partly the trick :slight_smile:

I am getting the following instead:

[12:54:43] 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 GitHub - openresty/luajit2: OpenResty's Branch of LuaJIT 2 for OpenResty’s LuaJIT or, even better, consider using the OpenResty releases from OpenResty - Download)
28 Jul 12:54:47 - [info] [server:Home Assistant] WebSocket Connected to http://hassio/homeassistant

Does that error mean anything or is it just ignoring it?

That warning can be safely ignored.

Is there any “easy” way to upgrade luaJit?

I would like to know this as well, I never like seeing that warning.

Is it worth investigating?

Repeating: this can be safely ignored and cannot be fixed at this point.

I know this because I initially caused it by contributing to the Alpine Linux project.

If you are running a high traffic application or website, it might be worth to invest time in it, for a private app, you won’t notice the performance difference.

If you feel like discussing that, feel free to do so in a separate topic.

Thank You Friend. You are treasure in our community :+1::+1: thank You

:tada: Release v4.0.6

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-contrib-home-assistant-websocket to v0.14.1 (#277)
  • :arrow_up: Updates snyk to v1.200.1 (#278)

Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work: https://patreon.com/frenck

i’m getting consistent errors from the hass.io logs as follows:

19-07-29 15:31:59 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:04 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:04 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:04 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:09 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:09 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:09 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:14 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:14 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:14 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:19 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:19 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:19 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:24 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:24 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:24 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:29 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:29 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:29 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:34 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:34 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:34 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:39 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:39 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:39 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:44 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:44 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:44 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:49 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:49 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:49 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 15:32:54 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 15:32:54 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 15:32:54 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request running
19-07-29 15:32:56 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance
19-07-29 16:47:45 INFO (MainThread) [hassio.auth] Auth request from a0d7b954_vscode for admin
19-07-29 16:47:45 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token

I’m running 0.96.5 on ubuntu 18.04.2 LTS with supervisor 170 and node red v4.0.6. I tried uninstalling node red, deleting the docker image, and the node red directory in config and redirected all home assistant nodes to a new websocket, but the error keeps coming back. I believe it is also causing instability in hass.io because I’m seeing random reboots. I don’t have any trusted network settings in my configuration.yaml as of now but I have tried that to no avail. Any help is appreciated.

to add to the logs i posted this also happens when a restart is forced:

19-07-29 17:21:06 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API error: Received message 257:None is not str
19-07-29 17:21:06 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API connection is closed
19-07-29 17:21:11 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 17:21:11 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 17:21:11 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 17:21:14 INFO (MainThread) [hassio.api.security] /supervisor/logs access from a0d7b954_vscode
19-07-29 17:21:16 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 17:21:16 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered
19-07-29 17:21:16 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
19-07-29 17:21:17 WARNING (MainThread) [hassio.tasks] Watchdog found a problem with Home Assistant Docker!
19-07-29 17:21:17 INFO (SyncWorker_34) [hassio.docker.interface] Start homeassistant/qemux86-64-homeassistant
19-07-29 17:21:20 INFO (MainThread) [hassio.api.security] /supervisor/logs access from a0d7b954_vscode
19-07-29 17:21:21 INFO (MainThread) [hassio.api.proxy] Home Assistant WebSocket API request initialize
19-07-29 17:21:21 INFO (MainThread) [hassio.api.proxy] WebSocket access from a0d7b954_nodered

@sunglass_guy On restarts or upgrades of Home Assistant, this is expected to happen.
Node-RED keeps running in that period, and will try to reconnect as soon as possible. There errors occur on connection failure (which makes sense, since HA is not available) until HA is available again.

So not an issue, but by design.