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โ€ข12mo 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โ€ข12mo 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โ€ข12mo ago
@DrR0x
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
It says Error while connecting: Connection timed out. How did you enter the address, any typos?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo ago
Oh, that will not work.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo ago
Maybe HA changed it's IP during the update?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
its set as static the intergration of local ip is the same im not sure whats causing it
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
No description
No description
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Not familiar with that GUI but the status toggle indicates it is online right? Can you ping that address from your PC?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
yes it is active iand i am unsure how to do that?
JonnyBergdahl
JonnyBergdahlโ€ข12mo 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โ€ข12mo 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โ€ข12mo 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โ€ข12mo ago
No description
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
No description
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
ah
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
No description
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Looks fine to me.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
No description
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
but
No description
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
this too
No description
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo ago
Have you tried another browser?
JonnyBergdahl
JonnyBergdahlโ€ข12mo 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โ€ข12mo 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.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
i belive the cliant does not connect either (after somne time it says disconeced)
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
i belive this is correct?
No description
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Yes. OK, I tried all I can think of.
Amadeo
Amadeoโ€ข12mo 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
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
No description
Amadeo
Amadeoโ€ข12mo 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)
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
ths is the changelog i dont notice anything specifically
No description
No description
JonnyBergdahl
JonnyBergdahlโ€ข12mo 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โ€ข12mo 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โ€ข12mo ago
Still not fixed after half a year??
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
could i just restor this and everything around it would stay the same?
No description
JonnyBergdahl
JonnyBergdahlโ€ข12mo 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. ๐Ÿ™‚
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo ago
Do you have any full backups?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo 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โ€ข12mo 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?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo ago
Yup. OK, read a little more stupid forum posts points me to hooking up keyboard and monitor to you Pi.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
i am using a ha green i totally forgot to mention that :p
JonnyBergdahl
JonnyBergdahlโ€ข12mo 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โ€ข12mo ago
Yeah, it comes with HDMI output just for this, so should be no problem.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
ah do i have to use the hdmi io cant do this from the pc/app?
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
This accesses the local HASSOS system, it's not the same as in the Terminal addon.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
ahhhh
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
They made it SO hard to access stuff.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
ok so i need to run each of these lines individually?
No description
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Yup. I think you need to type login first though. Login is root with no password. If what I read is still valid.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
alright ill get to it ah guess i need to connect a keyboard and mouse too
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Keyboard is enough
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo 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. ๐Ÿ™‚
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo ago
If the propmt says ha> you need to login first. It should give you the # as prompt. And yes.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
I've got this
No description
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Type login Name root And just press Enter for password
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
It just gave a hash
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Perfect. NOW you can type the commands. ๐Ÿ™‚ So many hoops to jump through.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
I mean It didn't give a name or pass prompt?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
No description
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Shoudl be fine
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
Cool so I'll just start typing the text now
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
Hm
No description
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Hm. What does nmcli con show "HassOS default" show?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
No description
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Argh. Guess you shouldn't trust internet... ๐Ÿ˜ฌ
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
I wonder if you can reset it from the GUI, by simply select Static here and press Save?
No description
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
like ythis? nothing seems to change
No description
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
ill try give it a reeboot to see if anything changes
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
And then change it back after reboot. Now I am REALLY out of ideas.
Amadeo
Amadeoโ€ข12mo 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
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
i havent done anything anywhere though nothing has changed it worked before today i updated the core and now... nothing?
Amadeo
Amadeoโ€ข12mo ago
The root cause is the update I'd say But as to what exactly happened
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Might want to try restart the router.
Amadeo
Amadeoโ€ข12mo 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)
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
No description
Amadeo
Amadeoโ€ข12mo ago
Ok so no firewalld The local URL still doesn't work?
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Which is why I suspected a corrupt network stack.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
No local url no IP but cloud works fine
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Have you tried accessing it from your phone? Or another PC?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo 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.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo ago
Don't forget to change back to Automatic in network settings. Is your PC also connected over WiFi?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
pc is ethernet into a wifi extender
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
And the Green?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
also ehternet but ditectly into the router
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Is the router the AP your phone is connected to?
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo 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โ€ข12mo ago
I would restart all network equipment. Had issues with my mesh where it lost connection from tiem to time.
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
alrighty then andddd that workd its working wild phones still not connecting but the pc is and thats the important part
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
Something is going on with your network! ๐Ÿ™‚
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
and now the agent has connected to mqtt
JonnyBergdahl
JonnyBergdahlโ€ข12mo ago
๐Ÿฅณ
cannonbell jenkins
cannonbell jenkinsOPโ€ข12mo ago
it seems so i dont know what happened or when
Want results from more Discord servers?
Add your server