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

Unifi Integration not working with Dream Machine Pro #31603

Closed
dwillm1 opened this issue Feb 7, 2020 · 25 comments · Fixed by #33766
Closed

Unifi Integration not working with Dream Machine Pro #31603

dwillm1 opened this issue Feb 7, 2020 · 25 comments · Fixed by #33766
Assignees

Comments

@dwillm1
Copy link

dwillm1 commented Feb 7, 2020

The problem

When trying to set up a new unifi dream machine pro as the controller for the Unifi Integration, I am getting the error "No service available".

This may be due to how unifi OS is on the device, with [controller_ip]:8443 not directing to the controller software anymore, or as mentioned to me in discord, potentially due to the controller now appearing to use [controller_ip]/network/site/ instead of [controller_ip]/manage/site/

Environment

  • Home Assistant release with the issue: 0.104.3
  • Operating environment (Hass.io/Docker/Windows/etc.): hass.io in VM
  • Integration causing this issue: Unifi
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/unifi/

Problem-relevant configuration.yaml

image

Traceback/Error logs

Additional information

@probot-home-assistant
Copy link

Hey there @Kane610, mind taking a look at this issue as its been labeled with a integration (unifi) you are listed as a codeowner for? Thanks!

@Kane610
Copy link
Member

Kane610 commented Feb 7, 2020

Thanks for reporting. Someone will need to play around with the api to identify the differences. I don't plan to buy one for a few months since it still seem to be a beta product

@dwillm1
Copy link
Author

dwillm1 commented Feb 11, 2020

@Kane610 let me know if there is anything I can do to help

@johntdyer
Copy link
Contributor

I'm also available to help, just not sure where to begin

@Kane610
Copy link
Member

Kane610 commented Feb 12, 2020

Well the new way to login is necessary to understand, and then it is just to identify what paths are being used

@SeraphimSerapis
Copy link
Contributor

SeraphimSerapis commented Feb 13, 2020

I just got mine. Happy to help, too. Is there a preferred format for you to provide this information?

Some basic mapping:

  • .../device/DEVICE_ID is the "landing page" where the controller can be selected
  • .../device/DEVICE_ID/network/site/SITE_ID/dashboard is the dashboard itself

I'll go through the API with https://github.com/Art-of-WiFi/UniFi-API-browser this weekend to provide more endpoints if needed.

@johntdyer
Copy link
Contributor

FWIW this project was developed to address the new auth scheme for Unifi Protect. Perhaps it can help in this effort?

@Kane610
Copy link
Member

Kane610 commented Feb 16, 2020

For anyone want to try stuff out I just added a main function to the aiounifi package, you can now just fork the git repo and call it using python3 -m aiounifi 127.0.0.1 username password

@SeraphimSerapis
Copy link
Contributor

Done. Please see the issue report I created.

@balloob
Copy link
Member

balloob commented Feb 17, 2020

Crowdsource to buy a Dream Machine Pro for @Kane610 and I bet it will be fixed in the next release 😝

@Kane610
Copy link
Member

Kane610 commented Feb 18, 2020

I like how you are thinking @balloob :D

@SeraphimSerapis
Copy link
Contributor

@balloob Thinking out loud: how about a fund managed by Nabu Casa (or some other instance), that helps maintainers finance new hardware? I'd be happy to pay additional funds via my monthly subscription if that effectively helps improving integration quality and reducing the financial burden on people who actively enable integrations.

@balloob
Copy link
Member

balloob commented Feb 18, 2020

We do occasionally buy things for developers for integration development to make sure it works correctly. It's developer time that is more scarce.

@balloob
Copy link
Member

balloob commented Feb 18, 2020

Btw one could also open an ssh port to let Robban take a peek. This is probably just a changed path.

@SeraphimSerapis
Copy link
Contributor

Valid point. @Kane610 let me know if I can help.

@Kane610
Copy link
Member

Kane610 commented Feb 25, 2020

Work is ongoing here Kane610/aiounifi#13

@Kane610
Copy link
Member

Kane610 commented Apr 6, 2020

I've got support added to the library and its a small change to add support to hass. But I have a couple of other issues to investigate before releasing it

@russseaman
Copy link

russseaman commented May 10, 2020

I saw somewhere else that issue might be with SSO account....you have to log in with UI.com account to set up UDMpro...I created a local account and tried with that, still no luck...just thought I would add this comment in there

@ensjens
Copy link

ensjens commented May 12, 2020

@russseaman I got it working today with a local account. I needed to change the port from the default 8443 to 443

@SeraphimSerapis
Copy link
Contributor

I also get the no local user found, even when changing the port to 443. I created a local user with limited admin rights to make sure it's not permission-related.

Screenshot 2020-05-12 at 11 09 15

@russseaman
Copy link

So I got it working with local account with Super Admin role and port 443

@SeraphimSerapis
Copy link
Contributor

@russseaman which version does your UDMP run? I am on the 1.70 RC

@Kane610
Copy link
Member

Kane610 commented May 15, 2020

For v1.7 you need 0.110

@SeraphimSerapis
Copy link
Contributor

@Kane610 that helps a lot. Thx!

@JamieP83
Copy link

So I got it working with local account with Super Admin role and port 443

same! thanks

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

Successfully merging a pull request may close this issue.

9 participants