Generates an iCalendar (.ics) link that you can use to view your Home Assistant calendars in another app.
-
Install HACS, if you did not already
-
Press the Download button
-
Add the following to your configuration.yaml file:
icalendar: calendars: - entity_id: calendar.entity_id secret: yourSuperSecret
There should be a "calendars" entry for all calendars that need remote access.
- Restart Home Assistant
Copy all files in the custom_components/icalendar folder to your Home Assistant folder config/custom_components/icalendar.
In your preferred calendar application, input your iCalendar URL in the following format:
- Home Assistant URL - http://homeassistant.local:8123
- iCalendar API path - /api/ics/
- Calendar Entity Id - calendar.entity_id
- Secret parameter - ?s=secret
- http://homeassistant.local:8123/api/ics/calendar.holidays?s=yourSuperSecret
You can add colours to both calendars and specific named events by adding them to your config. Colours are specified as named CSS3 colours. For example, to colour events for your bin calendar, you might use:
icalendar:
calendars:
- entity_id: calendar.bins
secret: yourSuperSecret
colour: black
colours:
- name: "Recycling"
colour: green
- name: "Food waste"
colour: brown
This will colour the event "Recycling" as green, "Food waste" as brown and the calendar itself (usually this is used as the default event colour) as black.
- Line length is not restricted to 75 characters
Your support is welcomed.