RogerSelwyn / O365-HomeAssistant

Office 365 integration for Home Assistant
MIT License
201 stars 15 forks source link

Send Email Service not created #252

Closed RAW297 closed 1 month ago

RAW297 commented 1 month ago

Hi,

I have installed and reinstalled a couple of times reading through the documentation and everything seems to be installed and configured correctly and is authenticated.

I can see the integration, it has 3 entities and I can see one action has been created for the Scan for new calendars, but I cannot see the notify.email action created so that I can send emails via O365.

365_actions

0365_actions_2

365_entities

365_permissions

This is the config I have in the configuration.yaml

o365:
  accounts:
    - account_name: Hotmail # Do not use email address or spaces
      client_id: "99xxxxxx-4xxx-442d-xxxx-8axxa46xxxxx"
      client_secret: "Axxxxx~32iv6mxxxxxLP8eiwE_xxxxxxxxYcvm"
      alt_auth_method: False
      enable_update: False
      email_sensor:
        - name: inbox
          max_items: 10
          is_unread: True
          download_attachments: False
      query_sensors:
        - name: "Example"
          folder: "Inbox/Test_Inbox" #Default is Inbox
          from: "mail@example.com"
          subject_contains: "Example subject"
          has_attachment: True
          max_items: 2
          is_unread: True

Am I missing a step somewhere to get this enabled/configured?

Thanks

RogerSelwyn commented 1 month ago

You need to enable updates at the top level. Not obvious I know, but there does historical reasons. You are probably better using this integration which will eventually replace the relevant portion of the O365 one - https://github.com/RogerSelwyn/MS365-Mail