Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration not getting added #114

Closed
ashoktvm opened this issue Oct 22, 2024 · 10 comments
Closed

Integration not getting added #114

ashoktvm opened this issue Oct 22, 2024 · 10 comments

Comments

@ashoktvm
Copy link

I get this error message when trying to add the integration

image

What can I do?

@h3llrais3r
Copy link
Contributor

h3llrais3r commented Nov 2, 2024

Is your site called "Default"?
If not, try with the real name of your site.

I suppose the ip in the url is the one from your homeassistant device, and you kept the default port 8043 for this addon?

@shanelord01
Copy link

I've got the same issue that just started today - it was working up until about 5-10 hours ago and now I'm getting this error.

No matter what I try it won't login.

@terryhonn
Copy link

Same, removed and re-added the integration in HACS, tried to add in Devices/Integrations, won't connect.

@h3llrais3r
Copy link
Contributor

h3llrais3r commented Nov 5, 2024

I tried it the other day, and for me it works:

  • Url: https://192.168.10.10:8043 (IP of your home assistant, the port and no trailing /)
  • Site: Home (name of your site)
    image
  • Username/password for login (login/password you use to login on omada home page)
  • Do not check "verify SSL"

@h3llrais3r
Copy link
Contributor

h3llrais3r commented Nov 6, 2024

Ok, some more info.
Pleas make sure to check your account security settings in OMADA.
If you have enabled 2FA authentication for all users, it won't work.

You have to use a login that doesn't need 2FA.
If needed, you can create an additional user for that.

If you enabled the controller ip access rules, make sure that the local ip of your home assistant is added to the list of addresses that is allowed to connect to it.

image

@calvinbui
Copy link

calvinbui commented Nov 7, 2024

strangely mine started not connecting either since yesterday.

Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 3:54:10 PM (1 occurrences)
Last logged: 3:54:10 PM

Error setting up entry Omada Controller for omada
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/omada/__init__.py", line 32, in async_setup_entry
    await omada_controller.async_setup()
  File "/config/custom_components/omada/controller.py", line 131, in async_setup
    self.api = await get_api_controller(
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/omada/controller.py", line 304, in get_api_controller
    await controller.login()
  File "/config/custom_components/omada/api/controller.py", line 60, in login
    await self._update_api_info()
  File "/config/custom_components/omada/api/controller.py", line 76, in _update_api_info
    response = await self._request("get", f"{self.url}/api/info")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/omada/api/controller.py", line 209, in _request
    with async_timeout.timeout(self._req_timeout):
TypeError: 'Timeout' object does not support the context manager protocol
image

@h3llrais3r
Copy link
Contributor

strangely mine started not connecting either since yesterday.

This seems more a connectivity issue. Are you still able to access your controller via browser?

@shanelord01
Copy link

strangely mine started not connecting either since yesterday.

This seems more a connectivity issue. Are you still able to access your controller via browser?

Yes I can access it perfectly fine via browser. In fact, I have removed this HACS integration and am successfully using the official https://www.home-assistant.io/integrations/tplink_omada using the same credentials without issue.

@calvinbui
Copy link

strangely mine started not connecting either since yesterday.

This seems more a connectivity issue. Are you still able to access your controller via browser?

Yes, it works fine

@zachcheatham
Copy link
Owner

It appears there was some change in the latest version of Home Assistant. @gaaf has submitted a fix that is now available in the latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants