If you want to install extra NPM packages, you can achieve this using the following configuration option:
https://github.com/hassio-addons/addon-node-red#option-npm_packages
If you want to install extra NPM packages, you can achieve this using the following configuration option:
https://github.com/hassio-addons/addon-node-red#option-npm_packages
Hi all,
did someone ever experience issues with cpu load almost killing HA when using node-red?
I have just 2 simple flows running in node-red (manually triggered) and whenever i try to test things cpu load on the raspberry (hassos/latest version) goes up to 50/50+ % and node-red is beeing delayed or does not react at all anymore.
Do you have any idea how to solve that? Maybe related to efurban`s issue ?!
I am getting very slow response with node red as well. I had this before when i tried out the new authentication with legacy api, when i changed back to just api it was working fine again, maybe it something to do with them trying to implement that as the new standard, just some thing you may want to look in to.
To be honest i dont even know what the new authentication legacy api isā¦ i am quite new to HA
OK, so it was to do with the API interface.
Switched to http://hassio/homeassistant
and no more error.
Got rid of the delay issue too.
Presumably if you donāt use the direct API it actually goes via the internet and hence introduces a delay.
Anyway working now. Thanks!
Latest Hass.OS (1.9) and supervisor (125).
Btw, the URL is the same regardless if you are using https or not.
Disregard. All fixed up
After upgrading to supervisor 125 and HA 0.75.3 the api calls to http://hassio/homeassistant are working again.
Sadly yesterday I found that none of the nodes was running (every HA related node was green āconnectedā but there was no real communication, or at least the āapi-current-stateā werenāt updating, so the automations with some condition didnāt run)
Had to restart node-red from hassio panel to get it working again.
Thinking of implementing some kind of watchdog (maybe a HA automation) that watches node-red running and if not restarts the addon (or at least warns me)
I have setup af watch-dog flow with through the guide here.
i dont have any problems with nodes not responding.
Hope it helps
Thanks, I had something similar in mind. Iāll give it a try!
Ever since enabling the new auth component in .69, my log is full of messages about āPlease change to use bearer token accessā with the node red add-on. I remember reading something about that, but my google fu isnāt working for this issue. I posted this in the hassio and node-red discord room, but figured I would check here too, any help? I think this is causing some slowness / misfires for my automations
Hi! First of all, thanks for the add-on. It has been working great for me for a month.
Recently I had to reflash HassIO for my Rpi 3B+ (with this method, as HassOS USB Boot is not working) as there were troubles with HassIo 0.75 HassIO panel not showing up. Anyways my setup is back alive and Iām trying to get Node-Red working again. Currently HassIO version is: 0.75.3 and Supervisor: 125
I have tried:
but no matter what, it just doesnāt fire up.
The Error Iām getting is the following:
> [email protected] start /opt
> node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"
Failed to start server:
SyntaxError: Error parsing /opt/node_modules/options/package.json: Unexpected token in JSON at position 0
at JSON.parse (<anonymous>)
at readPackage (module.js:126:52)
at tryPackage (module.js:136:13)
at Function.Module._findPath (module.js:218:20)
at Function.Module._resolveFilename (module.js:545:25)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/opt/node_modules/ws/lib/WebSocket.js:16:15)
at Module._compile (module.js:652:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-08-15T18_32_34_969Z-debug.log
Any ideas what could be wrong with my setup? Tried to search for similar issue, but no results.
As seen reported on gitgub HA generates this message when an api call is made using the old auth methods.
As far as I know in v0.75.x the warning is only generated once per api call. Still annoying (specially for an average user that canāt change much in HA) but at least doesnāt fill the whole log screen.
Release v0.6.0! Things are getting crazy now!
Iāve added support for GPIO! Here, have a Pi!
This release adds password checks against the HaveIBeenPwned password database and now supports the use of your Home Assistant secrets file! So you can now use !secret nodered_password
as your password and the add-on will fetch the actual password from your secrets file.
Also upgraded: Node-RED; now running on version v0.19.1!
Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work : https://patreon.com/frenck
How do I put the payload from the previous node (msg.payload from a switch node for example) into the entity_id section of my service call? I have a switch node coming in with 0-100 for brightness and I want it to flow into this service node and set the brightness accordingly.
https://i.imgur.com/wBGabbK.png
@smartsoldier That question is not specific add-on question, but more like a general Node-RED question.
You would have more success on getting it answered if you created a separate topic in #third-party:node-red or hop into the Home Assistant Discord chat (channel #node-red)
Understood. Thanks for the advice.
Does anyone know what the issue is here? I receive the following error while starting the addon after updating to the version just released:
v0.6.0 / armhf[cont-finish.d] 99-message.sh: exited 99.
[cont-finish.d] done.
s6-maximumtime: warning: unable to wait for child process: Operation timed out
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
@roninfr Look a little higher, there should be more info. Those logs that matter usually start with FATAL:
.
Thanks Got it:
FATAL: You need to set a http_node username!
Is this new to this version?
Yes, authentication is now enforced and passwords are checked against the HaveIBeenPwned Password database. For new installations, SSL is now enabled by default.
Reasoning: āOne should do effort to lower the security, not the other way around.ā