Hello everyone
Last August I successfully installed the Office 365 Integration for Home Assistant to synchronize my calendar with HA according to these instructions GitHub - RogerSelwyn/O365-HomeAssistant: Office 365 integration for Home Assistant.
Yesterday I updated this repository as well as my HA environment and since then the calendar entries can no longer be updated.
I found out that the command: list_events
is deprecated and I have to replace it with the command: get_events
. I did that, unfortunately without success. I now see the following error message in my log:
Logger: homeassistant.components.automation.import_kalender_marc
Quelle: components/automation/init.py:687
Integration: Automatisierung (Dokumentation, Probleme)
Erstmals aufgetreten: 7. März 2024 um 14:30:00 (18 Vorkommnisse)
Zuletzt protokolliert: 04:30:00
Error while executing automation automation.import_kalender_marc: Service call requested response data but did not match any entities
My automation:
alias: Import Kalender Marc
description: ""
trigger:
- platform: time_pattern
minutes: "30"
condition: []
action:
- service: calendar.get_events
data:
duration:
hours: 72
minutes: 0
seconds: 0
response_variable: scheduled_events
target:
entity_id: calendar.kalender_marc
- event: marc_scheduled_events
event_data:
scheduled_events: "{{ scheduled_events }}"
mode: single
my configuration.yaml:
o365:
accounts:
- account_name: Marc # Do not use email address or spaces
client_id: "<ID>"
client_secret: "<SECRET>"
alt_auth_method: False
enable_update: true
email_sensor:
- name: inbox
max_items: 2
is_unread: True
download_attachments: False
query_sensors:
- name: "Example"
folder: "Inbox/Test_Inbox" #Default is Inbox
from: "[email protected]"
subject_contains: "Example subject"
has_attachment: True
max_items: 2
is_unread: True
status_sensors: # Cannot be used for personal accounts
- name: "User Teams Status"
chat_sensors: # Cannot be used for personal accounts
- name: "User Chat"
todo_sensors:
enabled: False
template:
- trigger:
- platform: event
event_type:
- marc_scheduled_events
sensor:
- name: Marc Scheduled Events
unique_id: marc_scheduled_events
state: "{{ trigger.event.data.scheduled_events.events | count() }}"
attributes:
scheduled_events: "{{ trigger.event.data.scheduled_events.events }}"
icon: mdi:calendar
Can someone help me here?
Many thanks
Greetings
Buhli