Home Assistant Community Add-on: Node-RED

:tada: Release v5.0.4

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-node-email to v1.7.2 (#362)
  • :arrow_up: Updates node-red to v1.0.3 (#369)
  • :arrow_up: Updates snyk to v1.251.0 (#360)
  • :arrow_up: Updates node-red-contrib-cast to v0.2.12 (#373)
  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v1.0.14 (#378)
  • :arrow_up: Updates node-red-contrib-modbus to v5 (#379)
  • :arrow_up: Updates node-red-dashboard to v2.19.1 (#380)
  • :arrow_up: Updates node-red-node-serialport to v0.10.0 (#381)
  • :arrow_up: Upgrades add-on base image to v5.0.3
  • :books: Update add-on installation instructions
  • :ambulance: Fixes Node-RED dashboard patch to be compatible with 2.19.1 and higher

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

Release v5.0.5

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-node-twitter to v1.1.6 (#385)
  • :arrow_up: Updates node-red-node-sentiment to v0.1.6 (#383)
  • :arrow_up: Updates node-red-node-feedparser to v0.1.15 (#384)
  • :arrow_up: Updates node-red-node-email to v1.7.3 (#382)
  • :arrow_up: Updates snyk to v1.256.0 (#372)
  • :hammer: Increase max client body size to 64M

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

:tada: Release v5.0.6

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-dashboard to v2.19.2 (#387)
  • :arrow_up: Updates node-red-contrib-modbus to v5.2.0 (#391)
  • :arrow_up: Updates snyk to v1.258.1 (#388)

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

Hi all

I’m using this component and I would like to write a file in the Home Assistant /share folder.

How should I point to use this folder in the write file node?

I’ve tried using /share/file.txt but does not work.

Thanks

Is it how does range node normally work (I can not find it in documentation)?: scalling range 0 to 100 on 0 to 10 or 0 to minus 100 on 0 to minus 10 works great. But scalling minus 100 to 100 on minus 10 to 10 do not work well. I looks like it take only some negative values.

You might have to add that folder to your whitelist.

homeassistant:
  name: Home
  latitude: !secret latitude
  longitude: !secret longitude
  elevation: 102
  unit_system: metric
  time_zone: Europe/Stockholm
  packages: !include_dir_named packages
  whitelist_external_dirs:
    - /share

:tada: Release v5.0.7

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v1.0.16 (#393)
  • :arrow_up: Updates node-red-contrib-home-assistant-websocket to v0.17.1 (#395)
  • :arrow_up: Upgrades git to 2.22.2-r0
  • :arrow_up: Updates snyk to v1.262.0 (#397)

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

Sweet!!! this worked for my issues. I guess the URL changed somewhere along the line

Just installed this but unable to access the dashboard using any method (via Ingress, using the sidebar, direct to port 1880). My Hass.io server is running Ubuntu 18.04 and I’ve opened port 1880, but cannot access Node-RED (using the direct method I do get a login screen now but when I log in it says ‘Please add some UI nodes to your flow and redeploy’). I’ve tried opening various ports with no success. If I disable UFW entirely it works just fine, but I’d rather not disable the whole firewall. Which ports should I open so I can access Node-RED?

  • Open SSH terminal (via the SSH & Web Terminal add-on under Hassio)
  • Open the Phoscon App (open web-ui in the deCONZ add-on under Hassio)
  • In the Phoscon App goto: Hamburger menu → Gateway → Advanced → Click ‘Authenticate app’ (This will open the gateway for 60 seconds)
  • In the SSH terminal type:
    curl -d ‘{“devicetype”: “[give the application name, for instance Node-RED]”}’ -H “Content-Type: application/json” -X POST http://[your local ip address for Hassio / deCONZ]:40850/api
  • This should result in:
    [{“success”:{“username”:“[this is the api-key]”}}]#
  • Goto Node-RED and install the ‘node-red-contrib-deconz’ pallette
  • Drag the ‘deconz-event’ node in a flow
  • Fill in the server details:
    Name: Conbee2
    IP Adress: [your local ip address for Hassio / deCONZ]
    Port: 40850
    API key: [the api-key from above]
    WebSocket Port: 40860

Followed your path (carefull quotes and double quotes in the forum are not the right ones in curl command line), then I had to do a nmap -p to find the websocket port (8081 in my case). I’m running in Docker over Ubuntu 19, my setup is
Name: Conbee2
IP Adress: 172.30.33.1
Port: 40850
API key: [the api-key ]
WebSocket Port: 8081

:tada: Release v6.0.0

Full Changelog

This is a general maintenance release, however, it contains major upgrades to the dependencies in this add-on, therefore this is a major version bump.

:hammer: Changes

  • :arrow_up: Updates node-red-dashboard to v2.19.3 (#401)
  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v1.0.24 (#406)
  • :fireworks: Updates maintenance/license year to 2020
  • :pencil2: Funding adjustments
  • :pencil2: Fixes some spelling and grammar
  • :arrow_up: Upgrades add-on base image to v6.0.1
  • :arrow_up: Upgrades g++ to 9.2.0-r3
  • :arrow_up: Upgrades gcc to 9.2.0-r3
  • :arrow_up: Upgrades python2 to 2.7.16-r3
  • :arrow_up: Upgrades libc-dev to 0.7.2-r0
  • :arrow_up: Upgrades git to 2.24.1-r0
  • :arrow_up: Upgrades lua-resty-http to 0.15-r0
  • :arrow_up: Upgrades nginx to 1.16.1-r4OA
  • :arrow_up: Upgrades nodejs to 12.14.0-r0
  • :arrow_up: Updates node-red-contrib-home-assistant-websocket to… (#409)
  • :arrow_up: Updates snyk to v1.272.0 (#398)

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

Thanks for the update. Just updated it on my Synology NAS and works as great as usual!

1 Like

:tada: Release v6.0.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-contrib-cast to v0.2.13 (#410)
  • :arrow_up: Updates node-red-contrib-home-assistant-websocket to… (#416)
  • :hammer:Install all npm packages in a single command (#412)
  • :arrow_up: Updates snyk to v1.274.0 (#414)
  • :arrow_up: Updates node-red-contrib-home-assistant-websocket to… (#418)
  • :arrow_up: Updates node-red-node-email to v1.7.4 (#420)
  • :arrow_up: Updates snyk to v1.277.3 (#419)

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

Hey all. I’ve googled a bit and not found a working answer to this problem.

All my automations appear to be running on UTC. Interestingly, the time shown in the debug notifications is correct, but timestamp nodes output UTC and my automations don’t appear to be triggering correctly.

Not seeing an answer in this thread. Does anyone have a good solution for this that works across flows?

Try the documentation of the add-on…

https://github.com/hassio-addons/addon-node-red#time-zone-configuration

Well, now I feel quite dumb. Mea culpa. Thanks for your help.

1 Like

:tada: Release v6.0.2

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-contrib-home-assistant-websocket to v0.19.4 (#425)
  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v1.0.25 (#422)
  • :arrow_up: Updates snyk to v1.278.1 (#423)

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

Hey all, having some issues with Node Red after upgrading either Node Red or HA. I currently run HA on HASS.IO on a raspberry Pi3+. I am not sure what information is needed so I will do my best to add below.

When trying to access node red I get 502: Bad Gateway

This error I get in the homeassistant log
20-01-22 15:54:32 ERROR (SyncWorker_19) [hassio.docker] Can't start addon_a0d7b954_nodered: 403 Client Error: Forbidden ("endpoint with name addon_a0d7b954_nodered already exists in network host")

Inside the Node Red add on, I get the following:

 Add-on version: 6.0.2
 You are running the latest version of this add-on.
 System: HassOS 2.12  (armv7 / raspberrypi3)
 Home Assistant version: 0.104.3
 Supervisor version: 195
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] node-red.sh: executing... 
[12:46:57] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[12:47:05] INFO: Password is NOT in the Have I Been Pwned database! Nice!
patching file nodes/ui_base.html
Hunk #1 succeeded at 1243 (offset 712 lines).
audited 36 packages in 5.072s
found 1 moderate severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
[cont-init.d] node-red.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[12:48:50] INFO: Starting Node-RED...
> hassio-addon-node-red@ start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
22 Jan 12:50:54 - [info] 
Welcome to Node-RED
===================
22 Jan 12:50:56 - [info] Node-RED version: v1.0.3
22 Jan 12:50:56 - [info] Node.js  version: v12.14.0
22 Jan 12:50:56 - [info] Linux 4.14.98-v7 arm LE
22 Jan 12:50:57 - [info] Loading palette nodes
Terminated
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

I have tried at this point to uninstall and reinstall as well as resets etc. but have not made any headway. Any help would be greatly appreciated. Please let me know if any more information is needed.

:tada: Release v6.0.3

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v1.0.26 (#426)
  • :arrow_up: Updates node-red-contrib-home-assistant-websocket to v0.19.5 (#429)
  • [Snyk] Fix for 1 vulnerabilities (#428)
  • :arrow_up: Updates snyk to v1.281.0 (#427)
  • :arrow_up: Upgrades nginx to 1.16.1-r6

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

1 Like

Hi everyone,

I updated the Node-Red add-on for hass.io today to v6.0.3 and now it won’t start any more.

Hass.io is running in docker on a debian host system (installed via the install script).

The log says, it cannot read the config file. Startup seems normal, until it outputs the error and then gets caught in a loop:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 

-----------------------------------------------------------
 Hass.io Add-on: Node-RED
 Flow-based programming for the Internet of Things
-----------------------------------------------------------
 Add-on version: 6.0.3
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 10 (buster)  (amd64 / qemux86-64)
 Home Assistant version: 0.104.3
 Supervisor version: 195
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] node-red.sh: executing... 
patching file nodes/ui_base.html
Hunk #1 succeeded at 1243 (offset 712 lines).
[cont-init.d] node-red.sh: exited 0.
[cont-init.d] user.sh: executing... 
[cont-init.d] user.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[16:56:56] INFO: Starting Node-RED...

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

Error loading settings file: /etc/node-red/config.js
[16:56:57] INFO: Starting Node-RED...

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

Error loading settings file: /etc/node-red/config.js
[16:56:58] INFO: Starting Node-RED...

A re-install of the add-on and restarts of homeassistant or the host system didn’t help.
I would be grateful for a hint where to look for a fix.

Cheers,
Matou