KoljaWindeler / ics

Integration that displays the next event of an ics link (support reoccuring events)
51 stars 12 forks source link

Unable to read the "description" field in the ICS #37

Open signaleleven opened 2 years ago

signaleleven commented 2 years ago

With an ics file containing events like this:

BEGIN:VEVENT
DTSTAMP:20211209T101739Z
UID:4Vjz1CuvbzTSkYfbF9PQSIBV2We0av8kDecBQij1@awm-muenchen.de
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!

KoljaWindeler commented 2 years ago

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