@apocaliss92/scrypted-advanced-notifier 3.2.4 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,111 +2,115 @@
2
2
 
3
3
  https://github.com/apocaliss92/scrypted-advanced-notifier - For requests and bugs
4
4
 
5
- This plugin is feature rich notifier to handle detection notifications.
5
+ # Getting started
6
+ ## MQTT
7
+ To enable MQTT exporting:
8
+ - enable `MQTT enabled` in the general -> general tab
9
+ - setup the authentication parameters in the tab general -> MQTT, check the `Use MQTT plugin credentials` to use the credentials set on the MQTT plugin
10
+ - Check `Use NVR detections` if you want the images stored on MQTT to be the clipped ones from NVR.
11
+ - Check `Audio pressure (dB) detection` if you want a continuous reporting of the audio kept by the camera (dBs)
12
+ - Set a positive number to `Check objects occupancy in seconds` to regularly check the static objects on the frame
13
+ - Cameras enabled to the plugin will be automatically enabled to MQTT. Can be disabled in the camera's section Advanced notifier -> Report to MQTT
6
14
 
7
- ## Homeassistant
8
- It's possbile to configure an homeassistant connection (or utilize the one configured in the `Homeassistant` plugin) to fetch configured Rooms and Entities which are identified by one of the `Entity regex patterns`, these can be then assigned to a camera or sensor to add metadata used to render the notification. The fetched data will be visible in the `METADATA` group, and edited
15
+ The plugin will export to MQTT the following entities:
16
+ - PTZ controls
17
+ - Restart control
18
+ - Basic detection information (motion, animal, person, vehicle, face, plate). Same information will be available for every rule associated to a camera
19
+ - Latest image
20
+ - Triggered
21
+ - Last trigger time (disabled by default)
22
+ - Amount of objects (if enabled)
23
+ - Online status
24
+ - Sleeping status
25
+ - Battery status
26
+ - Recording switch (NVR privacy mode)
27
+ - Current dBs (if enabled)
9
28
 
10
- ## General
29
+ ## Notifications
30
+ The plugin provides customized way to deliver notifications. It is based on rules. Each rule can be activated based on several factors, i.e. active sensors, time ranges, security system status. Any notifier can be used but the only fully supported currently are (can be extended for any other):
31
+ - Homeassistant push notifications
32
+ - Pushover
33
+ It's useful to use both notifiers, homeassistant as push rich notification and pushover as low priority just to store all the events
34
+ Set the following parameters to allow rich notifications
11
35
  - `Scrypted token`: Token stored on the scrypted entity on homeassistant
12
36
  - `NVR url`: Url pointing to the NVR instance, should be accessible from outside
13
- - `Storage path`: If set, the images used to populate MQTT topic will be also stored on the drive path
14
- - `Images name`: The name pattern to use to generate image files. The placeholders ${name} and ${timestamp} will be available. Using only ${name} will ensure the image to be overriden on every detection instead of saving one additional copy
15
-
16
- ## MQTT
17
- It's possible to use MQTT to report data to homeassistant, can be configured standalone or use the configuration from the main `MQTT` plugin.
18
- - `Active entities topic`: topic the plugin will subscribe to activate the rules `OnActive`. Useful to sync the plugin with an alarm system connected to homeassistant (i.e. Alarmo)
19
- - `Active devices for MQTT reporting`: devices selected will be periodically reported to MQTT with several information, i.e. last detections happened, images, status and so on
20
- - `Use NVR detections`: MQTT topics will be published using the detections coming from NVR detections, instead of the one provided by the plugin
21
-
22
- ## Notifier
23
- Mainly supported notifiers are from `Homeassistant` and `Pushover` plugins
24
- - `Active notifiers`: master controller of active notifiers. Each rule will specify it's own set of notifiers
25
37
 
26
- ## Texts
27
- List of strings that will be shown on the notifications based on the detection type. Useful to have localized text, many placeholders are available and specified in each text
28
- ## Detection rules
29
- Fine grained rules can be defined to filter out detections and dispatch to specific notiries at specific conditions, called `Detection rules`. These rules can be added on Plugin level or on Camera level. Each rule has the following settings:
30
- - `Enabled`: Enable or disable the rule (On homeassistant will be available a switch to enable/disable each rule)
31
- - `Activation`: One of Always, OnActive, Schedule
32
- - Always - the rule will always be active (besides enabled flag being off)
33
- - OnActive - the rule will be active only for the devices selected in the `"OnActive" devices` selector (in Detection Rules -> General). This target is automatically synced with the MQTT topic defined in the setting "Active entities topic" under MQTT. MQTT Must be enabled
34
- - Schedule - the rule will be active based on a schedule defined in the rule
35
- - AlarmSystem - the rule will be active based on the current status of the alarm system defined in Plugin => Detection Rules => General => Security System
36
- - `Priority`: Priority of the notification, will have effect only for pushover
37
- - `Custom text`: override text to show on each notification. Will override the defaults
38
- - `Detection classes`: detection classes to trigger the notification
39
- - `Disable recording in seconds`: if set, when the rule is triggered will enable the NVR recordings for the same amount of seconds, will disable afterwards
40
- - `Score threshold`: minimum score to trigger a notification
41
- - `Notifiers`: notifiers to notify
42
- - `Open sensors`: sensors that must be open to trigger a notification
43
- - `Closed sensors`: sensors that must be closed to trigger a notification
44
- - `Alarm modes`: alarm modes to be active to enable this rule (only available for activation AlarmSystem)
45
- - `Actions`: actions that will be shown on the notification. Rendering will vary depending on the notifier. For HA will be an actionable notification, for pushover will be additional links in the text. Both of them require homeassistant to work, the same event will be triggered with the specified action type
46
- - `Devices`: Only available for `Always` and `Schedule` activations. Devices for which notification is active
47
- - `Day - Start time - End time`: properties required for the `Schedule` activation
38
+ Rules can be of following types: Detection, Occupancy, Audio, Timelapse. These properties are in common with all, some are hidden until the `Show more configurations` gets activated
39
+ - `Activation type`: when the rule shoul be active
40
+ - Always
41
+ - Schedule, defined in a time range during the day
42
+ - OnActive, will be active only if the camera will be listed in the `"OnActive" devices` selector (plugin => rules => general). This selector can be driven by MQTT with a topic specified in `Active entities topic` under General => MQTT. The message to this topic can contain either a list of device IDs, names or homeassistant entityId (check homeassistant section)
43
+ - `Notifiers`: notifiers to notify, additional properties will be applied depending on the selected ones
44
+ - `Pushover priority` priority to use on pushover
45
+ - `Homeassistant Actions` actions to show on the homessistant push notifications, of type `{"action":"open_door","title":"Open door","icon":"sfsymbols:door"}`, check homeassistant documentation for further info
46
+ - `Open sensors` which sensors should be open to enable the rule
47
+ - `Closed sensors` which sensors should be closed to enable the rule
48
+ - `Alarm modes` which alarm states should enable the rule. The alarm system device can be defined in the plugin page under Rules => `Security system`
48
49
 
49
- The same detection rules can be defined on each camera level with some additional properties
50
- - `Whitelisted zones`: Only detections on these zones will trigger a notification
51
- - `Blacklisted zones`: Detections on these zones will be ignored
50
+ ### Detection
51
+ These rules can be created for multiple cameras (on the plugin page) or per single camera. They allow to specify which object detections should trigger a notification:
52
+ - Create a new rule adding a new text in the `Detection rules` selector and hit save. A new tab will appear
53
+ - Set the activation type
54
+ - Set the notifiers to notify on the detection
55
+ - Check `Use NVR detections` to trigger the rule only as effect of detections from NVR plugin. This will include cropped images stored on MQTT and will be in sync with the NVR app events reel
56
+ - Set the detection classes and the minimum score to trigger the notification
57
+ - Set `Minimum notification delay` to debounce further notifications (overrides the camera settings)
58
+ - Set `Minimum MQTT publish delay` to debounce the image update on MQTT for this rule
59
+ - Set `Whitelisted zones` to use only detections on these zones
60
+ - Set `Blacklisted zones` to ignore detections coming from these zones
61
+ - Set `Disable recording in seconds` to enable NVR recording for some seconds and disable it afterwords
62
+ - Set a `Custom text` if a specific text should be applied. By default detection rules will use the texts defined in the plugin tab `Texts`, many placeholder are available to enrich the content
63
+ - Check `Enable AI to generate descriptions` if you want to let AI generate a description text out of the image. AI settings are available on the plugin page under the AI, currently supported: GoogleAi, OpenAi, Claude, Groq
52
64
 
53
- ## Occupancy rules
54
- Similar concept applied to occupancy, a combination of observe zone + detection class can be set to check if the zone is occupied or not
55
- ### General configurations
56
- - `Object detector`: Plugin to use to execute the object detection (Overrides the setting specified in the plugin section)
57
- - `Score threshold`: minimum score to trigger the occupancy in bulk (not used for now)
65
+ ### Occupancy (only on camera)
66
+ These rules will monitor a specific area to mark it as occupied or not
67
+ - Make sure to set an object detector on the plugin page under Rules => `Object Detector`
68
+ - Create a new rule adding a new text in the `Occupancy rules` selector and hit save. A new tab will appear
69
+ - Set the activation type
70
+ - Set the notifiers to notify on the occupancy change
71
+ - Set the detection class to monitor
72
+ - Set the camera zone to monitor, must be an `Observe` type zone defined in the `Object detection` section of the camera
73
+ - (Optional) set a capture zone to reduce the frame used for the detection, may increase success rate
74
+ - Set `Zone type`
75
+ - `Intersect` if the objects can be considered detected if falling in any portion of the zone
76
+ - `Contain` if the objects should be completely included in the detection zone
77
+ - Set a `Score threshold`, in case of static detections should be pretty low (default 0.3)
78
+ - Set `Occupancy confirmation`, it's a confirmation period in seconds to avoid false results. Set it depending on your specific case
79
+ - Set `Force update in seconds` to force an occupancy check if no detection happens. Any detection running on the camera will anyways check all the occupancy rules
80
+ - Set the `Max objects` the zone can contain. The zone will be marked as occupied if the detected objects are >= of the number set here
81
+ - Set a text in both `Zone occupied text` and `Zone not occupied text` for the notification texts
58
82
 
59
- ### Rule configurations
60
- - `Enabled`: Enable or disable the rule (On homeassistant will be available a switch to enable/disable each rule)
61
- - `Detection class`: Detection class to match in the zone
62
- - `Observe zone`: Zone of type 'Observe' that will be matched
63
- - `Zone type`: Intersect if the match can happen on any intersection, Contain if the detection must happen completely inside the zone
64
- - `Score threshold`: minimum score to trigger the occupancy
65
- - `Occupancy confirmation`: minimum amount of seconds to wait if the state should be updated. This should avoid some false positives
66
- - `Zone occupied text`: Text that will be notified when the zone gets occupied
67
- - `Zone not occupied text`: Text that will be notified when the zone becomes free
68
- - `Notifiers`: notifiers to notify
69
- - `Priority`: Priority of the notification, will have effect only for pushover
70
- - `Actions`: actions that will be shown on the notification. Rendering will vary depending on the notifier. For HA will be an actionable notification, for pushover will be additional links in the text. Both of them require homeassistant to work, the same event will be triggered with the specified action type
83
+ ### Timelapse (only on camera)
84
+ Define a timeframe, the plugin will collect frames from the camera and generate a clip out of it at the end of the defined range. All the generated timelapses will be available as videoclip on the NVR app, only if the `Enable Camera` on the plugin page will be enabled.
85
+ - Create a new rule adding a new text in the `Timelapse rules` selector and hit save. A new tab will appear
86
+ - Define the week days and the start/end times. i.e. start at 11pm and end at 8am
87
+ - Set the notifiers to notify the generated clip
88
+ - If an homeassistant notifier is used and the final clip will be <50bm, the clip will be shown as preview of the push notification!
89
+ - Set a `Notification text` for the notification message
90
+ - Set a `Frames acquisition delay`, a frame will be generated according to this. Each non-motion detection will always add a frame
91
+ - In future will be possible to add frames based on specific detection classes and even small clips
92
+ - Set a `Timelapse framerate`, this will depend on the timespan you will chose and how long you want the final clip to be
93
+ - Use the `Generate now` button to reuse the frames collected the previous session. They will be stored until the following session starts
71
94
 
72
- ## Timelapse rules
73
- Allow to generate regular timelapses for a specific camera. The output folder will be `Images path`, if not set, the plugin folder will be used instead. The frames of a session will be persisted until the start of the next one, to give the possibility to finetune the result after a session
74
- ### General configurations
75
- - `Notificataion message`: Message sent when the timelapse will be notified
76
- - `Timelapse framerate`: FPS of the final timelapse. The higher the value, the faster will be the timelapse
77
- - `Force snapshot seconds`: A new snapshot will be pushed to the timelapse on regular intervals
78
- - Schedule properties for the time period to capture. This functionality is very well implemented with the homeassistant notifications, the video will be shown in the preview of the notifications
95
+ ### Audio (only on camera)
96
+ Audio rules will monitor the audio received by the camera
97
+ - Create a new rule adding a new text in the `Audio rules` selector and hit save. A new tab will appear
98
+ - Set the notifiers to notify the event
99
+ - Set a `Notification text` for the notification message
100
+ - Set a `Decibel threshold` for the audio level to alert
101
+ - Set `Duration in seconds` if the audio should last at least these seconds to trigger a notification. Leave blank to notify right away
79
102
 
80
- ### Rule configurations
81
- - `Enabled`: Enable or disable the rule (On homeassistant will be available a switch to enable/disable each rule)
82
- - `Detection class`: Detection class to match in the zone
83
- - `Observe zone`: Zone of type 'Observe' that will be matched
84
- - `Zone type`: Intersect if the match can happen on any intersection, Contain if the detection must happen completely inside the zone
85
- - `Score threshold`: minimum score to trigger the occupancy
86
- - `Occupancy confirmation`: minimum amount of seconds to wait if the state should be updated. This should avoid some false positives
87
- - `Zone occupied text`: Text that will be notified when the zone gets occupied
88
- - `Zone not occupied text`: Text that will be notified when the zone becomes free
89
- - `Notifiers`: notifiers to notify
90
- - `Priority`: Priority of the notification, will have effect only for pushover
91
- - `Actions`: actions that will be shown on the notification. Rendering will vary depending on the notifier. For HA will be an actionable notification, for pushover will be additional links in the text. Both of them require homeassistant to work, the same event will be triggered with the specified action type
103
+ ## Stored images
104
+ The plugin will store on filesystem, if configured, images for every basic detection and rule. Set the following configurations on the plugin page under the Storage tab
105
+ - `Storage path`: If set, the images used to populate MQTT topic will be also stored on the drive path
106
+ - `Images name`: The name pattern to use to generate image files. The placeholders ${name} and ${timestamp} will be available. Using only ${name} will ensure the image to be overriden on every detection instead of saving one additional copy
92
107
 
93
- ## Test
94
- A test notification can be send with the specified settings
108
+ ## Additional camera settings
109
+ - `Minimum snapshot acquisition delay`, minimum seconds to wait until a new snapshot can be taken from a camera, keep it around 5 seconds for cameras with weak hardware
110
+ - `Off motion duration`, amount of seconds to consider motion as ended for rules/detections affecting the camera. It will override the motion off events
111
+ - `Snapshot from Decoder`, take snapshots from the camera decoded stream, use it only if you have many timeout errors and cannot rely on updated images on MQTT, this is CPU intensive
112
+ - Set `Minimum notification delay` to debounce further notifications
113
+ - Set `Minimum MQTT publish delay` to debounce the image update on MQTT for this basic detections
95
114
 
96
- ## Device mixin
97
- On each camera/sensor can be set some metadata to enhance the notifications
98
- #### General
99
- - `Room`: room where the camera is located
100
- - `EntityID`: alias of the camera (i.e. on homeassistant). Only used to identify the camera when syncing the `OnActive` devices from Homeassistant
101
- - `Device class`: homeassistant device class to specify the type of the sensor created on MQTT. Defaults will be fine
102
- #### Notifier
103
- - `Actions`: actionable notifications added to the notification
104
- - `Minimum notification delay`: minimum amount of seconds to wait between notification for the same combination of room-detectionClass
105
- - `Snapshot width/height`: dimensions of the snapshot (only for cameras)
106
- - `Ignore camera detections`: ignore detections from the camera. Should always be disabled if the camera is not active on the NVR, otherwise no detections would ever happen (only for cameras)
107
- - `Linked camera`: camera linked to this sensor. Any event happening on the sensor will use the provided camera for the snapshot
108
- #### Webhook (only for cameras)
109
- Simple webooks to retrieve information, only the last snapshot is for now available, could be extended with something else in the future
110
- ## Notifier mixin
111
- - `Snapshot scale`: scale up/down the snapshot of a camera. If 1 will use the originated on camera and will improve performances
112
- - `Texts`: override of the plugin level texts
115
+ ## Homeassistant
116
+ It's possbile to configure an homeassistant connection (or utilize the one configured in the `Homeassistant` plugin) to fetch configured entity IDs which are identified by one of the `Entity regex patterns`. The entities fetched will be available as selection on each camera/sensor to alias them with an homeassistant entity. This helps the `OnActive` rules to send entityIds instead of Scrypted identifiers.
package/dist/plugin.zip CHANGED
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "https://github.com/apocaliss92/scrypted-advanced-notifier"
7
7
  },
8
- "version": "3.2.4",
8
+ "version": "3.3.0",
9
9
  "scripts": {
10
10
  "scrypted-setup-project": "scrypted-setup-project",
11
11
  "prescrypted-setup-project": "scrypted-package-json",
package/README.new.md DELETED
@@ -1,149 +0,0 @@
1
- # Scrypted advanced notifier
2
-
3
- https://github.com/apocaliss92/scrypted-advanced-notifier - For requests and bugs
4
-
5
- <!-- ## Key features
6
- - `MQTT autodiscovery` of the most common functionalities of cameras
7
- - `Detection rules`: setup your custom rules for a single camera (or for multiple in a batch) definining what to detect, where and how. Set which notifiers to be used
8
- - `Occupancy rules`: check the occupancy of a certain area and define the parameters based on your use case
9
- - `Timelapse rules`: define a timespan, the plugin will generate a timelapse at the end of the defined period. The timelapses generated will be available as videoclip on a camera entity
10
- - `Audio rules`: set a threshold and send a notification when the threshold is reached for a certain amount of time
11
- - `Notifiers` currently fully supported: Homeassistant push notifications and Pushover. Can be extended
12
- - `AI`: let your preferred AI service the notification descriptions for a detection rule. Currently supported: GoogleAi, OpenAi, Claude, Groq
13
- - `Images`: besides MQTT, images will be stored also on the filesystem in a specific mounted folder reachable by Scrypted
14
- - `Custom texts`: define your customized text for your notifications, every rule can be customized specifically -->
15
-
16
- # Getting started
17
- ## MQTT
18
- To enable MQTT exporting:
19
- - enable `MQTT enabled` in the general -> general tab
20
- - setup the authentication parameters in the tab general -> MQTT, check the `Use MQTT plugin credentials` to use the credentials set on the MQTT plugin
21
- - Check `Use NVR detections` if you want the images stored on MQTT to be the clipped ones from NVR.
22
- - Cameras enabled to the plugin will be automatically enabled to MQTT. Can be disabled in the camera's section Advanced notifier -> Report to MQTT
23
-
24
- The plugin will export to MQTT the following entities:
25
- - PTZ controls
26
- - Restart control
27
- - Basic detection information (motion, animal, person, vehicle, face, plate). Same information will be available for every rule associated to a camera
28
- - Latest image
29
- - Triggered
30
- - Last trigger time (disabled by default)
31
- - Online status
32
- - Sleeping status
33
- - Battery status
34
- - Recording switch (NVR privacy mode)
35
-
36
- ## Notifications
37
- The plugin provides customized way to deliver notifications. It is based on rules. Each rule can be activated based on several factors, i.e. active sensors, time ranges, security system status. Any notifier can be used but the only fully supported currently are (can be extended for any other):
38
- - Homeassistant push notifications
39
- - Pushover
40
-
41
- Rules can be of following types:
42
- ### Detection
43
-
44
- <!-- ## Homeassistant
45
- It's possbile to configure an homeassistant connection (or utilize the one configured in the `Homeassistant` plugin) to fetch configured Rooms and Entities which are identified by one of the `Entity regex patterns`, these can be then assigned to a camera or sensor to add metadata used to render the notification. The fetched data will be visible in the `METADATA` group, and edited
46
-
47
- ## General
48
- - `Scrypted token`: Token stored on the scrypted entity on homeassistant
49
- - `NVR url`: Url pointing to the NVR instance, should be accessible from outside
50
- - `Storage path`: If set, the images used to populate MQTT topic will be also stored on the drive path
51
- - `Images name`: The name pattern to use to generate image files. The placeholders ${name} and ${timestamp} will be available. Using only ${name} will ensure the image to be overriden on every detection instead of saving one additional copy
52
-
53
- ## MQTT
54
- It's possible to use MQTT to report data to homeassistant, can be configured standalone or use the configuration from the main `MQTT` plugin.
55
- - `Active entities topic`: topic the plugin will subscribe to activate the rules `OnActive`. Useful to sync the plugin with an alarm system connected to homeassistant (i.e. Alarmo)
56
- - `Active devices for MQTT reporting`: devices selected will be periodically reported to MQTT with several information, i.e. last detections happened, images, status and so on
57
- - `Use NVR detections`: MQTT topics will be published using the detections coming from NVR detections, instead of the one provided by the plugin
58
-
59
- ## Notifier
60
- Mainly supported notifiers are from `Homeassistant` and `Pushover` plugins
61
- - `Active notifiers`: master controller of active notifiers. Each rule will specify it's own set of notifiers
62
-
63
- ## Texts
64
- List of strings that will be shown on the notifications based on the detection type. Useful to have localized text, many placeholders are available and specified in each text
65
- ## Detection rules
66
- Fine grained rules can be defined to filter out detections and dispatch to specific notiries at specific conditions, called `Detection rules`. These rules can be added on Plugin level or on Camera level. Each rule has the following settings:
67
- - `Enabled`: Enable or disable the rule (On homeassistant will be available a switch to enable/disable each rule)
68
- - `Activation`: One of Always, OnActive, Schedule
69
- - Always - the rule will always be active (besides enabled flag being off)
70
- - OnActive - the rule will be active only for the devices selected in the `"OnActive" devices` selector (in Detection Rules -> General). This target is automatically synced with the MQTT topic defined in the setting "Active entities topic" under MQTT. MQTT Must be enabled
71
- - Schedule - the rule will be active based on a schedule defined in the rule
72
- - AlarmSystem - the rule will be active based on the current status of the alarm system defined in Plugin => Detection Rules => General => Security System
73
- - `Priority`: Priority of the notification, will have effect only for pushover
74
- - `Custom text`: override text to show on each notification. Will override the defaults
75
- - `Detection classes`: detection classes to trigger the notification
76
- - `Disable recording in seconds`: if set, when the rule is triggered will enable the NVR recordings for the same amount of seconds, will disable afterwards
77
- - `Score threshold`: minimum score to trigger a notification
78
- - `Notifiers`: notifiers to notify
79
- - `Open sensors`: sensors that must be open to trigger a notification
80
- - `Closed sensors`: sensors that must be closed to trigger a notification
81
- - `Alarm modes`: alarm modes to be active to enable this rule (only available for activation AlarmSystem)
82
- - `Actions`: actions that will be shown on the notification. Rendering will vary depending on the notifier. For HA will be an actionable notification, for pushover will be additional links in the text. Both of them require homeassistant to work, the same event will be triggered with the specified action type
83
- - `Devices`: Only available for `Always` and `Schedule` activations. Devices for which notification is active
84
- - `Day - Start time - End time`: properties required for the `Schedule` activation
85
-
86
- The same detection rules can be defined on each camera level with some additional properties
87
- - `Whitelisted zones`: Only detections on these zones will trigger a notification
88
- - `Blacklisted zones`: Detections on these zones will be ignored
89
-
90
- ## Occupancy rules
91
- Similar concept applied to occupancy, a combination of observe zone + detection class can be set to check if the zone is occupied or not
92
- ### General configurations
93
- - `Object detector`: Plugin to use to execute the object detection (Overrides the setting specified in the plugin section)
94
- - `Score threshold`: minimum score to trigger the occupancy in bulk (not used for now)
95
-
96
- ### Rule configurations
97
- - `Enabled`: Enable or disable the rule (On homeassistant will be available a switch to enable/disable each rule)
98
- - `Detection class`: Detection class to match in the zone
99
- - `Observe zone`: Zone of type 'Observe' that will be matched
100
- - `Zone type`: Intersect if the match can happen on any intersection, Contain if the detection must happen completely inside the zone
101
- - `Score threshold`: minimum score to trigger the occupancy
102
- - `Occupancy confirmation`: minimum amount of seconds to wait if the state should be updated. This should avoid some false positives
103
- - `Zone occupied text`: Text that will be notified when the zone gets occupied
104
- - `Zone not occupied text`: Text that will be notified when the zone becomes free
105
- - `Notifiers`: notifiers to notify
106
- - `Priority`: Priority of the notification, will have effect only for pushover
107
- - `Actions`: actions that will be shown on the notification. Rendering will vary depending on the notifier. For HA will be an actionable notification, for pushover will be additional links in the text. Both of them require homeassistant to work, the same event will be triggered with the specified action type
108
-
109
- ## Timelapse rules
110
- Allow to generate regular timelapses for a specific camera. The output folder will be `Images path`, if not set, the plugin folder will be used instead. The frames of a session will be persisted until the start of the next one, to give the possibility to finetune the result after a session
111
- ### General configurations
112
- - `Notificataion message`: Message sent when the timelapse will be notified
113
- - `Timelapse framerate`: FPS of the final timelapse. The higher the value, the faster will be the timelapse
114
- - `Force snapshot seconds`: A new snapshot will be pushed to the timelapse on regular intervals
115
- - Schedule properties for the time period to capture. This functionality is very well implemented with the homeassistant notifications, the video will be shown in the preview of the notifications
116
-
117
- ### Rule configurations
118
- - `Enabled`: Enable or disable the rule (On homeassistant will be available a switch to enable/disable each rule)
119
- - `Detection class`: Detection class to match in the zone
120
- - `Observe zone`: Zone of type 'Observe' that will be matched
121
- - `Zone type`: Intersect if the match can happen on any intersection, Contain if the detection must happen completely inside the zone
122
- - `Score threshold`: minimum score to trigger the occupancy
123
- - `Occupancy confirmation`: minimum amount of seconds to wait if the state should be updated. This should avoid some false positives
124
- - `Zone occupied text`: Text that will be notified when the zone gets occupied
125
- - `Zone not occupied text`: Text that will be notified when the zone becomes free
126
- - `Notifiers`: notifiers to notify
127
- - `Priority`: Priority of the notification, will have effect only for pushover
128
- - `Actions`: actions that will be shown on the notification. Rendering will vary depending on the notifier. For HA will be an actionable notification, for pushover will be additional links in the text. Both of them require homeassistant to work, the same event will be triggered with the specified action type
129
-
130
- ## Test
131
- A test notification can be send with the specified settings
132
-
133
- ## Device mixin
134
- On each camera/sensor can be set some metadata to enhance the notifications
135
- #### General
136
- - `Room`: room where the camera is located
137
- - `EntityID`: alias of the camera (i.e. on homeassistant). Only used to identify the camera when syncing the `OnActive` devices from Homeassistant
138
- - `Device class`: homeassistant device class to specify the type of the sensor created on MQTT. Defaults will be fine
139
- #### Notifier
140
- - `Actions`: actionable notifications added to the notification
141
- - `Minimum notification delay`: minimum amount of seconds to wait between notification for the same combination of room-detectionClass
142
- - `Snapshot width/height`: dimensions of the snapshot (only for cameras)
143
- - `Ignore camera detections`: ignore detections from the camera. Should always be disabled if the camera is not active on the NVR, otherwise no detections would ever happen (only for cameras)
144
- - `Linked camera`: camera linked to this sensor. Any event happening on the sensor will use the provided camera for the snapshot
145
- #### Webhook (only for cameras)
146
- Simple webooks to retrieve information, only the last snapshot is for now available, could be extended with something else in the future
147
- ## Notifier mixin
148
- - `Snapshot scale`: scale up/down the snapshot of a camera. If 1 will use the originated on camera and will improve performances
149
- - `Texts`: override of the plugin level texts -->