Home Assistant Community Add-on: Node-RED

:tada: Release v4.1.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-dashboard to v2.16.2 (#297)
  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v0.2.14 (#295)
  • :arrow_up: Updates node-red-node-serialport to v0.8.6 (#298)
  • :arrow_up: Updates node-red-contrib-influxdb to v0.3.1 (#300)
  • :arrow_up: Upgrades nodejs to 10.16.3-r0

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

1 Like

:tada: Release v4.2.0

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red to v0.20.8 (#302)
  • :arrow_up: Updates node-red-contrib-time-range-switch to v0.6.2 (#303)
  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v0.2.15 (#305)
  • :arrow_up: Updates node-red-contrib-time-range-switch to v0.6.3 (#307)
  • :arrow_up: Updates node-red-dashboard to v2.16.3 (#308)
  • :arrow_up: Updates snyk to v1.228.0 (#290)
  • :arrow_up: Updates node-red-node-smooth to v0.1.2 (#310)
  • :arrow_up: Updates node-red-node-random to v0.1.4 (#311)
  • :arrow_up: Upgrades add-on base image to v5.0.1
  • :fire: Removes secrets support, now natively supported by Hassio

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

1 Like

:tada: Release v4.2.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-contrib-cast to v0.2.10 (#312)

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

Last night I upgraded from HA 98.5 to 99.3, and NR from 4.1.1. to 4.2.1. NR failed to restart. Logs suggested a problem with the credential_secret value in my addon config. In the addon config editor, I get a validation error if I use my secrets file.

"credential_secret": "!secret nodered_secret", results in:

not a valid value for dictionary value @ data['options']. Got {'credential_secret': '!secret nodered_secret', 'dark_mode': True, 'http_no...

and NR fails to start. But if I put in the actual credential secret value directly, then validation works and NR starts up fine. Did I miss some change with the way secrets work with NR addon? Thanks!

Where should I store files and how do I access them externally, i.e. from a browser? (using icons/images for a dashboard). I tried having them in share/node-red but I couldnā€™t access them

That works, but they are accessible on the homeassistant port 8123, not on the node-red port 1880

Does anyone know an easy way to allow access to node-red when connecting remotely ?
Iā€™m using the latest version with Ingress, and Iā€™m using the Caddy proxy addon for Hassio.
I can connect to my homeassistant remotely just fine, but the node red UI isnā€™t available.
Anyone know the magic to get it working ?

Apologies if this has been answered in this mammoth thread already, but I couldnā€™t spot anything.

Iā€™m connecting to HA from the outside via a Nginx reverse proxy. Node Red with Ingress works just fine in this case. Seems to be an issue with Caddy on your side.

1 Like

Interestingā€¦ thanks for that - no special config required on the NGinx side I assume? - just using the default addon config ?

If so, Iā€™ll definitely check that out :slight_smile:

1 Like

Yes, standard setup. I used the official Nginx add-on until recently. Now I switched to the Nginx proxy manager community add-on. Works with both.

1 Like

:tada: Release v5.0.0

Full Changelog

:warning: This is a MAJOR release, create snapshots before upgrading! :warning:

:tada: This release upgrades the add-on to use Node-RED 1.0! :tada:

Node-RED has put out an extensive blog post about this major release, informing you of all the major changes in this release.

One thing, in particular, to keep in mind: This release changes the message passing between nodes to be always asynchronous rather than it being sometimes asynchronous and sometimes synchronous depending on the implementation of individual nodes.

This will, in some cases, change the relative ordering of messages when a flow branches. For more details on this change, read this blog post.

But wait, there is more!

  • All nodes missing in Node-RED v1.0 have been added/compensated for :smiley:
  • The Midnight Red theme by @bonanitech, has been updated and now supports the Dashboard as well! :sunglasses:
  • Our friends at Snyk.io reduced some vulnerabilities :heart:
  • Everything else has been upgraded to latest greatest :rocket:

:hammer: Changes

  • :arrow_up: Updates node-red-contrib-cast to v0.2.11 (#314)
  • :arrow_up: Updates node-red-node-serialport to v0.8.8 (#317)
  • :arrow_up: Updates node-red-contrib-influxdb to v0.4.0 (#323)
  • :arrow_up: Update dark theme configuration (#332)
  • :arrow_up: Updates node-red-dashboard to v2.17.1 (#334)
  • :ambulance: node-red/package.json & node-red/.snyk to reduce vulnerabilities (#327)
  • :arrow_up: Pin snyk to 1.234.2 (#336)
  • :arrow_up: Updates node-red to v1.0.2 (#337)
  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v1.0.5 (#338)
  • :arrow_up: Upgrades openssh-client to 8.1_p1-r0
  • :fire: Removes modclean, conflicts with Node-RED 1.0
  • :hammer: Adds no audit & update notifier to npm install
  • :sparkles: Re-adds missing nodes in Node-RED 1.0
  • :hammer: Sets node engine >=10
  • :fire: Removes notice, dark theme now supports Node-RED Dashboard
  • :books: Update documentation to match latest state of the add-on

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

3 Likes

Hi there,

This is probably a terrible beginnerā€™s error, but I have been trying all morning and searching on the webā€¦ I want to pass msg.topic from a node that gets weather condition from sensor.br_condition to a ā€˜call service nodeā€™ to send to my phone. It works with text but now I need to substitute the msg topic in the Json to call the serviceā€¦ I have tried {{payload}}, a template node, a json nodeā€¦ Can anyone point me towards a solution?

OK after some further testing and more coffee I think I found the solution myself. Documenting here. I need a template but the data field in the call service was a bit of a mystery. I created a template using:

{
"title": "testmessage",
"message": "{{payload}}"}

In the data field of the call service node I specified a FUNCTION (not JSON) msg.payload. This works!

If you want to verify or play around with my test flow, here it is: (donā€™t forget to replace service with your iOS device).

[{"id":"6b6adad2.48e144","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"6cfc5d13.e5919c","type":"api-call-service","z":"6b6adad2.48e144","name":"iphone_bericht","server":"13794b3e.0d6f05","version":1,"service_domain":"notify","service":"ios_iphone","entityId":"","data":"msg.payload","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":330,"y":300,"wires":[["f18ead38.554a"]]},{"id":"2db9f978.772a3e","type":"inject","z":"6b6adad2.48e144","name":"","topic":"","payload":"tester","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":110,"y":220,"wires":[["6e2890b6.bb1ee"]]},{"id":"f18ead38.554a","type":"debug","z":"6b6adad2.48e144","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":620,"y":320,"wires":[]},{"id":"6e2890b6.bb1ee","type":"template","z":"6b6adad2.48e144","name":"testing","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"title\": \"testmessage\",\n\"message\": \"{{payload}}\"}","output":"json","x":310,"y":500,"wires":[["6cfc5d13.e5919c","7e07c58e.665594"]]},{"id":"7e07c58e.665594","type":"debug","z":"6b6adad2.48e144","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":680,"y":520,"wires":[]},{"id":"13794b3e.0d6f05","type":"server","z":"","name":"Home Assistant"}]

You can import this in Node-Red.

The possibilities of Node-Red are mind-boggling!

:tada: Release v5.0.1

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :hammer: Reorganize palette categories default order (#342)
  • :books: Update screenshot (#344)
  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v1.0.7 (#346)
  • :arrow_up: Updates snyk to v1.236.1 (#348)

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.2

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-node-msgpack to v1.2.0 (#349)
  • :arrow_up: Updates node-red-node-suncalc to v0.0.12 (#350)
  • :arrow_up: Updates node-red-contrib-home-assistant-websocket to v0.16.3 (#353)
  • :arrow_up: Updates snyk to v1.239.0 (#354)

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

HI,

Failed to upgrade from 3.0.1 to 5.0.1 with the following log:

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: 5.0.1
You are running the latest version of this add-on.
System: Ubuntu 18.04.2 LTS (aarch64 / qemuarm-64)
Home Assistant version: 0.100.2
Supervisor version: 192

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ā€¦
patching file nodes/ui_base.html
Hunk #1 succeeded at 1243 (offset 712 lines).
patch: **** Canā€™t rename file nodes/ui_base.html to nodes/ui_base.html.orig : Invalid argument
[cont-init.d] node-red.sh: exited 2.
[cont-finish.d] executing container finish scriptsā€¦
[cont-finish.d] 99-message.sh: executingā€¦

            Oops! Something went wrong.

We are so sorry, but something went terribly wrong when
starting or running this add-on.

Be sure to check the log above, line by line, for hints.

[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.

It was working fine with 3.0.1, but reported error as shown in the log when upgrading to 5.0.1. Even tried to deinstall node-red from the hassio and reinstalled with same error. Anyone figured out where is this ui_base.html as I didnā€™t find any file of that name?

Iā€™m carrying a general Node-RED/Hass.io question:
Seeing as service calls now support YAML as well as Json, is it possible to call services from Node-RED using yaml as well? the thought crossed my mind just now :drooling_face:

:tada: Release v5.0.3

Full Changelog

This is a general maintenance release.

:hammer: Changes

  • :arrow_up: Updates node-red-contrib-interval-length to v0.0.4 (#355)
  • :arrow_up: Updates node-red-node-ping to v0.1.0 (#356)
  • :arrow_up: Updates node-red-node-base64 to v0.2.0 (#358)
  • :arrow_up: Updates node-red-contrib-theme-midnight-red to v1.0.8 (#359)
  • :arrow_up: Updates snyk to v1.241.1 (#357)
  • :arrow_up: Upgrades nginx to 1.16.1-r1

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

It was wondering the same thing.