Hass agent not connecting to mqtt

i have tried to install hass agent for the first time and it is refusing to connect with mqtt the most notible things i could find in the log at a glance are please escuse me as im new to all this i belive i have set up mqtt correctly? as i have got it running for frigate i got it running for a bit but after a home assistant restart it refuses to connect again here is my log i am unsure whats what or any specifics so ill throw the whole thing here any help is appreciated
Solution:
I would restart all network equipment. Had issues with my mesh where it lost connection from tiem to time.
Jump to solution
104 Replies
HASS.Agent Helper
HASS.Agent Helperโ€ข13mo ago
Help us Help Others!
To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution
From An unknown user
HASS.Agent Helper
HASS.Agent Helperโ€ข13mo ago
Help us Help You!
Please don't delete messages or posts because it makes it impossible to understand what happened. If you don't want your messages to be seen then don't post here.
HASS.Agent Helper
HASS.Agent Helperโ€ข13mo ago
@DrR0x
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
It says Error while connecting: Connection timed out. How did you enter the address, any typos?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
currently for some reason since updating to the newest core i am unable to acess ha via the local url or the ip adress so i have attempted to set the nqtt ip to the nabucasa url to no use
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Oh, that will not work.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
i seee alright i will keep this up and if i can get acess back through the ip and actually use the local ip i will see if it works
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Maybe HA changed it's IP during the update?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
its set as static the intergration of local ip is the same im not sure whats causing it
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
No description
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Not familiar with that GUI but the status toggle indicates it is online right? Can you ping that address from your PC?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
yes it is active iand i am unsure how to do that?
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Oh, I love how just I just assume people know how to do low level network stuff. I have been doing this for too long.
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
The Plug
HelloTech How
How to Do a Ping Test on a Windows 10 PC : HelloTech How
Learn how to do a ping test on your Windows 10 PC and how to read the results to see if you have any connectivity issues.
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
You can also check what IP HA is using (if the one the router says is not the actual one). Settings - Network - Under Configure network interfaces, click the three dots and select IP information.
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
No description
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
No description
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
ah
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Looks fine to me.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
No description
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
but
No description
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
this too
No description
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
like i said it would conneect before i restarted /installed the new core update so im not ure whats happening now i fully rebooted it too but its the same
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Have you tried another browser?
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
You could try download a MQTT client and use that to test to connect. https://mqtt-explorer.com/
MQTT Explorer
MQTT Explorer
An all-round MQTT client that provides a structured topic overview
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Not that it would help you accessing HA locally - I think you need to ask in the HomeAssistant Discord. Never heard of that problem.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
i belive the cliant does not connect either (after somne time it says disconeced)
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
i belive this is correct?
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Yes. OK, I tried all I can think of.
Amadeo
Amadeoโ€ข13mo ago
If both hass.agent and mqttexplorer cannot connect it's 100% network "thingy" Question now what Can you do
tnc 192.168.1.157 -port 1883
In powershell? (Powershell can be launched either the same way as cmd or within cmd console you just type "powershell") Is i recall someone once having similar issues and it was due to some reverse proxy/HA config but can't remeber what it was
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
No description
Amadeo
Amadeoโ€ข13mo ago
Yeah, 100% network Was there anything listed in changelog that may cause this? (Im using HA as docker container so out of the loop for this one)
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
ths is the changelog i dont notice anything specifically
No description
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
I would say the network config of HASSOS is corrupt. Try to restore an earlier backup? Just checked my backups (had a pending Core update) and the list was empty.
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
GitHub
Backup page listing empty when network storage is configured ยท Issu...
The problem I've added an CIFS/SMB share as a backup destination. Server: hostname.example.com Remote Share: share\folder After doing so, the backup page no longer lists any backups, local or o...
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Still not fixed after half a year??
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
i was thinking of idk lik reverting to the old core backup it made as irt was installing the new one would that work?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
could i just restor this and everything around it would stay the same?
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Yes, everything will be the same as it was at that timestamp. But try to revert a Home Assistant backup first? Hm. That is a HA backup. Sorry, I am confused. ๐Ÿ™‚
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
i do not belive it is working still? ill give it a moment and message again in case t sytarts working looks like its still not working
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Do you have any full backups?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
i doo i thankfully made one yesterday but i have i belive made quite a few automations since then which i assume would not stick around ?
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
I am looking at the size of my backups. The "Full backup" is much larger than the "Home Assistant" backups so was thinking it might contain HASSOS stuff. Don't really know though.
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
So I would try reverting to an older Full backup, and then revert to the latest Home Assistant one. Btw, do you have tyhe SSH/Terminal addon installed?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
yes i do i will restore the back up hold on its still not working??? ok well since i want my current automations and this is still not working i will rever back to the backup i made 10 minutes ago
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Yup. OK, read a little more stupid forum posts points me to hooking up keyboard and monitor to you Pi.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
i am using a ha green i totally forgot to mention that :p
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
GitHub
operating-system/Documentation/network.md at 7e702a2ab2ee7e76ed7f3a...
:beginner: Home Assistant Operating System. Contribute to home-assistant/operating-system development by creating an account on GitHub.
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Yeah, it comes with HDMI output just for this, so should be no problem.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
ah do i have to use the hdmi io cant do this from the pc/app?
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
This accesses the local HASSOS system, it's not the same as in the Terminal addon.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
ahhhh
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
They made it SO hard to access stuff.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
ok so i need to run each of these lines individually?
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Yup. I think you need to type login first though. Login is root with no password. If what I read is still valid.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
alright ill get to it ah guess i need to connect a keyboard and mouse too
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Keyboard is enough
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
Nice I am not sure if I'm doing something wrong or what but it's not outputing anything I think? Do I need to do something specifically Yep no signal it's hooked directly to a TV through hdmi I thought it would just instantly show?
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
I thought ot would. Maybe it is one of those stupid things that requires it to be connected at power on. I only have HA Blue and HA Yellow so not sure. ๐Ÿ™‚
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
Ok so I should power it of and on I suppose I'll try that Ah got it Ok so I just have to type the lines above I assume without the hash?
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
If the propmt says ha> you need to login first. It should give you the # as prompt. And yes.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
I've got this
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Type login Name root And just press Enter for password
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
It just gave a hash
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Perfect. NOW you can type the commands. ๐Ÿ™‚ So many hoops to jump through.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
I mean It didn't give a name or pass prompt?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Shoudl be fine
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
Cool so I'll just start typing the text now
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
Hm
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Hm. What does nmcli con show "HassOS default" show?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
No description
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Argh. Guess you shouldn't trust internet... ๐Ÿ˜ฌ
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
I wonder if you can reset it from the GUI, by simply select Static here and press Save?
No description
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
like ythis? nothing seems to change
No description
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
ill try give it a reeboot to see if anything changes
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
And then change it back after reboot. Now I am REALLY out of ideas.
Amadeo
Amadeoโ€ข13mo ago
If ping works and they are on the same subnet I'd look at firewall But I'm nit aware of HA hardware having some strange FW configs
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
i havent done anything anywhere though nothing has changed it worked before today i updated the core and now... nothing?
Amadeo
Amadeoโ€ข13mo ago
The root cause is the update I'd say But as to what exactly happened
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Might want to try restart the router.
Amadeo
Amadeoโ€ข13mo ago
You can try
firewall-cmd --list-all
In the HA console, at least this'll tell us is FW is there (or firewalld to be specific)
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
No description
Amadeo
Amadeoโ€ข13mo ago
Ok so no firewalld The local URL still doesn't work?
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Which is why I suspected a corrupt network stack.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
No local url no IP but cloud works fine
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Have you tried accessing it from your phone? Or another PC?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
That works I was loading it you just reminded me hold on IL retry the pc ok it works on phone but not on the pc? he ip adress
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
And you are using http, not https on the PC? But if it works on the phone using the local IP the issue is not in the HA Green.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
the phone has lost connection though its taking ome time to recconnect hold on nope ok now thats not working? yea nope i started loading it on phone went away went back to it and it had leaded the dashboard but it disconnected and it wont reconnect
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Don't forget to change back to Automatic in network settings. Is your PC also connected over WiFi?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
pc is ethernet into a wifi extender
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
And the Green?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
also ehternet but ditectly into the router
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Is the router the AP your phone is connected to?
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
its a mesh network so it could be..... that when it was directly connected to the router it worked but when i moved to the pc it connected to the wifi extender and is now not working? hold on i restarted the green when its back up ill test it i guess
Solution
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
I would restart all network equipment. Had issues with my mesh where it lost connection from tiem to time.
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
alrighty then andddd that workd its working wild phones still not connecting but the pc is and thats the important part
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
Something is going on with your network! ๐Ÿ™‚
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
and now the agent has connected to mqtt
JonnyBergdahl
JonnyBergdahlโ€ข13mo ago
๐Ÿฅณ
jinglebell jenkins
jinglebell jenkinsOPโ€ข13mo ago
it seems so i dont know what happened or when

Did you find this page helpful?