Skip to content

Commit 4c574df

Browse files
committed
chore: update value_template
1 parent b327302 commit 4c574df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/util/mqtt.util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ module.exports.recognize = (data) => {
271271
message: JSON.stringify({
272272
name: `double_take_${camera}`,
273273
icon: 'mdi:camera',
274-
value_template: '{{ value_json.personCount }}',
274+
value_template: '{{ value_json.counts.person }}',
275275
state_topic: `${MQTT.TOPICS.HOMEASSISTANT}/sensor/double-take/${camera}/state`,
276276
json_attributes_topic: `${MQTT.TOPICS.HOMEASSISTANT}/sensor/double-take/${camera}/state`,
277277
availability_topic: 'double-take/available',

0 commit comments

Comments
 (0)