#Node-red runs but get 'invalid config' notification

1 messages · Page 1 of 1 (latest)

lusty crest
#

I do use Node-red for a long time without any problem. Had to move complete HA environment to other machine. I believe since the move I get some strange things.
Node-red runs and everything works but in my notification I have an error: 'The following integrations and platforms could not be set up:' , please check your config and log.
Home Assistant Core shows 2 errors:
The log of the first error is: https://gist.github.com/johanvh83/6fdff6514c88019b089fa19152a10e40
the second error is: https://gist.github.com/johanvh83/563bc48262574547127d29737663ef11
Furthermore the Node-red log itself shows almost permanently:
14 Jan 12:34:35 - [info] [mqtt-broker:3922a6cd.ff2dca] Connection failed to broker: mqtt://192.168.2.136:1883
14 Jan 12:35:20 - [info] [mqtt-broker:3922a6cd.ff2dca] Connection failed to broker: mqtt://192.168.2.136:1883
14 Jan 12:36:05 - [info] [mqtt-broker:3922a6cd.ff2dca] Connection failed to broker: mqtt://192.168.2.136:1883
My MQTT broker is installed with default settings and Zigbee2MQTT, which also uses the MQTT broker, works without any problem.
Any advise to resolve is welcome!
Thanks

Gist

GitHub Gist: instantly share code, notes, and snippets.

Gist

GitHub Gist: instantly share code, notes, and snippets.

lusty crest
#

Try to figure out the source problem. Checked Node-red configuration and there is no MQTT config or setting at all.
Wondering why I have this 'Connection failed to broker' errors in the log.

hasty urchin
#

Is your MQTT broker set up as an HA add-on or an external container?

#

Is 192.168.2.136 actually the IP of whatever is hosting MQTT?

#

Did the IP possibly change

#

If you're running HAOS, you'll usually refer to addons by name

lusty crest
#

I use HA in a VM so the MQTT broker is an add-on.

#

192.168.2.136 is indeed very weird because my own network is 192.168.100.x
For the MQTT broker I don't see any IP setting, only ports but I used the default ones

hasty urchin
#

If you go to the menu in Node RED, hit Configuration nodes, there should be an mqtt-broker node.

#

Something like that probably

lusty crest
#

Looks incorrect!

#

have to enter 'mqtt://core-mosquitto:1883'?

hasty urchin
#

Yeah, that should work if they're both addons

lusty crest
#

15 Jan 13:28:59 - [info] [mqtt-broker:3922a6cd.ff2dca] Connection failed to broker: mqtt://core-mosquitto
15 Jan 13:29:14 - [info] [mqtt-broker:3922a6cd.ff2dca] Connection failed to broker: mqtt://core-mosquitto

hasty urchin
#

You'll probably need to configure a user/password as well on the security tab

lusty crest
#

Ok, may that be the same user as I use for Z2M or should I create another user for Node-Red?

hasty urchin
#

It'd be up to you. Personally, I prefer to create a user per app, but it'll work either way

lusty crest
#

Ok, then I create an additional one

#

No, doesn't solve the problem

hasty urchin
#

You may actually not need the scheme in the server

#

core-mosquitto instead

lusty crest
#

But the core log doesn't show any Node-red issue

15 Jan 13:35:51 - [info] Started flows
15 Jan 13:35:51 - [info] [mqtt-broker:3922a6cd.ff2dca] Connected to broker: mqtt://core-mosquitto
15 Jan 13:35:51 - [info] [mqtt-broker:Mosquitto] Connected to broker: NodeRed@mqtt://localhost:1883
[13:35:51] INFO: Starting NGinx...

hasty urchin
#

That seems to report it's working now

lusty crest
#

Yes Node-Red / MQTT comm seeems ok but when I restart HA, it pops-up with an invalid config for Node-Red

hasty urchin
#

What does the logs say when you go there

lusty crest
#

Same as I sent 13:28

hasty urchin
#

That's an integration problem, not an add-on problem

lusty crest
#

Maybe I should re-install the Node-Red add-on but I'm afraid to loose all flows

hasty urchin
#

Does your nodered integration possibly need to be updated

lusty crest
#

Current version: 20.2.4

#

Seems latest version from 5th Dec 2025

hasty urchin
#

That's your addon version

lusty crest
hasty urchin
#

Your error is from the integration to Home Assistant

#

If you go to Settings -> Integrations, there should be a Node-RED tile to click

lusty crest
hasty urchin
#

That might be from 2021

lusty crest
#

Oops, do I need this integration? No idea where it comes from honestly

hasty urchin
#

That page lists the things it'll give you

lusty crest
#

Thanks for your help anyway! Highly appreciated! I'll used HACS to update the Node-REd integration

#

I will check then if the things it provides are necesarry for me

hasty urchin
#

Looks like it's loaded now

lusty crest
#

After update, none of 3 entities I used, so deleted them and deleted the integration.
Thanks once more for all and have a good day!