forked from Github/frigate
Send mqtt message when motion is detected (#3152)
* Send mqtt message when motion is detected * Use object processing instead of passing mqtt client around * Cleanup * Formatting * add comment * Make off delay configurable. * Handle updating each camera based on config off delay * Formatting * Update docker-compose.yml * Fix processing issue * Update mqtt docs * Update main config docs * Make sure multiple True values aren't published for the same motion * Make sure multiple True values aren't published for the same motion * Update payload to fit existing HA standard values * Update docs to fit new values * Update docs * Update motion topic * Use datetime.datetime and remove unused imports * Cast to int * Clarify motion detector behavior in docs * Fix typo Co-authored-by: Blake Blackshear <blakeb@blakeshome.com>
This commit is contained in:
@@ -123,6 +123,12 @@ Topic with current state of snapshots for a camera. Published values are `ON` an
|
||||
Topic to turn motion detection for a camera on and off. Expected values are `ON` and `OFF`.
|
||||
NOTE: Turning off motion detection will fail if detection is not disabled.
|
||||
|
||||
### `frigate/<camera_name>/motion`
|
||||
|
||||
Whether camera_name is currently detecting motion. Expected values are `ON` and `OFF`.
|
||||
NOTE: After motion is initially detected, `ON` will be set until no motion has
|
||||
been detected for `mqtt_off_delay` seconds (30 by default).
|
||||
|
||||
### `frigate/<camera_name>/motion/state`
|
||||
|
||||
Topic with current state of motion detection for a camera. Published values are `ON` and `OFF`.
|
||||
|
||||
Reference in New Issue
Block a user