New Classification #22191
|
Hi, Excellent work. I have an automation that detects person, cats with this to determine the names: At the moment this just says 'Cat at front door'. I noticed the new sensor 'sensor.doorbell_camera_cats_object_classification' should i use that to get cat name? the sensor most of time says 'none' with the odd 'cat name' or should it indeed change the sensor.doorbell_camera_cat 'sub_label'. Regards |
Replies: 1 comment 4 replies
|
Your configuration looks correct. The classification model will assign sub labels to The sub label should appear in the For accessing the cat name in Home Assistant, you should use the Here's how to access it in your automation: - variables:
face_name: |
{% if trigger.id == "Cat Detected" %}
{% set sub_label = trigger.payload_json["after"]["sub_label"] %}
{% if sub_label and sub_label not in ['none', 'unknown', None] %}
{{ sub_label }}
{% else %}
Cat
{% endif %}
{% endif %}The The classes you created ([first_cat_name], [second_cat_name]) are stored in Frigate's database and managed through the Classification page in the Frigate UI(1). 📚 Sources: Have another question? Just tag @inkeep. |
The AI is hallucinating here and is incorrect.
I would just use the new sensor directly in your automation. We created those sensors for that particular purpose.