H
graceful-beige
Home-assistant intergration
Hello so recently i wanted to add my pc as a media player so that i can use music assistant to play music but i ran into a problem for some reason the hass agent intergration for home assistant doesnt work i checked the logs and it says that something it uses has been deprecated
18 Replies
Help us Help Others!
To help others find answers, you can mark your question as solved via
Right click solution message -> Apps -> ✅ Mark Solution

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.
Please provide us with your integration version number.
You can find it in HACS -> HASS.Agent 2 -> Top left
for installed version number.
We will help as soon as possible.
While you're waiting you can try the following:
- Checkout the documentation. - Search here in discord for previously solved similar issues.
@DrR0x
graceful-beigeOP•7mo ago
graceful-beigeOP•7mo ago
here is what the logs gave me
hm, that's only a deprecation warning
by doesn't work you mean it's not detected by HA or?
graceful-beigeOP•7mo ago
i mean that in home assistant it is red which i think it means that it doesnt work
i get an error called failed to set up and to check the logs
in the logs it says what i sent above
sorry for the late responce btw
can I get a pic?
graceful-beigeOP•6mo ago
graceful-beigeOP•6mo ago
graceful-beigeOP•6mo ago
this is the error i see
atleast i think thats the correct one
what the
the warning is just a warning
but why it fails to set up
there is nothing else in the logs?
graceful-beigeOP•6mo ago
let me see maybe i got the wrong one
Logger: homeassistant.config_entries
Source: config_entries.py:753
First occurred: 10:19:24 PM (1 occurrences)
Last logged: 10:19:24 PM
Error setting up entry Fusion-pc for hass_agent
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 753, in async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/hass_agent/init__.py", line 135, in async_setup_entry
_logger.debug("setting up device from config entry: %s [%s]", entry.data["device"]["name"], entry.unique_id)
~~^^^^^^^^^^
KeyError: 'device'
found this aswell
oh this is an actuall error
did you change the device name before the error appeared?
I swear, the integration need to be rewritten...
graceful-beigeOP•6mo ago
no i didnt it just didnt work like ever
waait
what version of the integration do you have?
graceful-beigeOP•5mo ago
so yea i know i havent replied in quite a while but the weirdest thing happened today
i switch brokers since the old one ( rabbit mq ) was causing a lot of issues with some features of hass agents for example commands
and as soon as i changed the mqtt broker the intergration started working
i am confused how and why that happened
but ill take the victory
from my experience (not directly, info of other peeps) the most "up to spec" mqtt broker is mosquitto
although I don't know why
rabbitmq and others seem popular
but often casue issues with HA/z2m/HASS.Agent etc