mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
Update calendar.markdown (#27189)
This commit is contained in:
parent
0011f517a6
commit
aada5288f3
@ -180,3 +180,17 @@ data:
|
||||
start_date: "2022-10-01"
|
||||
end_date: "2022-10-02"
|
||||
```
|
||||
|
||||
Home Assistant Calendars do not allow zero duration Calendar events. The following would create a one minute long event starting "now". This could be used to record an external event in a Calendar.
|
||||
|
||||
{% raw %}
|
||||
```yaml
|
||||
service: calendar.create_event
|
||||
target:
|
||||
entity_id: calendar.device_automation_schedules
|
||||
data:
|
||||
summary: "Example"
|
||||
start_date_time: "{{ now() }}"
|
||||
end_date_time: "{{ now() + timedelta(minutes=1) }}"
|
||||
```
|
||||
{% endraw %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user