add iCloud example (#18904)

This commit is contained in:
Ghannes 2021-08-12 10:08:56 +02:00 committed by GitHub
parent c13b15c667
commit ff2072dc6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,15 @@ calendar:
url: https://nextcloud.example.com/remote.php/dav url: https://nextcloud.example.com/remote.php/dav
``` ```
```yaml
# Example configuration.yaml entry for iCloud, calendars will be found automatically
calendar:
- platform: caldav
username: !secret userIcloud
password: !secret passIcloud
url: https://caldav.icloud.com
```
This example will generate default binary sensors for each calendar you have in your account. Those calendars will be `on` when there is an ongoing event and `off` if not. Events that last a whole day are ignored in those calendars. You have to setup custom calendars in order to take them into account or for advanced event filtering. This example will generate default binary sensors for each calendar you have in your account. Those calendars will be `on` when there is an ongoing event and `off` if not. Events that last a whole day are ignored in those calendars. You have to setup custom calendars in order to take them into account or for advanced event filtering.
## Custom calendars ## Custom calendars