Restart your Home Assistant instance again to enable your configuration.
A notification will be shown in the Repairs dialogue of your HA instance. Follow the instructions on this notification (or see Authentication) to establish the link between this integration and the Azure app
A persistent token will be created in the hidden directory config/o365_storage/.O365-token-cache
The o365_calendars_<account_name>.yaml will be created under the config directory in the o365_storage directory.
If todo_sensors is enabled then o365_tasks_<account_name>.yaml will be created under the config directory in the o365_storage directory.
Note If your installation does not complete authentication, or the sensors are not created, please go back and ensure you have accurately followed the steps detailed, also look in the logs to see if there are any errors. You can also look at the errors page for some other possibilities.
Configuration examples
Configuration format
o365:accounts:-account_name:Account1# Do not use email address or spacesclient_id:"xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"client_secret:"xx.xxxxxxxxxxxxxxxxxxxxxxxxxxxx"alt_auth_method:Falseenable_update:Falseemail_sensor:-name:inboxmax_items:2is_unread:Truedownload_attachments:Falsequery_sensors:-name:"Example"folder:"Inbox/Test_Inbox"#Default is Inboxfrom:"mail@example.com"subject_contains:"Examplesubject"has_attachment:Truemax_items:2is_unread:Truestatus_sensors:# Cannot be used for personal accounts-name:"UserTeamsStatus"chat_sensors:# Cannot be used for personal accounts-name:"UserChat"todo_sensors:enabled:Falseenable_update:False# set this to true if you want to be able to create new todos-account_name:Account2client_secret:"xx.xxxxxxxxxxxxxxxxxxxxxxxxxxxx"client_id:"xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
Configuration variables
Key
Type
Required
Description
account_name
string
True
Uniquely identifying name for the account. Calendars entity names will be suffixed with this. calendar.calendar_account1. Do not use email address or spaces.
client_id
string
True
Client ID from your O365 application.
client_secret
string
True
Client Secret from your O365 application.
alt_auth_method
boolean
False
If False (default), authentication is not dependent on internet access to your HA instance. See Authentication
enable_calendar
boolean
False
If True (default is True), this will enable calendars within the integration
enable_update
boolean
False
If True (default is False), this will enable the various services that allow the sending of emails and updates to calendars
basic_calendar
boolean
False
If True (default is False), the permission requested will be calendar.ReadBasic. enable_update: true = true cannot be used if basic_calendar: true
groups
boolean
False
If True (default is False), will enable support for group calendars. No discovery is performed. You will need to know how to get the group ID from the MS Graph API. Not for use on shared mailboxes
track_new_calendar
boolean
False
If True (default), will automatically generate a calendar_entity when a new calendar is detected. The system scans for new calendars only on startup.
email_sensors
list<email_sensors>
False
List of email_sensor config entries
query_sensors
list<query_sensors>
False
List of query_sensor config entries
status_sensors
list<status_sensors>
False
List of status_sensor config entries. Not for use on personal accounts or shared mailboxes
chat_sensors
list<chat_sensors>
False
List of chat_sensor config entries. Not for use on personal accounts or shared mailboxes
todo_sensors
object<todo_sensors>
False
To-Do List options Not for use on shared mailboxes
auto_reply_sensors
object<auto_reply_sensors>
False
Auto-reply sensor options Not for use on shared mailboxes
shared_mailbox
string
False
Email address or ID of shared mailbox Only available for calendar and email sensors
email_sensors
Key
Type
Required
Description
name
string
True
The name of the sensor.
folder
string
False
Mail folder to monitor, for nested calendars separate with ‘/’ ex. “Inbox/SubFolder/FinalFolder” Default is Inbox
max_items
integer
False
Max number of items to retrieve (default 5)
is_unread
boolean
False
True=Only get unread, False=Only get read, Not set=Get all