- alias: face_indentify
trigger:
platform: numeric_state
entity_id: image_processing.baidu_face_indentify
above: 0
action:
- service: tts.baidu_say
data_template:
message: >
{% if states.image_processing.baidu_face_indentify.faces %}
{{ states.image_processing.baidu_face_indentify.faces[0]['name'] }} ,是你呀!
{% else %}
你好,陌生人!
{% endif %}
调用姓名的变量是什么,在哪里查询可知? |