asednev / homebridge-plugin-govee

Govee H-series Thermometer Hygrometer plugin for Homebrige.
Apache License 2.0
53 stars 9 forks source link

Govee Plugin fails to start after migrating to new device with EAFNOSUPPORT, Address family not supported by protocol #68

Closed 1ne closed 2 years ago

1ne commented 2 years ago

I used backup and restore functionality to switch to a new Raspberry Pi. After the migration this plugin failed to start with the error below. I've installed noble and other bluetooth dependencies.

Please see the error log below.

[7/20/2022, 7:30:57 PM] ====================
[7/20/2022, 7:30:57 PM] ERROR LOADING PLUGIN homebridge-plugin-govee:
[7/20/2022, 7:30:57 PM] Error: EAFNOSUPPORT, Address family not supported by protocol
    at new Hci (/var/lib/homebridge/node_modules/homebridge-plugin-govee/node_modules/@abandonware/noble/lib/hci-socket/hci.js:80:18)
    at new NobleBindings (/var/lib/homebridge/node_modules/homebridge-plugin-govee/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:25:15)
    at module.exports (/var/lib/homebridge/node_modules/homebridge-plugin-govee/node_modules/@abandonware/noble/lib/resolve-bindings.js:13:12)
    at Object.<anonymous> (/var/lib/homebridge/node_modules/homebridge-plugin-govee/node_modules/@abandonware/noble/index.js:2:51)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/var/lib/homebridge/node_modules/homebridge-plugin-govee/node_modules/govee-bt-client/dist/index.js:17:33)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
[7/20/2022, 7:30:57 PM] ====================

Environment:

1ne commented 2 years ago

I used the raspberry pi image for homebridge and that solved the issue for me.