configured credential_secret under supervisor > add-on > node-red > configuration
restarted HA, no warning secret warning
configured credential_secret under supervisor > add-on > node-red > configuration
restarted HA, no warning secret warning
Do not work for me, I get this warning in Node-RED
And the log states
7 Mar 10:34:23 - [warn] Error loading credentials: SyntaxError: Unexpected token ďż˝ in JSON at position 0
7 Mar 10:34:23 - [warn] Error loading flows: Error: Failed to decrypt credentials
Hereâs how I finally got the Node Red Add-On working:
Additional comments:
Thanks for the info, I tried al that and restarted the host, the supervisor, the machine, HA but still get the error that âCredentials could not be decrypted. The flow credential file is encrypted, but the projectâs encryption key is missing or invalid.â Did you get the same at first?
Yes, same error. The only other thing I did was to disable my mqtt-broker since I had only used that for testing once and no longer use it (In Node-Red - click the 3 config bars at upper-right - Configuration Nodes - double-click mqtt-broker). That node does have an SSL option as well as a username/password option on the Security tab. Not sure if that password was also being checked against HIBP site.
If you change credential_secret
in the add-on config you are going to get this error. All credentials collected as part of configuration of nodes in Node RED are stored in an encrypted file. This file is encrypted with the value you put in credential_secret
. If you change it then that file canât be decrypted like the error says, thatâs why the add-on says not to change it.
If you do want to change it you have two options:
Can anyone help out for a normal HA user (not hass.io)?
I have installed Node Red through the HACS (not the addon store, that does not exist natively in HA). After install I added the Node Red Integration but thereâs no config anywhere and nothing in the sidebar.
Iâm trying to access the Node-Red api.
Iâm on
OS: Home Assistant OS 5.12
Supervisor: supervisor-2021.03.6
Core: core-2021.3.4
Node-Red Community Addon: 8.2.0
The Node-Red docs tell me to add a user and hashed password to the adminAuth
object in settings.js
.
The /config/node-red/settings.js
file mentions the adminAuth
object is controlled by the addon and removed. it further states âknown as users in the add-on configurationâ.
First hurdle was the actual url of api to get the token. All Node-Red docs mention http://localhost:1880/auth/token
however this url get me a Status code 500: Internal Server Error
.
Some digging around I read that the url from the Node-Red docs probably end up in the Home Assistant server and for urls to an addon I should add /endpoint
to the url.
So I think the url should be http://localhost:1880/endpoint/auth/token
. On this I get a Status code 401: Unauthorized
.
I donât know what username or password I can use to access the api. I tried the http_static and http_node users, Home Assistant users, and even (against all odds) tried to add the adminAuth
object to the settings.js file anyways, but to no avail. Everytime I get the unautorized result.
My question is, how to access the Node Red api when using the Node Red addon?
This is not nodered, this is only intergration for nodered so you can integrate Nodered to HA. Nodered can create sensors and other stuff in HA with this integration. You still need nodered addon or nodered container.
Took me a while to get to this point, thanks !
Good time of day
I have the same problem
2 Apr 14:43:42 - Error: bind EADDRINUSE 0.0.0.0:9898
at dgram.js:337:20
at processTicksAndRejections (internal/process/task_queues.js:81:21)
Do You have resolved your question?
How can I change the port?
Thanks
I just updated node-red to the latest version and I am getting the following error:
Error loading settings file: /etc/node-red/config.js
If I rename my old folder and restart the addon it creates a new folder and it works, but as soon as I copy most of my config files to the new folder I get the same error.
By the way, that file doesnât exist, or at least it doesnât appear on VSCode. But it doesnât exist on the new folder that was working either, so I donât know what this error refers to
I donât know what happened, but after a couple of restarts it started working. Why? Not sure, because all I did was enter the docker container and I opened the settings file with vim, didnât changed it at all and after that it worked.
It takes a little time for node-red to start after HA has started. You probably just didnât wait long enough.
My node red was not taking time to start, it was starting and failing.
Can you please share node-red flow ⌠I have a little problem to make a flow and importing flow would solve my creation of flow problemâŚ
thank youâŚ
It is a comment from 2018, ALOT have happend since then. All the community add-ons have a watchdog toggle that restart the add-on if I freezes up. So that should fix it, I myself have deleted my watchdog flow a long time ago.
I agree⌠but in case that modbus freeze (happened before) no watchdog is helping⌠Node-Red do not know that modbus protocol failed⌠I need to procedure so that HA can restart Node-Red in case that my binary sensor is static for more that 300 secondsâŚ
Hi â
Did you find a solution for this? Iâm having the same issue.
I try to access https://server.local:1880/endpoint and get a http basic auth prompt.