estruyf / homebridge-presence-switch-msgraph

Homebridge Presence Switch for Microsoft Graph
MIT License
46 stars 12 forks source link

How do we authenticate user? #31

Closed rahilp closed 2 years ago

rahilp commented 2 years ago

I was able to setup the plugin with the app I’d and tenant ID but don’t see an option to login or authenticate as a user? Am I missing something?

estruyf commented 2 years ago

Once set up, you need to turn on the presence switch. On the Homebridge status page, you will see the device login + code in the log output.

image

Once logged in via the device flow, the plugin will receive an access token and starts to control your light.

rahilp commented 2 years ago

Thanks that solves it!