H
HASS.Agent7mo ago
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
HASS.Agent Helper
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
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.
HASS.Agent Helper
@DrR0x
graceful-beige
graceful-beigeOP7mo ago
here is what the logs gave me
Amadeo
Amadeo7mo ago
hm, that's only a deprecation warning by doesn't work you mean it's not detected by HA or?
graceful-beige
graceful-beigeOP7mo 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
Amadeo
Amadeo6mo ago
can I get a pic?
graceful-beige
graceful-beigeOP6mo ago
this is the error i see atleast i think thats the correct one
Amadeo
Amadeo6mo ago
what the the warning is just a warning but why it fails to set up there is nothing else in the logs?
graceful-beige
graceful-beigeOP6mo 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
Amadeo
Amadeo6mo ago
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-beige
graceful-beigeOP6mo ago
no i didnt it just didnt work like ever
Amadeo
Amadeo5mo ago
waait what version of the integration do you have?
graceful-beige
graceful-beigeOP5mo 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
Amadeo
Amadeo5mo ago
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

Did you find this page helpful?