Errors

  • The reply URL specified in the request does not match the reply URLs configured for the application.

    or

  • The provided value for the input parameter ‘redirect_uri’ is not valid.
    • Please ensure that you have configured the internet URL on your Home Assistant network settings config and that you have added the correct redirect URI to your Azure app as described in the Prerequisites
  • Client is public so neither ‘client_assertion’ nor ‘client_secret’ should be presented.
    • Please ensure that you have set “Allow public client flows” to Yes in your Azure app under Authentication image
  • Application {x} is not configured as a multi-tenant application.
    • In your azure app go to Manifest, find the key “signInAudience”, change its value to “AzureADandPersonalMicrosoftAccount”
  • The logged in user is not authorized to fetch tokens for extension ‘Microsoft_AAD_RegisteredApps’ because the account is not a member of tenant ‘xxxx’.
    • Please make sure you have set the Supported accounts correctly as described in the Prerequisites
  • No token, or token doesn’t have all required permissions; requesting authorization for account: Account1 Minimum required permissions not granted: [‘Presence.Read’, []]
    • Where this error mentions Presence.Read or Chat.Read it probably means you have tried to configure a Teams Presence or Chat sensor when your account is a Personal Account (such as @outlook.com)
    • For other items, it means you have changed your configuration to require new permissions. You will likely need to delete your token and reauthenticate. Please check the token page for more details.
  • The user could not be authenticated as the grant is expired. The user must sign in again.
    • Create a new secret and update your O365 configuration. Then delete your token and reauthenticate. Please check the token page for more details.
  • Client secret expired for account: xxxxxxxx. Create new client id in Azure App.
    • The Client Secret on your Azure App has expired. Create a new secret and update your O365 configuration.
  • Unable to fetch auth token. Error: (invalid_client) AADSTS7000215: Invalid client secret provided.
    • Ensure the configured secret is the client secret value, not the client secret ID
  • Token corrupt for account - please delete and re-authenticate.
    • You will need to delete your token and reauthenticate. Please check the token page for more details.
  • O365 config requests permission: ‘xxxxxx.xxxxxxx’. Not available in token ‘o365_xxxxxxxx.token’ for account ‘xxxxxxxx’ Validate your Azure permissions match those required as detailed on the permissions page. If they are correct, you will need to delete your token and reauthenticate as described on the token page.

Please note that any changes made to your Azure app settings takes a few minutes to propagate. Please wait around 5 minutes between changes to your settings and any auth attempts from Home Assistant.

Installation issues

  • 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.