Invalid config for [automation]

Please help me with:
Invalid config for [automation]: [entity] is an invalid option for [automation]. Check: automation->trigger->0->entity. (See /config/configuration.yaml, line 165).
my automations.yaml

    - alias: 'Home automation'
      trigger:
        platform: state
        entity: sensor.kitchen_wall_button
        from: 'off'
        to: 'on'
      condition:
        condition: state
        entity_id: switch.sw_one
        state: 'off'
      action:
        - service: switch.turn_on
          entity_id: switch.sw_one
          data:
            message: 'Тик Так 10 сек'
        - delay:
            seconds: 10
        - service: switch.turn_off
          entity_id: switch.sw_one
          data:
            message: 'Выключаю'

the entity in the trigger block (from configuration.yaml):

        kitchen_wall_button:
            value_template: "{{states.sensor.esp.attributes.push_btn}}"
            friendly_name: 'DSH wall button'

work well - I can see it state in Lovelace

and I have also tried to put id:

- id: my_unique_id
  alias: 'Home automation'
  trigger:
    platform: state
    entity: sensor.kitchen_wall_button
    from: 'off'
    to: 'on'
  condition:
    condition: state
    entity_id: switch.sw_one
    state: 'off'
  action:
    - service: switch.turn_on
      entity_id: switch.sw_one
      data:
        message: 'Тик Так 10 сек'
    - delay:
        seconds: 10
    - service: switch.turn_off
      entity_id: switch.sw_one
      data:
        message: 'Выключаю'

the result are same.
It seems to me that something wrong with: entity: sensor.kitchen_wall_button
but I can’t understand what’s wrong.

entity_id, not entity.

what do you mean?

what do you mean? could you explain?

Read your code carefully and look for entity and replace with entity_id

thank you! now that Error solved - I’m happy

By the way - after I have solved this problem another one comes with this code:
Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data['message']
What can you advise to me?

You cannot use a message with a switch service.

thank you!
I have deleted all messages and it works