Office 365 graph

Hey everyone,
Not sure how many people have and use their work calendars on Office 365 - but this should be a fairly interesting integration using REST:
Info: https://developer.microsoft.com/en-us/graph/docs/concepts/overview
Example/explorer: https://developer.microsoft.com/en-us/graph/graph-explorer

It can query your calendar, the location of meetings, who is attending, who set the meeting up.
Profile and org related information
Email info.

It would be pretty handy to have a sensor that can pull some basic info to start with before full integration, say:
sensor.O365_firstmeetingtime
sensor.O365_firstmeetinglocation
sensor.O365_lastemailsubject
sensor.O365_lastemailsender

Hello!

Have you integrated Office 365 calendar in any way?

Thanks!

afraid not - no idea where to start (sadly i’m not a developer/dont have the skills) - was hoping someone took interest after seeing this

I also would like to see this implemented.
Did some things with graph, but I’m not familiar with developing integrations for HA

Surely, if there’s a rest API you don’t really need to do any development as such. Just configure a restful sensor for each required value.

Interesting!
Are you experienced with REST? Would you be able to provide an example of a sensor (its the auth I cant figure out)?

I’ve never tried for MSGraph, just assumed it was worth a try. If you already have, you’re further on than me :slight_smile:

Hey Folks,
so there are some new tools to help people get started - however my python is terrible so wonder if anyone has any good resources of how to take a REST API and convert it to a python example (and read the JSON and parse that to the integration).

There is also this: https://pypi.org/project/microsoftgraph-python/

Which seems to be the last step before creating an integration.

Not sure of other peoples motivation, but i’d love to be able to trigger a morning routines, which includes what time my first meeting is, and location.

Might give this one a go:

2 Likes