RogerSelwyn / O365-HomeAssistant

Office 365 integration for Home Assistant
MIT License
203 stars 15 forks source link

Cannot authorize #263

Closed Morbeas closed 2 days ago

Morbeas commented 2 days ago

Hi there. I'm just setting up for the first time and got all the permissions in Azure properly configured but keep getting an "unknown error occurred" message after I paste the link.

I'm running HA on my Synology NAS in a docker. I have MFA enabled for my Hotmail account and have both URIs listed for my redirects.

Anything else I need to do?

RogerSelwyn commented 2 days ago

Have you looked in the system logs?

Morbeas commented 2 days ago

I did, I don't really see anything that jumps at me.


From: RogerSelwyn @.> Sent: Tuesday, November 12, 2024 1:40 AM To: RogerSelwyn/O365-HomeAssistant @.> Cc: Morbeas @.>; Author @.> Subject: Re: [RogerSelwyn/O365-HomeAssistant] Cannot authorize (Issue #263)

Have you looked in the system logs?

— Reply to this email directly, view it on GitHubhttps://github.com/RogerSelwyn/O365-HomeAssistant/issues/263#issuecomment-2469721502, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIO3J5LFN2DWHYINBSS3RCL2AGPHXAVCNFSM6AAAAABRS7Q4RCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRZG4ZDCNJQGI. You are receiving this because you authored the thread.Message ID: @.***>

RogerSelwyn commented 2 days ago

Without further clues I can’t guess at what is going on. I’d suggest going back and ensuring you have carefully followed the process, including using the value of the client secret not the id of the client secret.

Morbeas commented 2 days ago

...

RogerSelwyn commented 2 days ago

Hotmail is a personal account. Please read through this information for information on personal accounts.

https://rogerselwyn.github.io/O365-HomeAssistant/installation_and_configuration.html

Morbeas commented 2 days ago

Hmmm, ok. I'm assuming no way to make Hotmail work? I read you mentioned I need to get a paid Azure account?

Any other free email services that can be used instead?

RogerSelwyn commented 2 days ago

Yes, just disable the presence and chat sensors which are stated as not for personal accounts.

Morbeas commented 2 days ago

That did it! Thank you!!!

Morbeas commented 2 days ago

Everything seems good but I just don't see the calendars listed under Entities? I do have the o365 calendar.yaml file with all my calendars in it, however.

Edit: I also see my todo lists under Entities, but no calendars. 2nd Edit: It seems the issue was that I added enable_calendar: True in the yaml file and it didn't like that. Once I removed that variable, my calendars appeared.

RogerSelwyn commented 1 day ago

The system log would have told you the problem, always worth looking there.