mqtt-unifi-protect-bridge
mqtt-unifi-protect-bridge copied to clipboard
Support Unifi Dream Machine pro
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
yea, I think I am running into the same issue