Closed dallombra closed 7 months ago
exclude:
- "(via Café)"
thanks for the suggestion, but that didn't work either...does the filter need some wildcard (i.e. */%) in order to work?
The actual calendar event would have a longer name, with the portion in bracket being just the last part: so the event would be "XXXX XXXX (via Café)"
I'm afraid it works fine in my environment. Do you have any errors in your logs?
- cal_id: redacted
entities:
- device_id: HA Test
end_offset: 672
name: HA Test
start_offset: -24
track: true
exclude:
- "(via Café)"
Could it be related to the fact that the events I'm trying to filter are All-day events and not regularly timed events?
Int shouldn't do, but I'll take a look when I get a chance.
Had a moment. No, that still works fine. Any errors in your logs?
No errors in the logs.
I've tried like the below as well, in case the "é" was the issue, still all events are showing up.
entities:
- device_id: Calendar
end_offset: 24
name: Calendar
track: true
exclude:
- "(via Caf"
Sorry, I can't see why to doesn't work for you. I'd have to provide a debug version. Probably tomorrow...
Found the issue! Sorry I have many calendars in the Yaml and I didn't notice that the one I was trying to filter was somehow duplicated in the config file.
I had applied the filtering only on the first instance, without realising there was a second copy below that was effectively overwriting the filter!
All sorted. Thanks for the help.
Delete the second one. Somehow, sometimes it gets duplicated...
Indeed that's what I did and it works perfectly now!
Hello, I've tried many different formatting for the 'calendar - exclude' feature, in order to remove events that contains this string: (via Café)
No matter what I tried and I also searched a lot online, I can't figure out the correct way to write the exclusion code in the yaml configuration.