mqtt-unifi-protect-bridge icon indicating copy to clipboard operation
mqtt-unifi-protect-bridge copied to clipboard

Support Unifi Dream Machine pro

Open dirstel opened this issue 4 years ago • 1 comments

The Unifi Dream Machine pro uses some different endpoints for login.

/api/auth/login instead of https://github.com/terafin/mqtt-unifi-protect-bridge/blob/09eafcf23009b95d46d2ec59979c672df0ce9222/lib/auth.js#L6

Source: see https://ubntwiki.com/products/software/unifi-controller/api

I do not know, if this is the only breaking change, but I'm willing to try...

update: simply changing to /api/auth/login did not work :( update2: This project claims to 'autodetect' UDM(pro)s - maybe this gives a clue what to change: https://github.com/Art-of-WiFi/UniFi-API-client/blob/master/src/Client.php#L166

At least there is a cookie stored/used instead of the token-endpoint: https://github.com/Art-of-WiFi/UniFi-API-client/blob/master/src/Client.php#L211

dirstel avatar Sep 15 '20 10:09 dirstel

yea, I think I am running into the same issue

johntdyer avatar Jan 14 '21 02:01 johntdyer