Automation error: Invalid data for call_service at pos 1: extra keys not allowed @ data['identity_id']

Hi!

I have a problem with the automation. I use it mostly via GUI and the result in automations.yaml is this:

- id: '1560520285134'
  alias: Tenda do polovice
  trigger:
  - at: '13:00:00'
    platform: time
  action:
  - data:
      identity_id: switch.tendadol
    service: switch.turn_on

But when I manually trigger the automation, I get this error:

Error while executing automation automation.tenda_do_polovice. Invalid data for call_service at pos 1: extra keys not allowed @ data[‘identity_id’]

Since I’ve done the automation via GUI it should be formatted correctly I presume.

Please help, I’m going mad with the automation section of HomeAssistant! :slight_smile:

entity_id, not identity_id.

2 Likes

Thank you!!! It’s working now!

I was watching the configuration so long that I’v lost my mind and couldn’t see this typo.