Been wanting/needing an Outlook Calendar integration for a while, and over christmas I finally got round to it. I know christmas was a while ago and sorry for the late post.
I hope to get back to it at some point and expose the confiruation of the integration through the UI at some point in the future. I hope it manages to help someone else in the commuity.
I know this is an older topic, but it looks a nice way to deal with this. Problem I have is with the authorisation. I’ve created the API with localhost, then when I press the notification (after server restart) it tries to connect using the IP of the server. When I alter this to localhost (same as I registered with) it works.
But then it tries to connect back again and I get the page not found. Changed it back to the ip address of HA and then I get 500 Internal Server Error: Server got itself in trouble.
I have tried to get this set up and followed the instructions carefully. When I restart HA and click the link to authorize my account, I always get taken to an error and the following message:
invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.
I have tried with localhost and an external address (*.duckdns.org) as the redirect URI but no joy.
invalid_request: The provided value for the input parameter redirect_uri is not valid. The expected value is a URI which matches a redirect URI registered for this client application.
NB. This requires the alt_auth_flow to be set to True and the redirect uri in your Azure app set to “https://login.microsoftonline.com/common/oauth2/nativeclient” this needs to be set as as a manual url, with type web, just checking the checkmark for it does not seem to work
After setting up configuration.yaml with the key set to True and restarting home assistant a persisten notification will be created.
Click on this notification.
Click the “Link O365 account” link.
Login on the microsoft page.
Copy the url from the browser url bar.
Insert into the “Returned Url” field. and click Submit.
Hello, I am running into an issue. Forgive me if it’s something simple, I’m only 3 days into learning Home Assistant, but am very eager to learn more.
I’ve got O365 installed through HACS. My configuration.yaml looks like this:
Shortly checked some topics on ms dev site. You should be able to do it over powershell as every O365 ex task.
Sorry updated version… had to test it and grabbed my notebook shortly. The way over powershell is to hard an will not as easy as thought.
But there exist and other easy way, just use microsoft graph. You need to have the propper permissions a least to the calendar you request the id from. If you are working on a tenant which is locked down then you need the right to consent permissions by yourself or start the request to an admin.
Here is the description of the graph api, if you have enough rights you can even get the id’s for someone else or group calendars.
This should give you the needed id from the outlook calendar without outlook. Just building up my home assistant installation so not already there to implement o365 but it’s also a plan to do so.