[MQTT] Any plans to update the reviews topic to associate labels with event IDs? #15893
-
I'm using the reviews topic for HA notifications. The relevant data (copied from the docs): {
"detections": [
"1718987128.947436-g92ztx",
"1718987148.879516-d7oq7r",
"1718987126.934663-q5ywpt"
],
"objects": ["person", "car"],
"sub_labels": ["Bob"],
"zones": ["front_yard"],
"audio": []
} I'm currently plucking the first event ID from the detections array to get an image for a notification. But I'd like to prioritise an image of a person over a car, for example. With the current structure that is not possible, well without making API calls to get more information about each event. Would it be a relatively simple change to expand the schema to include these associations? {
"detections": [
"1718987128.947436-g92ztx",
"1718987148.879516-d7oq7r",
"1718987126.934663-q5ywpt"
],
"objects": ["person", "car"],
"sub_labels": ["Bob"],
"zones": ["front_yard"],
"audio": [],
"events": [{
"id": "1718987128.947436-g92ztx",
"object": "person",
"sub_labels": ["Bob"],
"zones": ["front_yard"],
"audio": []
}, {
"id": "1718987128.947436-d7oq7r",
"object": "car",
"sub_labels": [],
"zones": [],
"audio": []
}, {
"id": "1718987128.947436-q5ywpt",
"object": "car",
"sub_labels": [],
"zones": [],
"audio": []
}]
} I'm not immediately sure how easy this structure would be to work with in HA templates but just an example that provides the info I'd like. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No, we do not want to keep track of every object that was part of the review sequence and all of its attributes. Review items designate a period of activity not an entire set of objects. For busy periods of time this payload could become very large with a lot of redundant information. It should be possible for the review thumbnail to be made available in the Frigate HA integration, the preview gif / video already is available in the integrations notifications api and is often more suitable for understanding a notification than a still image. |
Beta Was this translation helpful? Give feedback.
No, we do not want to keep track of every object that was part of the review sequence and all of its attributes. Review items designate a period of activity not an entire set of objects. For busy periods of time this payload could become very large with a lot of redundant information.
It should be possible for the review thumbnail to be made available in the Frigate HA integration, the preview gif / video already is available in the integrations notifications api and is often more suitable for understanding a notification than a still image.