Core: Unifi Integration not working with Dream Machine Pro

Created on 7 Feb 2020  路  24Comments  路  Source: home-assistant/core

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

unifi

Most helpful comment

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

All 24 comments

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!

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

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

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

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

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.

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

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

Done. Please see the issue report I created.

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

I like how you are thinking @balloob :D

@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.

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

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

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

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

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

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

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

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

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

For v1.7 you need 0.110

@Kane610 that helps a lot. Thx!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Konstigt picture Konstigt  路  3Comments

kirichkov picture kirichkov  路  3Comments

TheZoker picture TheZoker  路  3Comments

moskovskiy82 picture moskovskiy82  路  3Comments

aweb-01 picture aweb-01  路  3Comments