homebridge-google-nest-sdm: Second Gen Google Cameras throw a RangeError when attempting to view stream
When I try to view the video stream of a second gen camera in the Home app I get a “No Response” error and the Homebridge console displays RangeError: offset is out of bounds
(first gen cameras are able to stream just fine):
[09/08/2023, 14:40:32] [homebridge-google-nest-sdm] RangeError: offset is out of bounds
at Uint8Array.set (<anonymous>)
at Function.padStart (/usr/local/lib/node_modules/homebridge-google-nest-sdm/node_modules/webcrypto-core/build/webcrypto-core.js:972:13)
at Function.encodeSignature (/usr/local/lib/node_modules/homebridge-google-nest-sdm/node_modules/webcrypto-core/build/webcrypto-core.js:940:22)
at Function.sign (/usr/local/lib/node_modules/homebridge-google-nest-sdm/node_modules/@peculiar/webcrypto/build/webcrypto.js:1575:54)
at EcdsaProvider.onSign (/usr/local/lib/node_modules/homebridge-google-nest-sdm/node_modules/@peculiar/webcrypto/build/webcrypto.js:1737:25)
at EcdsaProvider.sign (/usr/local/lib/node_modules/homebridge-google-nest-sdm/node_modules/webcrypto-core/build/webcrypto-core.js:157:28)
at SubtleCrypto.sign (/usr/local/lib/node_modules/homebridge-google-nest-sdm/node_modules/webcrypto-core/build/webcrypto-core.js:1405:39)
at Function.create (/usr/local/lib/node_modules/homebridge-google-nest-sdm/node_modules/@peculiar/x509/build/x509.cjs.js:2407:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Function.CipherContext.createSelfSignedCertificateWithKey (/usr/local/lib/node_modules/homebridge-google-nest-sdm/node_modules/dtls/src/context/cipher.ts:111:18)
at RTCDtlsTransport.setupCertificate (/usr/local/lib/node_modules/homebridge-google-nest-sdm/node_modules/werift/src/transport/dtls.ts:69:9)
at RTCPeerConnection.createOffer (/usr/local/lib/node_modules/homebridge-google-nest-sdm/node_modules/werift/src/peerConnection.ts:221:7)
at WebRtcNestStreamer.initialize (/usr/local/lib/node_modules/homebridge-google-nest-sdm/src/NestStreamer.ts:104:21)
at CameraStreamingDelegate.startStream (/usr/local/lib/node_modules/homebridge-google-nest-sdm/src/StreamingDelegate.ts:300:20)
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (7 by maintainers)
@adamneveu: It should work with the Gen2 battery just fine.