Issue with trigger from calendar

Hey Folks,
I’m just getting started with HA no try to create my first own automation.

I would like to set a Boolean to true if an events with a specific name is starting in the local calendar. But somehow this doesn’t work. What am I doing wrong here?

Thanks
Andre


alias: Kalender Amelie anwesend setzen
description: ""
trigger:
  - platform: calendar
    event: start
    offset: "0:0:0"
    entity_id: calendar.familie_holz
condition:
  - condition: state
    entity_id: calendar.familie_holz
    attribute: description
    state: Amelie anwesend
action:
  - service: input_boolean.turn_on
    data: {}
    target:
      entity_id: input_boolean.amelie_anwesend
mode: single

In condition don’t reference the calendar entity’s state or attributes. It doesn’t always report the current calendar event. For example, if you have an All Day event its information will appear in the calendar entity for the entire day even if there are other scheduled events on that day. If you have two events scheduled for the same time and day, only one of them will appear in the calendar entity’s attributes.

It’s preferable to reference trigger.calendar_event.

alias: Kalender Amelie anwesend setzen
description: ""
trigger:
  - platform: calendar
    event: start
    offset: "0:0:0"
    entity_id: calendar.familie_holz
condition:
  - condition: template 
    value_template: "{{ 'Amelie anwesend' in trigger.calendar_event.description }}"
action:
  - service: input_boolean.turn_on
    data: {}
    target:
      entity_id: input_boolean.amelie_anwesend
mode: single
2 Likes