AVBoX
Février 12, 2023, 5:27
1
Bonjour,
Je test local calendar avec une automatisation, mais je n’ai aucun déclenchement de celle-ci lorsque qu’un événement du calendrier arrive.
Voici mon automatisation :
alias: Test notif calendrier
description: ""
trigger:
- platform: calendar
event: start
offset: "0:0:0"
entity_id: calendar.poubelle
enabled: true
condition: []
action:
- service: notify.telegram
data:
message: 🗑️ {{trigger.calendar_event.description}} 🗑️
mode: single
AVBoX
Février 12, 2023, 7:48
2
Apparement il y a un délai de rafraîchissement de 15min lorsqu’on créé un évènement dans le calendrier
opened 06:57AM - 09 Dec 22 UTC
closed 08:37PM - 01 Jan 23 UTC
integration: local_calendar
### The problem
Automations using the new Local Calendar integration never tr… igger for me. I have tried every permutation I can think of.
Using a normal state trigger against the calendar appears to work without issue.
Automation YAML that does not trigger:
```
platform: calendar
event: start
entity_id: calendar.heating_schedule
id: Bedtime
```
Automation YAML that triggers fine:
```
platform: state
entity_id:
- calendar.heating_schedule
to: "on"
id: Bedtime
```
### What version of Home Assistant Core has the issue?
2022.12.0
### What was the last working version of Home Assistant Core?
N/A (local calendar integration is new)
### What type of installation are you running?
Home Assistant Container
### Integration causing the issue
Local Calendar
### Link to integration documentation on our website
_No response_
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_
Bonsoir,
J’ai le même genre de notification, ci-joint mon code :
alias: Notification Poubelles
description: ""
trigger:
- platform: calendar
event: start
offset: "-0:15:0"
entity_id: calendar.poubelles
condition: []
action:
- service: notify.ntfy
data:
message: "{{ trigger.calendar_event.description }}"
mode: queued
max: 10
A quoi correspond le « enabled: true » ?
De plus, il est fortement déconseillé d’être en mode single.
Extrait de la doc :
Calendar triggers should not generally use automation mode single
to ensure the trigger can fire when multiple events start at the same time (e.g., use queued
or parallel
instead). Note that calendars are read once every 15 minutes. When testing, make sure you do not plan events less than 15 minutes away from the current time, or your trigger might not fire.