@apocaliss92/nodelink-js 0.4.34 → 0.4.35

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.
@@ -8274,7 +8274,19 @@ function computeDeviceCapabilities(params) {
8274
8274
  // lightType >= 2 indicates controllable white LED / floodlight (1 = IR only).
8275
8275
  // ledCtrl > 1 is a secondary signal that rescues firmwares like the Duo 3
8276
8276
  // WiFi which under-report lightType (=1) despite having a real spotlight.
8277
- hasFloodlight: Number.isFinite(lightType) ? lightType >= 2 || hasFloodlightFromLedCtrl : hasFloodlightFromAbilities || hasFloodlightFromLedCtrl,
8277
+ //
8278
+ // Doorbell exception: the Reolink desktop app's native SDK exposes
8279
+ // three SEPARATE ability flags — `supportFloodLight`, `supportDoorbellLight`
8280
+ // (with KeepOff/KeepOn sub-flags) and `supportIndicatorLight`. Doorbell-class
8281
+ // devices route the ring / button-area LED through `supportDoorbellLight`,
8282
+ // which is NOT a controllable white-light floodlight. We don't have a
8283
+ // documented bit-level mapping for ledCtrl, so we use the narrowest
8284
+ // rule that matches Reolink's own taxonomy: when the firmware is
8285
+ // categorical with lightType=0 AND the device identifies itself as a
8286
+ // doorbell (doorbellVersion > 0), trust lightType=0 and ignore the
8287
+ // ledCtrl bitmask. Verified against UID 9527000ICL1T1MDS (lightType=0,
8288
+ // ledCtrl=3073, doorbellVersion=31, no spotlight hardware).
8289
+ hasFloodlight: Number.isFinite(lightType) ? lightType >= 2 || hasFloodlightFromLedCtrl && !(isDoorbellFromSupport && lightType === 0) : hasFloodlightFromAbilities || hasFloodlightFromLedCtrl,
8278
8290
  hasPir: hasPirFromAbilities || hasPirFromSupport,
8279
8291
  isDoorbell,
8280
8292
  hasAutotracking: ptzDisabledBySupport ? false : hasAutotrackingFromSupport || hasAutotrackingFromAbilities,
@@ -24794,4 +24806,4 @@ export {
24794
24806
  isTcpFailureThatShouldFallbackToUdp,
24795
24807
  autoDetectDeviceType
24796
24808
  };
24797
- //# sourceMappingURL=chunk-OJ5RWPGY.js.map
24809
+ //# sourceMappingURL=chunk-N6TCSER3.js.map