# Any idea where MQTT settings on hass.io are?

**URL:** <https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479>\
**Category:** General\
**Created:** [6 December 2023 20:03 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479 "2023-12-06T20:03:51Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![eerke2021](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eerke2021/32/83528_2.png) [@eerke2021](https://discourse.nodered.org/u/eerke2021)\
**Post date:** [6 December 2023 20:03 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/1 "2023-12-06T20:03:51Z")

</div>

I keep getting error starting NR on Home Assistant Operating System:

6 Dec 19:36:14 - [info] [mqtt-broker:Home Assistant] Connection failed to broker: mqtt://192.168.0.227:1883  
6 Dec 19:36:29 - [info] [mqtt-broker:Home Assistant] Connection failed to broker: mqtt://192.168.0.227:1883  
Etc.  
That is my IP. Have not changed port  
Zigbee2MQTT and HA MQTT works, It is just NR. Thinking I need to find mqtt node settings file but can't find it

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 December 2023 20:11 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/2 "2023-12-06T20:11:16Z")

</div>

Does home assistant "give you" an MQTT broker?

Did you install an MQTT broker?

Is your computers IP `192.168.0.227` (it might have changed if you are using DHCP)?

Are the HA containers typically allowed to access your local network?

NOTE:  
As Home Assistant and Node-RED are containers (containers are typically isolated from each other and your OS), you might need to ask on the Home Assistant forum?

PS: I dont use HA nor do I typically use docker/containers as it just adds an annoying layer of pain.

---

<div class="post-metadata">

**Author:** ![eerke2021](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eerke2021/32/83528_2.png) [@eerke2021](https://discourse.nodered.org/u/eerke2021)\
**Post date:** [6 December 2023 20:24 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/3 "2023-12-06T20:24:33Z")

</div>

no, it is just mosquito. It does however give username/password for users of HA.  
Mosquito logs are just it refusing NR:

2023-12-06 20:13:15: New connection from 192.168.0.227:40556 on port 1883.  
error: received null username or password for unpwd check  
2023-12-06 20:13:15: Client nodered\_37c7982920a6df2a disconnected, not authorised.

On repeat I tried to instal tailscale (decentralised VPN, now gone) and it broke NR.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [6 December 2023 21:07 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/4 "2023-12-06T21:07:53Z")

</div>

> [@eerke2021](#):
>
> 2023-12-06 20:13:15: New connection from 192.168.0.227:40556 on port 1883.  
> error: received null username or password for unpwd check

That suggests that you are not providing user/pwd.

---

<div class="post-metadata">

**Author:** ![eerke2021](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eerke2021/32/83528_2.png) [@eerke2021](https://discourse.nodered.org/u/eerke2021)\
**Post date:** [6 December 2023 22:24 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/5 "2023-12-06T22:24:57Z")

</div>

yes, but Home Assistant provides them for logged in users and is doing so for zigbee2mqtt and itself etc. I can create one anyway but where in node red do I put mqtt user/password?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 December 2023 22:32 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/6 "2023-12-06T22:32:53Z")

</div>

Press the pencil next to the broker config,

![markup_17019019191238829939319549177058.jpg](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/191fcd20525ce8c486c643da3407f657697247ab.png)

Then select the security tab.

---

<div class="post-metadata">

**Author:** ![eerke2021](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eerke2021/32/83528_2.png) [@eerke2021](https://discourse.nodered.org/u/eerke2021)\
**Post date:** [6 December 2023 23:14 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/7 "2023-12-06T23:14:39Z")

</div>

Node Red doesn't start so I can't get there. I need to edit a file to allow it to start.

Those server settings persist restarts. Must be a file somewhere.

---

<div class="post-metadata">

**Author:** ![eerke2021](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eerke2021/32/83528_2.png) [@eerke2021](https://discourse.nodered.org/u/eerke2021)\
**Post date:** [7 December 2023 02:10 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/8 "2023-12-07T02:10:30Z")

</div>

"file": "/opt/node\_modules/@node-red/nodes/core/network/10-mqtt.js"

I suspect that location is it, but that folder is empty.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 December 2023 06:22 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/9 "2023-12-07T06:22:40Z")

</div>

Ok. It's becoming a little clearer (I think)

You need to start node-red in safe mode and search the flows (ctrl+f) for that IP then fix it up.

I have no idea how, from HA, you do that but I'm certain it is possible.

Edit: a quick Google search, tada: [Node-red Safe mode start - Node-RED - Home Assistant Community](https://community.home-assistant.io/t/node-red-safe-mode-start/387204)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 December 2023 08:26 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/10 "2023-12-07T08:26:15Z")

</div>

> [@eerke2021](#):
>
> Node Red doesn't start

The error you showed will not stop node red from running. What does the node red log show?

---

<div class="post-metadata">

**Author:** ![eerke2021](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eerke2021/32/83528_2.png) [@eerke2021](https://discourse.nodered.org/u/eerke2021)\
**Post date:** [7 December 2023 09:22 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/11 "2023-12-07T09:22:00Z")

</div>

The question is what does this mean:  
“ Under Node-red configuration”  
The config.nodes.json  
The config.nodes..json  
Or the settings.json  
The setting file makes most sense but it doesn’t include the word he used: configuration…  
Maybe I just try until it works.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 December 2023 09:37 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/12 "2023-12-07T09:37:17Z")

</div>

> [@eerke2021](#):
>
> The question is what does this mean:  
> “ Under Node-red configuration”

This is a HA thing (the post that said that was on the HA forum) - so go check your HA settings or ask on the HA forum?

If I were to guess, somewhere in HA are "Node-RED configuration settings", my guess is there is a settings page for Node-RED.

Let me search for you:  
Here - this looks promising: [https://youtu.be/AhjXv8XziRQ?t=142](https://youtu.be/AhjXv8XziRQ?t=142)

---

<div class="post-metadata">

**Author:** ![eerke2021](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eerke2021/32/83528_2.png) [@eerke2021](https://discourse.nodered.org/u/eerke2021)\
**Post date:** [7 December 2023 09:40 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/13 "2023-12-07T09:40:18Z")

</div>

It did used to show lots of the error I posted above but I uninstalled node Red, renamed the remaining Node aired folder and then reinstalled it. Now I end at this line with no error:  
“7 Dec 09:33:52 - [info] [server:Home Assistant] Connected to [http://supervisor/core“](http://supervisor/core%E2%80%9C)  
The log just stops there.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 December 2023 12:08 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/14 "2023-12-07T12:08:30Z")

</div>

The node red log starts with "Welcome to node red". If you can't find that log then you need to google for how to find it on HA, or ask on an HA forum. If you can find that log then post it here.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 February 2024 12:08 UTC](https://discourse.nodered.org/t/any-idea-where-mqtt-settings-on-hass-io-are/83479/15 "2024-02-05T12:08:45Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
