Help me please with automation

greetings to all, thanks for accepting me, I have a problem with an automation that I cannot start. Upon identifying a predefined face, the dot alexa media player should start. The player works, the facial recognition works, but the automation doesn’t start.

camera:
  - platform: mjpeg
    mjpeg_url: http://xxx.xxx.xxx.xxx:8081
    name: salone

image_processing:
  - platform: dlib_face_identify
    source:
      - entity_id: camera.salone
        name: cam
    faces:
      Attilio: /home/homeassistant/.homeassistant/facce/attilio.jpg

alexa_media:
  accounts:
  - email: [email protected]
    password: xxxxxxx
    url: amazon.it
automation:
- alias: "riconosciuto"      
  trigger:
    platform: state
    entity_id: image_processing.cam
    to: 'Attilio'
 # to: 1
  condition: []
  action:
  - service: script.turn_on
    entity_id: script.ascolto  

look in the developers tool-> states page for that entity and make sure that the state is exactly as you see it there including capitalization. Most states are in all lowercase. It makes a difference.

I checked and everything is written correctly, the entity is related to the automation