Skip to content

Commit

Permalink
Add "state": "on" to the MQTT messages (#140)
Browse files Browse the repository at this point in the history
Fixes #139
  • Loading branch information
neilenns authored Jun 7, 2020
1 parent 737f83d commit bb752f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

- Add a `"state": "on"` property to the MQTT messages sent on motion detection. This
makes it easier to build binary motion sensors based on the MQTT messages in Home Assistant
by using `value_template: 'value_json.state'` and `off_delay`. Resolves [issue 139](https://github.com/danecreekphotography/node-deepstackai-trigger/issues/139).

## Version 1.6.0

- watchObjects is now case insensitive when comparing against the matched objects ([issue 134](https://github.com/danecreekphotography/node-deepstackai-trigger/issues/134))
Expand Down
1 change: 1 addition & 0 deletions src/handlers/mqttManager/MqttManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export async function processTrigger(
fileName,
basename: path.basename(fileName),
predictions,
state: "on",
}),
),
];
Expand Down

0 comments on commit bb752f6

Please sign in to comment.