franc6 / ics_calendar

Provides an ICS (icalendar) platform for the Home Assistant calendar
Apache License 2.0
154 stars 23 forks source link

Filtering not working #192

Open the8thsign opened 6 days ago

the8thsign commented 6 days ago

Home Assistant Setup Please indicate your version of HA and how it is installed.

Version: Home Assistant 2024.11.2 ics_calendar 5.0.4 installed via HACS

Installation Type (put an X between the square brackets for your HA): [] Home Assistant OS [X] Home Assistant OS [] Home Assistant Supervised [] Home Assistant Container [] Home Assistant Core

Hardware platform: [X] ARM [] x86-64

Describe the bug Filter does not seem to be working for me or maybe I just misunderstood how it's suppose to work.

I'd like to filter just the events that have "No School" in the title, example: "No School - Thanksgiving Recess". I add ["no school"] in the include filter. The entire calendar is showing, example: "Early Dismissal" is currently showing. Should it be filtering that out or does the entity turn on if the filter matches and stays off if it doesn't?

franc6 commented 6 days ago

The include filter is to include things that would otherwise be excluded. To see only events with [“No School”], put that in the include filter, and [“/.*/“] for the exclude filter. Maybe I should add an example for showing “only” matching events to the README…

TOM

the8thsign commented 6 days ago

This worked! Thank you. I did have to use ' instead of " incase anyone else runs across this.

gieljnssns commented 6 days ago

Thanks a lot, I was searching for the same.