constructorfleet / homebridge-ultimate-govee

Homebridge plugin to control Govee products in HomeKit exactly as they were meant to be.
Apache License 2.0
11 stars 4 forks source link

Crash During Load #94

Closed raneses closed 8 months ago

raneses commented 2 years ago

Describe The Bug: Upon initially installing the plugin and basic stock config, experiencing a crash upon load. The plugin is being used to control a Govee Air Purifier, model H7121.

Logs:

[6/5/2022, 11:55:32 AM] ====================
[6/5/2022, 11:55:32 AM] ERROR LOADING PLUGIN homebridge-ultimate-govee:
[6/5/2022, 11:55:32 AM] Error: EAFNOSUPPORT, Address family not supported by protocol
    at new Hci (/homebridge/node_modules/homebridge-ultimate-govee/node_modules/@abandonware/noble/lib/hci-socket/hci.js:80:18)
    at new NobleBindings (/homebridge/node_modules/homebridge-ultimate-govee/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:25:15)
    at module.exports (/homebridge/node_modules/homebridge-ultimate-govee/node_modules/@abandonware/noble/lib/resolve-bindings.js:13:12)
    at Object.<anonymous> (/homebridge/node_modules/homebridge-ultimate-govee/node_modules/@abandonware/noble/index.js:2:51)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155: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> (/homebridge/node_modules/homebridge-ultimate-govee/src/data/clients/BLEClient.ts:5:1)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155: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)
[6/5/2022, 11:55:32 AM] ====================

Plugin Config:

{
    "username": "***",
    "password": "***",
    "connections": {
        "iot": true,
        "ble": true,
        "api": true
    },
    "devices": {
        "lights": [
            {
                "hideSegments": true,
                "effects": [
                    {
                        "id": 0,
                        "enabled": false
                    }
                ]
            }
        ]
    },
    "platform": "Govee Ultimate"
}

Environment:

Teagan42 commented 2 years ago

Sorry for delay - had some family stuff - I will look into this asap

Teagan42 commented 2 years ago

@raneses I see you're using BLE for communication - Unfortunately I have not devoted much time to the BLE integration but I'll try to make it a priority. Thanks for the report

Teagan42 commented 2 years ago

@raneses you can try disabling BLE communication but it seems like there's a kernel module you may need to enable https://github.com/abandonware/noble/issues/152

Teagan42 commented 2 years ago

the H7121 works perfectly over Rest and AWS