-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Analysis
Hi, MY Devices (Homebridge Nest) do not initialize with Homebridge v2.0.0 Beta 30 vs. v1.11.0 see
Errors:
[Nest] TypeError: Cannot read properties of undefined (reading 'bind')
at new NestDeviceAccessory (/homebridge/node_modules/@ethan021/homebridge-nest/lib/nest-device-accessory.js:54:87)
at new NestHomeAwayAccessory (/homebridge/node_modules/@ethan021/homebridge-nest/lib/nest-homeaway-accessory.js:17:9)
at NestPlatform. (/homebridge/node_modules/@ethan021/homebridge-nest/index.js:60:47)
at NestPlatform. (/homebridge/node_modules/@ethan021/homebridge-nest/index.js:68:17)
at HomebridgeAPI. (/homebridge/node_modules/@ethan021/homebridge-nest/index.js:100:40)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
[9/27/2025, 11:31:40 AM] [Nest] NOTE: Because we couldn't connect to the Nest service, your Nest devices in HomeKit will not be responsive.
[9/27/2025, 11:31:40 AM] TypeError: characteristic.getValue is not a function
at /homebridge/node_modules/@ethan021/homebridge-nest/index.js:124:44
at Array.forEach ()
at /homebridge/node_modules/@ethan021/homebridge-nest/index.js:121:49
at Array.forEach ()
at /homebridge/node_modules/@ethan021/homebridge-nest/index.js:120:40
at Array.forEach ()
at HomebridgeAPI. (/homebridge/node_modules/@ethan021/homebridge-nest/index.js:119:40)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
Expected Behavior
With v1.11.0 the device initialization works:
[9/27/2025, 11:52:03 AM] Homebridge v1.11.0 (HAP v0.13.1) (Homebridge Nano) is running on port 51084.
[9/27/2025, 11:52:10 AM] [Nest] initing home_away_sensor "Home Occupied": deviceId: 09582980-4e25-11e9-baa0-12bd3af63056 structureId: 09582980-4e25-11e9-baa0-12bd3af63056
[9/27/2025, 11:52:10 AM] [Nest] initing protect "Nest Protect": deviceId: 18B4300000999CEA structureId: 09582980-4e25-11e9-baa0-12bd3af63056
Steps To Reproduce
Switching between Homebridge v2.0.0 Beta 30 vs. v1.11.0
Logs
[9/27/2025, 11:31:32 AM] Homebridge v2.0.0-beta.30 (HAP v2.0.0-beta.2) (Homebridge Nano) is running on port 51084.
[9/27/2025, 11:31:34 AM] [Homebridge UI] Running command npm install --omit=dev --save homebridge@1.11.0.
[9/27/2025, 11:31:40 AM] [Nest] initing home_away_sensor "Home Occupied": deviceId: 09582980-4e25-11e9-baa0-12bd3af63056 structureId: 09582980-4e25-11e9-baa0-12bd3af63056
[9/27/2025, 11:31:40 AM] Got SIGTERM, shutting down Homebridge...
[9/27/2025, 11:31:40 AM] [Nest] TypeError: Cannot read properties of undefined (reading 'bind')
at new NestDeviceAccessory (/homebridge/node_modules/@ethan021/homebridge-nest/lib/nest-device-accessory.js:54:87)
at new NestHomeAwayAccessory (/homebridge/node_modules/@ethan021/homebridge-nest/lib/nest-homeaway-accessory.js:17:9)
at NestPlatform.<anonymous> (/homebridge/node_modules/@ethan021/homebridge-nest/index.js:60:47)
at NestPlatform.<anonymous> (/homebridge/node_modules/@ethan021/homebridge-nest/index.js:68:17)
at HomebridgeAPI.<anonymous> (/homebridge/node_modules/@ethan021/homebridge-nest/index.js:100:40)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
[9/27/2025, 11:31:40 AM] [Nest] NOTE: Because we couldn't connect to the Nest service, your Nest devices in HomeKit will not be responsive.
[9/27/2025, 11:31:40 AM] TypeError: characteristic.getValue is not a function
at /homebridge/node_modules/@ethan021/homebridge-nest/index.js:124:44
at Array.forEach (<anonymous>)
at /homebridge/node_modules/@ethan021/homebridge-nest/index.js:121:49
at Array.forEach (<anonymous>)
at /homebridge/node_modules/@ethan021/homebridge-nest/index.js:120:40
at Array.forEach (<anonymous>)
at HomebridgeAPI.<anonymous> (/homebridge/node_modules/@ethan021/homebridge-nest/index.js:119:40)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
[9/27/2025, 11:31:46 AM] [HB Supervisor] Homebridge process ended. Code: 143, signal: null.
[9/27/2025, 11:31:46 AM] [Homebridge UI] Homebridge restart request received.
[9/27/2025, 11:31:47 AM] [Homebridge UI] Sending SIGTERM to process...
[9/27/2025, 11:31:47 AM] [HB Supervisor] Stopping services...
[9/27/2025, 11:31:51 AM] [HB Supervisor] Restarting Homebridge...
[9/27/2025, 11:31:51 AM] [HB Supervisor] Could not find Homebridge. Make sure you have installed Homebridge using the -g flag then restart.
[9/27/2025, 11:31:51 AM] [HB Supervisor] npm install -g --unsafe-perm homebridge
[9/27/2025, 11:31:56 AM] [HB Supervisor] OS: Linux 6.1.25 arm64.
[9/27/2025, 11:31:56 AM] [HB Supervisor] Node.js v22.20.0 /opt/homebridge/bin/node.
[9/27/2025, 11:31:56 AM] [HB Supervisor] Homebridge path: /var/lib/homebridge/node_modules/homebridge/bin/homebridge.
[9/27/2025, 11:31:56 AM] [HB Supervisor] UI path: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js.
[9/27/2025, 11:32:01 AM] [Homebridge UI] Server metrics monitoring disabled.
[9/27/2025, 11:32:02 AM] [Homebridge UI] Homebridge UI v5.7.0 is listening on :: port 64278.
[9/27/2025, 11:32:03 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution.
[9/27/2025, 11:32:03 AM] [HB Supervisor] Started Homebridge v1.11.0 with PID: 1549.
[9/27/2025, 11:32:05 AM] Loaded config.json with 0 accessories and 2 platforms.
[9/27/2025, 11:32:05 AM] Loaded 2 cached accessories from cachedAccessories.
[9/27/2025, 11:32:05 AM] ---
[9/27/2025, 11:32:05 AM] Loaded plugin: @ethan021/homebridge-nest@4.6.10
[9/27/2025, 11:32:05 AM] Registering platform '@ethan021/homebridge-nest.Nest'
[9/27/2025, 11:32:05 AM] ---
[9/27/2025, 11:32:05 AM] Loading 2 platforms...
[9/27/2025, 11:32:05 AM] [Nest] Initializing Nest platform...
[9/27/2025, 11:32:05 AM] [Nest] Fetching Nest devices.
Setup Payload:
X-HM://0024D75XBFIWG
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:Configuration
{
"bridge": {
"name": "Homebridge Nano",
"username": "not displayed",
"port": 51084,
"pin": "not displayed",
"advertiser": "avahi",
"bind": [
"br-lan"
]
},
"accessories": [],
"platforms": [
{
"name": "Config",
"port": 64278,
"auth": "form",
"theme": "orange",
"lightingMode": "auto",
"menuMode": "default",
"tempUnits": "c",
"lang": "auto",
"sudo": true,
"noFork": true,
"standalone": true,
"ssl": {
"key": "/homebridge/my_key.key",
"cert": "/homebridge/my_cert.crt",
"pfx": "/homebridge/my_pkcs12.pfx",
"passphrase": ""
},
"disableServerMetricsMonitoring": true,
"platform": "config"
},
{
"platform": "Nest",
"googleAuth": {
"issueToken": "not displayed
"cookies":
}
}
]
}Environment
- OS: Docker - Linux blackbox 6.1.25 Crash on adding #1 SMP Fri Mar 29 11:57:58 CST 2024 aarch64 aarch64 aarch64 GNU/Linux
- Software: Homebridge v2.0.0 Beta 30 vs. v1.11.0
- Node: 24.9.0
- npm: 11.6.0
Process Supervisor
Docker (Mention image name in Additional Context)
Additional Context
homebridge/homebridge:latest