homebridge-blink-for-home
homebridge-blink-for-home copied to clipboard
Installed blink and blink for home, but can't get thumbnails - this is the error:
10/04/2022, 18:57:54] Homebridge v1.4.0 (HAP v0.10.0) (Blink) is running on port 52165. [10/04/2022, 18:57:55] [Blink] ADD: Blink:Network:231026:Camera:635790 [10/04/2022, 18:57:56] [Blink] Blink G8T1-GH00-1362-C2LD - Temperature: 15°C
/usr/local/lib/node_modules/homebridge-blink-for-home/src/blink.js:307
const data = await this.blink.getUrl(thumbnailUrl.replace(/.jpg|$/, '.jpg'));
^
TypeError: Cannot read properties of null (reading 'replace')
at BlinkCameraHAP.getThumbnail (/usr/local/lib/node_modules/homebridge-blink-for-home/src/blink.js:307:59)
at BlinkCameraDelegate.handleSnapshotRequest (/usr/local/lib/node_modules/homebridge-blink-for-home/src/homebridge/blink-camera-deligate.js:77:47)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/controller/CameraController.ts:994:23
at new Promise (
Can report the same
[18/07/2022, 19:36:51] TypeError: Cannot read properties of null (reading 'replace')
at BlinkCameraHAP.getThumbnail (/usr/local/lib/node_modules/homebridge-blink-for-home/src/blink.js:307:59)
at BlinkCameraDelegate.handleSnapshotRequest (/usr/local/lib/node_modules/homebridge-blink-for-home/src/homebridge/blink-camera-deligate.js:77:47)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/controller/CameraController.ts:998:23
at new Promise (<anonymous>)
at CameraController.handleSnapshotRequest (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/controller/CameraController.ts:978:12)
at Bridge.Accessory.handleResource (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1852:18)
at HAPServer.emit (node:events:527:28)
at HAPServer.handleResource (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:1017:12)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:385:11)
at IncomingMessage.emit (node:events:539:35)
[18/07/2022, 19:36:51] Got SIGTERM, shutting down Homebridge...
And then Homebridge goes into a crash loop.
This is seen when using with Blink mini (firmware v9.83) on homebridge-blink-for-home v3.9.1 on RaspBerry Pi 3. The error only occurs when the Apple Home App is opened. If you don't open Home, then the Homebridge process doesn't crash and die. node v16.16.0, homebridge v1.5.0.