AiDot-Development-Team / hass-AiDot

Home Assistant integration for AiDot
MIT License
9 stars 2 forks source link

Installs and activates perfectly, but doesn't work after that #1

Open Peter-HVD opened 4 months ago

Peter-HVD commented 4 months ago

Stumbled upon this by accident and thought I'd try it with more than a little optimism.

Installed perfectly well by adding this github as a custom repository. Connected to my AiDot account, recognised my bulbs and allowed me to add them. That's where the optimism ended.

Although the bulbs register their state change when changed in the AiDot app, as soon as they do they then become unavailable in Home Assistant.

vequalsir commented 3 months ago

I just had the same experience. It brings the lights into HA, but they show unavailable. My lights are on a separate network from my hoes assistant server. Is there a UDP port that needs to be opened for discovery?

techop commented 3 months ago

Same issue, found this in the debug logs.

custom integration 'aidot' accesses hass.helpers.aiohttp_client. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from aiohttp_client directly at custom_components/aidot/config_flow.py, line 66: self.login_response = await self.__login_control.async_post_login(, please report it to the author of the 'aidot' custom integration

raquii commented 5 days ago

Same issue, found this in the debug logs.

custom integration 'aidot' accesses hass.helpers.aiohttp_client. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from aiohttp_client directly at custom_components/aidot/config_flow.py, line 66: self.login_response = await self.__login_control.async_post_login(, please report it to the author of the 'aidot' custom integration

Thanks to the hint from the above error message, I was able to get this working by adding the following import line to config_flow.py:

from homeassistant.helpers.aiohttp_client import Any

Loaded into my HA and works great.

thogan32 commented 4 days ago

@raquii Which line did you change?

raquii commented 4 days ago

I added the import line in my previous comment to line 13 of config_flow.py

thogan32 commented 4 days ago

@raquii Thanks for the help!