[entity_íd] is an invalid option for [automation]; Automation based on caldac

Hi there,

I’m new to HA, so sorry if I missed something obvious. I’m trying to turn on my coffee machine based on a calendar event, but it does not work. So any help is welcome. :wink:

calendar:
  - platform: caldav
    username: some_usr
    password: some_pwd
    url: some_url
    custom_calendars:
      - name: coffee
        calendar: dostuff
        search: 'coffee'

The entity is shown on the HA panel and also shows a correct on/off state. Then I tried to implement an automation based on the created calendar.dostuff_coffee.

  - id: coffeego
    alias: 'Coffee Time'
    trigger:
      platform: state
      entity_id: calendar.dostuff_coffee
      to: 'on'
    action:
      service: switch.turn_on
      entity_íd: switch.coffein

Checking the config creates an error:
automation:
- Invalid config for [automation]: [entity_íd] is an invalid option for [automation]. Check: automation->action->0->entity_íd.

I would be very happy if someone could provide an automation based on a calendar event.

Additionally, is there a way to automatically turn the machine off at the end of the event? Or will I have to create a second trigger (after I got the first one working :))?

Thank you very much!

BR
Fo

That error message means that somewhere in one of your automations a line beginning with entity_id is too far to the left and is aligned at the same level as trigger, condition and action, where it needs to be 2 spaces further in.

Ok, I found the mistake after looking at the caption. :wink:
But I am still interested in an example for turning something on and off based on caldav.

No, it seems I somewhere put an accent on the “i” --> “í” (did not see that in putty).