A Home Assistant package for consumption of Microsoft's Graph API
Report Bug
·
Request Feature
This package was born of a desire to surface Microsoft Teams presence data within Home Assistant so that users can create automated flows based on their current activity or availability. Want to illuminate a studio warning light when you're on a call? Track time spent on conference calls? Now you're covered.
Thanks to Microsoft's Graph API, it's easy to get a user to authenticate once and have Home Assistant continue to poll for data in the background.
For now, the package only includes user presence data but the power of Graph API means it can eventually support features such as checking Outlook emails or the status of upcoming meetings. If you have ideas, please raise a feature request or submit a pull request.
No frameworks. No magic. Just pure Python.
If you'd like to contribute, check out the steps below to get set up locally and see existing example flows.
The only software required is Python 3 (the package is currently tested on 3.8).
- Python 3 (download the correct version for your OS here)
- Clone the repo
git clone https://github.com/jlweston/ha-graphapi && cd ha-graphapi
- Create a virtual environment
python3 -m venv venv
- Run the example (swapping the placeholders with real Azure AD application credentials)
python3 examples/presence.py --client_id {my-client-id} --client_secret {my-client-secret}
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Jamie Weston - @jlweston85 - jlweston85@gmail.com
Project Link: https://github.com/jlweston/ha-graphapi