#Hass agent

1 messages ยท Page 1 of 1 (latest)

earnest cove
#

Can you try booting in safe mode?

uneven pagoda
#

Let's try ^^
Never done it before ๐Ÿซฃ๐Ÿ˜…

remote zephyr
#

sup with hass.agent?

#

known issues in this beta or?

uneven pagoda
#

so, now I am getting a lot of repair issues that integrations could not be found.

#

basically for all custom_components ...
hass_agent does not show up in the logs

uneven pagoda
#

one sec. booting up in normal mode again to get a new log ๐Ÿ™‚
Then, I will load safe-mode again

#

hm... that's odd... now I don't have that log anymore in normal mode either... (or not yet...)

earnest cove
#

Oh wait

#

When you boot in safe mode you get a message for all custom ones

#

Hmm

uneven pagoda
#

yes.

earnest cove
#

Maybe need to check if we should not show it then

#

Because it's easy to just destroy your custom component configurations

uneven pagoda
#

hm... ok, that's true.

earnest cove
#

But back to the Hass agent thing

#

Did you notice that messageM

uneven pagoda
#

no, it does not show up in the logs right now.
If I know if it can be reproduced, I will let you know.

earnest cove
#

๐Ÿ‘

uneven pagoda
#

hm... that's INTERESTING

#

So ... let me explain a bit more in detail:

I am using HA within a Google Chrom "App" ... (you know, Google Chrom --> Create App)

when I got the error, I was actually using this app on my Laptop (windows 11...)

before I did start the debugging, I had to restart HA - but I was working on my private computer.

As you know, nothing showed up in my logs.

Now, I've just switched to my Laptop again - and ... here it is.
The same message again.

#

i will now restart HA in safemode again, but connected from my laptop

#

after another reboot in safe_mode from my laptop, no new error in the logs... ๐Ÿค”

earnest cove
#

you know

#

Euh I don't

#

๐Ÿ˜›

#

Haven't touched chrome in a long time

#

and I remember the name, but I can't remember what it was for

uneven pagoda
#

anyway - after booting into safe_mode, i haven't seen the issue on the laptop, anymore.
I will send the laptop to sleep again and will check it then again

uneven pagoda
#

ok, error is back ...

Logger: homeassistant.components.websocket_api.http.connection
Quelle: components/websocket_api/commands.py:514
Integration: Home Assistant WebSocket API (Dokumentation, Probleme)
Erstmals aufgetreten: 17:25:53 (3 Vorkommnisse)
Zuletzt protokolliert: 17:26:27

[140425668184672] Error handling message: Unknown error (unknown_error) Christoph from 217.245.255.171 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36)
[140425084977936] Error handling message: Unknown error (unknown_error) Christoph from 217.245.255.171 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 514, in handle_manifest_list
raise int_or_exc
homeassistant.loader.IntegrationNotFound: Integration 'hass_agent' not found.

elfin whale
#

Are you using the new hass agent?

#

Mine is working fine on this beta

uneven pagoda
#

I have removed hass_agent for quite a while...

elfin whale
#

Oh that's interesting why is it in your error log

earnest cove
#

Wait

#

How does Hass agent work?

#

Could it be that Hass agent is installed on your PC and is using the websocket?

elfin whale
#

It works through mqtt but there's also a media integration

#

Yeah that's possible if it's still installed on your Windows PC

#

Maybe it's connecting to home assistant but there's nothing on home assistant for has agent

uneven pagoda
earnest cove
#

We're trying to see if my core feature is correct

uneven pagoda
#

ok, i think i figured it out now

earnest cove
#

Like, the logs indicate something is expecting Hass agent is present, but it's not

uneven pagoda
#

there are still topics left on my mqtt broker

#

but they don't show up

earnest cove
#

But the websocket raises it, so it's either an application using the websocket

uneven pagoda
earnest cove
#

Or there's still configuration left, and if that's the case, this should raise

earnest cove
# uneven pagoda

I don't think that matters, mqtt only listens if you configure it like that

uneven pagoda
#

ok, looking deeper into it, these are some old z2mqtt topics

earnest cove
#

This is not a mqtt jssue

uneven pagoda
earnest cove
#

Can you double check your laptop or whatever ran Hass.agent

#

And reboot that machine for fun

#

And check if it gets logged again

uneven pagoda
#

yes, I will do.
I will check, if something is left on the computer.

#

thanks... didn't remember on the mqtt setup of the integration, since it is quite a while since I used it the last time...

just wonder, why I never recognized the error in the log earlier

#

ok, now it is clear.
Removing the "Windows Application" seems not to remove everything... Restart does probably not change much, because since the application has been removed from the computer, I should already have rebooted my computer ...

And probably, it was one of the topics left on my broker:

"MqttDiscoveryPrefix": "homeassistant",

uneven pagoda
#

no. it should not.
There were no logs since december ... this should be the time when I uninstalled it.

I have now deleted the folder and no new topics have been sent to the broker so far.
I guess, it was only the message left on the broker.

earnest cove
#

Yes but again, mqtt doesn't make websocket requests

#

So it's either the frontend or an application calling it

uneven pagoda
#

lol

Logger: homeassistant.components.websocket_api.http.connection
Quelle: components/websocket_api/commands.py:514
Integration: Home Assistant WebSocket API (Dokumentation, Probleme)
Erstmals aufgetreten: 17:53:21 (1 Vorkommnisse)
Zuletzt protokolliert: 17:53:21

[139703840606528] Error handling message: Unknown error (unknown_error) Christoph from 217.245.255.171 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 514, in handle_manifest_list
raise int_or_exc
homeassistant.loader.IntegrationNotFound: Integration 'hass_agent' not found.

still ... showing up ๐Ÿ˜ฆ

earnest cove
#

What did you do 3 minutes ago

uneven pagoda
#

checked if the application is installed on my computer... but thanks, I think I have some more ideas where I can check further.

earnest cove
#

Let me know if you find anything

uneven pagoda
#

ha ๐Ÿ™‚
probably found it...

The log message always appears, when I open the Integration (Devices & Services) page

uneven pagoda
#

@earnest cove maybe you do have an Idea in how to identify where the device/Integration Page might call this Integration?
Could it still be the mqtt Integration itself? (At least, there are still some information from the Integration hass.agent ...

earnest cove
#

Or there is still a remnant left of Hass agent

#

@elfin whale does Hass agent create a config entry?

elfin whale
earnest cove
#

@uneven pagoda can you open the .storage/ config entries file?

#

And search for the Hass agent thing?

uneven pagoda
#

Sure.
Just 5 min ๐Ÿ™‚

#

{
"created_at": "1970-01-01T00:00:00+00:00",
"data": {},
"disabled_by": null,
"domain": "hass_agent",
"entry_id": "2a88103f88fadf375f3865399716b65f",
"minor_version": 1,
"modified_at": "1970-01-01T00:00:00+00:00",
"options": {},
"pref_disable_new_entities": false,
"pref_disable_polling": false,
"source": "ignore",
"title": "WSCCA",
"unique_id": "a17b1032-a82a-412a-852a-b6dc48873d88",
"version": 1
},

earnest cove
#

And if you go to /config/custom_components

#

No hass_agent?

#

Oh wait

#

Huh

#

You ignored this one

#

How did that work

#

Oh but this is an old one, it has been created in 1970

#

:p

uneven pagoda
#

๐Ÿค” i ignored it at some Point and then removed it

#

and no, no hass agent ๐Ÿ™‚

#

modified at: 1970-01-01T00:00:00+00:00 - seems to be a default value ๐Ÿ˜‰ unix default ? ๐Ÿ˜‰

earnest cove
#

That was the joke

#

Got added this release

earnest cove
#

It only got ignored

#

But how do you ignore a config entry

uneven pagoda
#

Could be Auto detected after it was still downloaded but Not installed?

But it's removed.
There's No folder available and hacs doesn't Show it as downloaded

earnest cove
#

Please keep your machine in this state by the way

#

Like dont try to fix it

uneven pagoda
#

I won't ^^

earnest cove
#

I want to find out what happened and how we can catch these cases

#

Because apparently they raise errors

uneven pagoda
#

I can try to reproduce it on another proxmox machine later

earnest cove
#

Yea I need to see what ignoring exactly does

uneven pagoda
#

Now that i know what i need to look for

earnest cove
#

I also have 2 integrations ignored

#

So I need to see how they are stored

#

And maybe the ignore part is good

#

But then the frontend should not request it

uneven pagoda
#

I Just removed sind Others i ignored.
Will Check If there are also config entries left

uneven pagoda
#

ok, sorry - I have to correct me... it is still there... was really ignored... but then, I wonder, why HACS does not show it as downloaded anymore...

I guess, I now know how this could have happened...

  1. ignore the custom_component
  2. remove it via HACS
#

in this case, you don't have any option to 'remove' the component from the UI anymore.
It MIGHT show up again (in case of hass.agent if you would install the desktop client again?) but without, it does not show up on the integrations page after "unignoring" it.

earnest cove
#

Can't you open the ignored integration list?

uneven pagoda
#

I did. it was there...
Tbh - I completely forgot about this list, as the "deactivate" filter is way more present ๐Ÿ˜„

#

'unignoring' the integration seems to solve the issue... unfortunately, that was by mistake, while I promised NOT to fix it... ๐Ÿ˜ฆ

I will reproduce the case, if you need this to debug something ?

#

that's how to do it:

  1. ignore the custom_component
  2. remove it via HACS
    (3. open the page devices & services)

could just recreate the case

earnest cove
#

Right

earnest cove
#

oh by the way, I discussed this with some others and we said that this is indeed also nice to be caught with an issue in the future