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

Did you find this page helpful?