@apocaliss92/scrypted-advanced-notifier 5.0.17 → 5.0.18

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.
@@ -46,6 +46,8 @@
46
46
  - Update **both**: Home Assistant autodiscovery config (config topics) and state publishing (state/image topics). Don’t add “publish-only” values.
47
47
  - If the entity is per-camera/per-rule, ensure the camera mixin publishes it (see [src/cameraMixin.ts](src/cameraMixin.ts)).
48
48
  - If you change entity IDs/names, expect users may need to clear retained discovery/state topics; the plugin also exposes a “Reset all MQTT topics” action (see `mqttResetAllTopics` in [src/main.ts](src/main.ts)).
49
+ - **Interface-conditional entities** (e.g. Battery, Charger, Online, Sleep): define the entity in `getBasicMqttEntities()`, then guard inclusion with `device.interfaces.includes(ScryptedInterface.XXX)` in discovery (`getCameraMqttEntitiesForDiscovery`), initial state (`buildCameraInitialEntityStates`), publishing (`publishCameraValues`), and topic-clear (`resetAllPluginMqttTopicsAndRediscover`).
50
+ - **Plugin-level diagnostic entities** (e.g. memory, RPC, NVR storage health): define in `getBasicMqttEntities()`, add to `setupPluginAutodiscovery()`, and publish in `publishPluginValues()`. Use `entityCategory: ‘diagnostic’`. For conditional plugin entities, pass a flag (e.g. `hasNvrStoragePaths`) to control discovery inclusion.
49
51
 
50
52
  ### When you add/change a setting or rule option
51
53
  - Add a stable key to the correct `...SettingKey` union (plugin keys in [src/main.ts](src/main.ts), camera keys in [src/cameraMixin.ts](src/cameraMixin.ts), notifier keys in [src/notifierMixin.ts](src/notifierMixin.ts)).
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  <details>
2
2
  <summary>Changelog</summary>
3
3
 
4
+ ### 5.0.18
5
+
6
+ - Add NVR storage health binary sensor: automatically fetches all NVR storage paths (recordingsPath, largeDisks, fastDisks) and checks every 5 minutes whether they are mounted correctly. Exposed as a `binary_sensor` (device class `problem`) diagnostic entity on Home Assistant
7
+ - Add Charger entity: cameras with the `Charger` interface now expose a `binary_sensor` (device class `plug`) diagnostic entity showing whether the device is charging or on trickle charge
8
+ - Add one-time alert at startup notifying users that the HA custom component (websocket transport) is available and will become the default in the next major version
9
+
4
10
  ### 5.0.16
5
11
 
6
12
  Add health check of NVR paths, best effort on all the configured paths
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": "5.0.17",
8
+ "version": "5.0.18",
9
9
  "scripts": {
10
10
  "docs:dev": "cd docs && npm run dev",
11
11
  "docs:build": "cd docs && npm run build",