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