在0.82.0z中,
automation old:
- alias: face_indentify
trigger:
platform: numeric_state
entity_id: image_processing.facerec
above: 0
action:
- service: tts.baidu_say
data_template:
message: >
{% if states.image_processing.facerec.attributes.faces %}
{{ states.image_processing.facerec.attributes.faces[0]['name'] }} ,是你呀!
{% else %}
" 你好,陌生人!"
{% endif %}
只读取注册过的人,不读取陌生人。
请问是哪里出了问题? |