metbril / home-assistant-config

🏠 My Home Assistant configuration
MIT License
25 stars 2 forks source link

Fix webcal.fi #56

Closed metbril closed 1 year ago

metbril commented 2 years ago

The Webcal.fi website has moved to webcal.guru and now requires an active subscription. The free account only provides ICS and no longer supports JSON. So I need to update the Holidays and Flagdays sensors. Have disabled them for now.

metbril commented 2 years ago

7a69344a2cc7238805c04349538f54fa989935a7

metbril commented 1 year ago

That was easy. I've managed to get 2 Web Guru calendars into Home Assistant. I'm experimenting a little and once I have things working as they should, I'll push it to the repo.

  1. Install the ICS Calendar integration through HACS and restart Home Assistant
  2. Create account with Webcal Guru
  3. Go to your account page and copy the calendar url to your clipboard. It looks something like https://www.webcal.guru/nl-NL/kalender_downloaden?subscription_id=xxx
  4. Paste that url into your YAML configuration (using secrets if you push the repo!)
calendar:
  - platform: ics_calendar
    calendars:
      - name: "Feestdagen"  # public holidays
        url: "https://www.webcal.guru/nl-NL/kalender_downloaden?subscription_id=xxx"
        days: 2  # look ahead 1 day
        include_all_day: true
        download_interval: 60 ## minutes
      - name: "Vlagdagen"  # flag days
        url: "https://www.webcal.guru/nl-NL/kalender_downloaden?subscription_id=yyy"
        days: 2  # look ahead 1 day
        include_all_day: true
        download_interval: 60 ## minutes
metbril commented 1 year ago

For historical purposes: these were the original configs:

https://github.com/metbril/home-assistant-config/blob/800bbc8d0a3b7dbf49fabdd27a9e37953a96a14f/old_packages/flag.yaml

https://github.com/metbril/home-assistant-config/blob/800bbc8d0a3b7dbf49fabdd27a9e37953a96a14f/old_packages/holiday.yaml