ics icon indicating copy to clipboard operation
ics copied to clipboard

Unable to read the "description" field in the ICS

Open signaleleven opened this issue 3 years ago • 1 comments

With an ics file containing events like this:

BEGIN:VEVENT
DTSTAMP:20211209T101739Z
UID:[email protected]
SUMMARY: Achtung: Restmülltonne, XXXXstr. YY
DTSTART;TZID=Europe/Berlin;VALUE=DATE:20220106
DTEND;TZID=Europe/Berlin;VALUE=DATE:20220106
LOCATION:XXXXstr. YY
DESCRIPTION:Im Zeitraum 18.12.2021 bis 11.01.2022 kann es wegen der Feiertage vorkommen, dass wir Ihre Tonnen vor oder nach dem gewohnten Termin leeren.
STATUS:CONFIRMED
BEGIN:VALARM
TRIGGER:-PT15H
ACTION:DISPLAY
DESCRIPTION:Restmülltonne, XXXXstr. YY
END:VALARM
END:VEVENT

Setting up a calendar that detects those events (by filtering for contains: Achtung for instance) correctly provides the next event in the sensor, but no state attribute contains the text in the DESCRIPTION field of the ics event. Instead, the attribute "description" seems to contain the summary.

I love this integration, it should be stock in Home Assistant! Thank you!

signaleleven avatar Dec 09 '21 10:12 signaleleven

true .. ICS isn't very strictly defined .. most provider have the text in summary and not in description for what ever reason. But you're welcome to add the 2nd field and submit a pull-request :D

KoljaWindeler avatar Dec 09 '21 12:12 KoljaWindeler