alias: Urlaub
description: "Google Kalender Urlaub "
triggers:
- alias: Urlaub 1 (Start)
trigger: calendar
entity_id: calendar.person1
event: start
offset: "0:0:0"
id: person1_On
- alias: Urlaub 1 (Ende)
trigger: calendar
entity_id: calendar.person1
event: end
offset: "0:0:0"
id: person1_Off
conditions:
- condition: template
value_template: "{{ 'Urlaub' in trigger.calendar_event.summary }}"
actions:
- alias: Person1 hat Urlaub
if:
- condition: trigger
id:
- person1_On
then:
- action: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.person1_urlaub
- alias: "Person1 hat keinen Urlaub"
if:
- condition: trigger
id:
- Bjoern_Off
then:
- action: input_boolean.turn_off
target:
entity_id:
- input_boolean.person1_uriaub
data: {}
mode: parallel
max: 10
Das ist eine gekürzte Fassung, das Peinzip sollte aber klar werden.