KoljaWindeler / ics

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

Randomly stopped working? #55

Open cwrau opened 1 month ago

cwrau commented 1 month ago

The following config doesn't work anymore, just showing "no next event", although there definitely is one, I can send you the ical file or URL privately if you need it;

{
  "entry_id": "e26a8cfd0090456e8fa82fcd1daa0f78",
  "version": 1,
  "minor_version": 1,
  "domain": "ics",
  "title": "Übernächster freier Tag",
  "data": {
    "name": "Übernächster freier Tag",
    "url": "**********************************************************",
    "timeformat": "%A, %d.%m.%Y",
    "startswith": "",
    "contains": "",
    "regex": "Urlaub|Überstundenausgleich|Krank",
    "lookahead": 14,
    "show_blank": "",
    "force_update": 3600,
    "show_remaining": false,
    "show_ongoing": false,
    "group_events": true,
    "n_skip": 1,
    "description_in_state": false,
    "icon": "mdi:calendar",
    "id": 2
  },
  "options": {
    "name": "Übernächster freier Tag",
    "url": "**********************************************************",
    "timeformat": "%A, %d.%m.%Y",
    "startswith": "",
    "contains": "",
    "regex": "Urlaub|Überstundenausgleich|Krank",
    "lookahead": 14,
    "show_blank": "",
    "force_update": 3600,
    "show_remaining": false,
    "show_ongoing": false,
    "group_events": true,
    "n_skip": 1,
    "description_in_state": false,
    "icon": "mdi:calendar",
    "id": 2
  },
  "pref_disable_new_entities": false,
  "pref_disable_polling": false,
  "source": "user",
  "unique_id": null,
  "disabled_by": null
}
cwrau commented 1 month ago

Ah, I found something out, if I use .* for the regex and Urlaub for startsWith at least this works, so somehow the regex is broken?

cwrau commented 1 month ago

K, nevermind, I'm just incredibly stupid, the event had a trailing space 🤣

But, how can I remove the startsWith now? If I empty the field and submit it's still in there 😅