homebridge-govee icon indicating copy to clipboard operation
homebridge-govee copied to clipboard

H6127 wont be added unless configured and bluetooth enabled

Open Fr34k9 opened this issue 2 years ago • 10 comments

Hello, I can't connect to my Device H6127 somehow. In the log I get the following message:

[4/13/2022, 12:45:56 PM] [Govee] [Test2] [BF:2B:F6:61:44:A7:CB:2F] will not be added to Homebridge unless configured and bluetooth enabled in config.
[4/13/2022, 12:45:56 PM] [Govee] [Govee1] if you notice any flickering when changing the brightness/colour, let me know on Discord/Github with model number [H6159].

Which sounds right, but I cant see anything regarding bluetooth settings except for the entry "lightDevices". But do I really have to create the whole entry by myself even though it detects the correct mac-address?

I use homebridge-ui (v4.42.0) with all the newest versions.

  • Homebridge [v1.4.0]
  • Homebridge-govee v4.30.3

Really appreciate your help! I already saw some people were able to connect, so I think its more a problem on my side than on your side. Regards Fr34k

Fr34k9 avatar Apr 13 '22 10:04 Fr34k9

Okay, why not trying it before reporting it. After I added the following to my config:

"lightDevices": [
                {
                    "label": "TESTTEST",
                    "deviceId": "BF:2B:F6:61:44:A7:CB:2F",
                    "ignoreDevice": false,
                    "enableBT": true,
                    "brightnessStep": 10,
                    "adaptiveLightingShift": 15,
                    "overrideLogging": "default"
                }
            ]

I can see atleast the entry now. But this device is added with bluetooth: disabled. [4/13/2022, 1:01:49 PM] [Govee] [Test2] has been added to Homebridge. [4/13/2022, 1:01:49 PM] [Govee] [Test2] initialising with options {"adaptiveLightingShift":15,"bluetooth":"disabled","brightnessStep":10,"logging":"standard"}. [4/13/2022, 1:01:49 PM] [Govee] [Test2] initialised with id [BF:2B:F6:61:44:A7:CB:2F] [H6127]. Why? Is bluetooth even needed? I am not running it on a raspberry, instead im running it on an ubuntu server.

Bluetooth is available. /tmp$ dmesg | grep -i blue [ 22.615788] Bluetooth: Core ver 2.22 [ 22.615821] Bluetooth: HCI device and connection manager initialized [ 22.615825] Bluetooth: HCI socket layer initialized [ 22.615826] Bluetooth: L2CAP socket layer initialized [ 22.615830] Bluetooth: SCO socket layer initialized

PS: When I click on the entry in devices, the following message will appear. [4/13/2022, 1:14:13 PM] [Govee] [Test2] not sending AWS update as not available or enabled. [4/13/2022, 1:14:13 PM] [Govee] [Test2] could not be updated as not available or enabled at GoveePlatform.sendDeviceUpdate (/usr/local/lib/node_modules/homebridge-govee/lib/index.js:1275:15). The bluetooth address is successfully detected if I check the devices tab in govee-settings.

Fr34k9 avatar Apr 13 '22 11:04 Fr34k9

Hi @Fr34k9

Can you restart the plugin and show me all the logs that appear from the plugin initialising?

Feel free to remove device names/ids etc

bwp91 avatar Apr 15 '22 14:04 bwp91

Is bluetooth even needed?

Yes, for this model since it is a bluetooth only model (not wifi) the plugin can’t use cloud connection instead it has to use bluetooth

bwp91 avatar Apr 15 '22 14:04 bwp91

Hello

Restart the plugin? I dont know how, so I just post the log of homebridge after restart. I obviously deleted some entries because they didnt matter anyhow.

[4/16/2022, 12:39:56 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[4/16/2022, 12:40:01 PM] [HB Supervisor] Restarting Homebridge...
[4/16/2022, 12:40:01 PM] [HB Supervisor] Starting Homebridge with extra flags: -I
[4/16/2022, 12:40:01 PM] [HB Supervisor] Started Homebridge v1.4.0 with PID: 2819174
[4/16/2022, 12:40:02 PM] Loaded config.json with 4 accessories and 7 platforms.
[4/16/2022, 12:40:02 PM] Loaded 9 cached accessories from cachedAccessories.
[4/16/2022, 12:40:02 PM] ---
[4/16/2022, 12:40:02 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:02 PM] Registering platform 'homebridge-automower.Automower'
[4/16/2022, 12:40:02 PM] ---
[4/16/2022, 12:40:02 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:02 PM] Registering platform 'homebridge-config-ui-x.config'
[4/16/2022, 12:40:02 PM] ---
[4/16/2022, 12:40:02 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:02 PM] Registering accessory 'homebridge-dummy.DummySwitch'
[4/16/2022, 12:40:02 PM] ---
[4/16/2022, 12:40:02 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:02 PM] Registering platform 'homebridge-govee.Govee'
[4/16/2022, 12:40:02 PM] ---
[4/16/2022, 12:40:03 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:03 PM] Registering accessory 'homebridge-http-switch.HTTP-SWITCH'
[4/16/2022, 12:40:03 PM] ---
[4/16/2022, 12:40:04 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:04 PM] Registering platform 'homebridge-hue.Hue'
[4/16/2022, 12:40:04 PM] ---
[4/16/2022, 12:40:04 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:04 PM] Registering platform 'homebridge-myq.myQ'
[4/16/2022, 12:40:04 PM] ---
[4/16/2022, 12:40:04 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:05 PM] Registering platform 'homebridge-people-pro.PeoplePro'
[4/16/2022, 12:40:05 PM] Registering accessory 'homebridge-people-pro.PeopleProAccessory'
[4/16/2022, 12:40:05 PM] Registering accessory 'homebridge-people-pro.PeopleProAllAccessory'
[4/16/2022, 12:40:05 PM] ---
[4/16/2022, 12:40:05 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:05 PM] Registering accessory 'homebridge-securitysystem.security-system'
[4/16/2022, 12:40:05 PM] ---
[4/16/2022, 12:40:05 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:05 PM] Registering platform 'homebridge-sonos-multiroom.SonosMultiroomPlatform'
[4/16/2022, 12:40:05 PM] ---
[4/16/2022, 12:40:05 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:05 PM] Registering accessory 'homebridge-xiaomi-mi-air-purifier.XiaomiMiAirPurifier'
[4/16/2022, 12:40:05 PM] ---
[4/16/2022, 12:40:05 PM] Loaded plugin: [email protected]
[4/16/2022, 12:40:05 PM] Registering accessory 'homebridge-xiaomi-roborock-vacuum.XiaomiRoborockVacuum'
[4/16/2022, 12:40:05 PM] ---
[4/16/2022, 12:40:05 PM] Loading 7 platforms...
[4/16/2022, 12:40:05 PM] [Config] Initializing config platform...
[4/16/2022, 12:40:05 PM] [Config] Running in Service Mode
[4/16/2022, 12:40:05 PM] [Hue] Initializing Hue platform...
[4/16/2022, 12:40:05 PM] [Hue] homebridge-hue v0.13.39, node v16.14.2, homebridge v1.4.0
[4/16/2022, 12:40:05 PM] [Hue] warning: planned changes, see https://github.com/ebaauw/homebridge-hue/issues/1070

[4/16/2022, 12:40:05 PM] [Govee] Initializing Govee platform...
[4/16/2022, 12:40:05 PM] [Govee] Initialising plugin v4.30.3 | Node v16.14.2 | HB v1.4.0 | HAPNodeJS v0.10.0...
[4/16/2022, 12:40:05 PM] Loading 4 accessories...
[4/16/2022, 12:40:05 PM] [Govee] Plugin initialised. Setting up accessories....
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Küche'...
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Bürotisch'...
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Dimmable light 1'...
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Dimmable light 2'...
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Dimmable light 3'...
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Büroschrank'...
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Plug Büro'...
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Hue temperature sensor 1'...
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Hue temperature sensor 2'...
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Hue temperature sensor 3'...
[4/16/2022, 12:40:06 PM] Initializing platform accessory 'Hue temperature sensor 4'...
Setup Payload:
X-HM://0024UL0HV6A4F
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 833-95-523 │     
    └────────────┘     
                       
[4/16/2022, 12:40:06 PM] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge) is running on port 51726.
[4/16/2022, 12:40:06 PM] [Govee] Login successful.
[4/16/2022, 12:40:07 PM] [Govee] Disabling BLE client as ENODEV, No such device.
[4/16/2022, 12:40:07 PM] [Govee] [Test2] has been added to Homebridge.
[4/16/2022, 12:40:07 PM] [Govee] [Test2] initialising with options {"adaptiveLightingShift":15,"bluetooth":"disabled","brightnessStep":10,"logging":"debug"}.
[4/16/2022, 12:40:07 PM] [Govee] [Test2] initialised with id [BF:2B:xx:61:xx:xx:xx:xx] [H6127].
[4/16/2022, 12:40:07 PM] [Govee] [Govee1] if you notice any flickering when changing the brightness/colour, let me know on Discord/Github with model number [H6159].
[4/16/2022, 12:40:07 PM] [Govee] [Govee1] initialising with options {"adaptiveLightingShift":0,"brightnessStep":1,"disableAWS":"no","enableBT":"no","logging":"debug"}.
[4/16/2022, 12:40:07 PM] [Govee] [Govee1] initialised with id [5B:xx:xx:C1:xx:9E:xx:xx] [H6159].
[4/16/2022, 12:40:07 PM] [Govee] [Govee1] [API] receiving update [{"source":"API","online":"false","powerState":"off","brightness":100,"color":{"r":0,"b":0,"g":255}}].
[4/16/2022, 12:40:07 PM] [Govee] [Govee1] has been reported [offline].
[4/16/2022, 12:40:08 PM] [Govee] [Govee1] [AWS] connected event.
[4/16/2022, 12:40:09 PM] [Govee] ✓ Setup complete. Have time to give this plugin a review? http://bit.ly/hb-govee-review
[4/16/2022, 12:40:22 PM] [Govee] [Govee1] [API] receiving update [{"source":"API","online":"false","powerState":"off","brightness":100,"color":{"r":0,"b":0,"g":255}}].
[4/16/2022, 12:40:37 PM] [Govee] [Govee1] [API] receiving update [{"source":"API","online":"false","powerState":"off","brightness":100,"color":{"r":0,"b":0,"g":255}}].
[4/16/2022, 12:40:52 PM] [Govee] [Govee1] [API] receiving update [{"source":"API","online":"false","powerState":"off","brightness":100,"color":{"r":0,"b":0,"g":255}}].

Config:

{
            "name": "Govee",
            "username": "[email protected]",
            "password": "xxxxx",
            "apiKey": "4bxxx362-xxxxx-4dbb-xxxxx-a90xxxxxxxbd",
            "debug": true,
            "disableDeviceLogging": false,
            "platform": "Govee",
            "lightDevices": [
                {
                    "label": "TESTTEST",
                    "deviceId": "BF:2B:F6:61:xx:xx:xx:xx",
                    "ignoreDevice": false,
                    "enableBT": true,
                    "customAddress": "f6:xx:xx:a7:xx:xx",
                    "brightnessStep": 10,
                    "adaptiveLightingShift": 15,
                    "overrideLogging": "default"
                }
            ]
        },

Fr34k9 avatar Apr 16 '22 10:04 Fr34k9

I can see in your log here:

[4/16/2022, 12:40:07 PM] [Govee] Disabling BLE client as ENODEV, No such device.

This is why the bluetooth is disabling for your device even though you have it enabled in the config. Even though your system has bluetooth enabled, this means that the bluetooth package that this plugin uses cannot access it and doesn't think it exists.

Are your ubuntu system software/firmware/drivers all up to date? Also can you try running this command to install the extra packages that are needed for linux based platforms?

sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev

bwp91 avatar Apr 16 '22 11:04 bwp91

Hello. My system is up to date. Havent seen those comments anywhere so far. Unfortunately this didnt solve my issues. Still receiving message [4/23/2022, 7:37:50 PM] [Govee] Disabling BLE client as ENODEV, No such device. afer successfully using your apt-get command

Fr34k9 avatar Apr 23 '22 17:04 Fr34k9

What is the output if you run this in the homebridge terminal?

hcitool dev

bwp91 avatar Apr 24 '22 14:04 bwp91

I'm not sure if this is the same issue I am having but I fully updated/upgraded apt-get and have the most up to date version of Noble. hcitool dev shows me my Bluetooth antennae(?) on my RPi. I am still getting the same message. The only difference is that I have string lights instead of LED strips. I have the H7002

brylee123 avatar Apr 25 '22 02:04 brylee123

For me it doesnt look like the same issue. hcitool dev only returns me Devices:

Fr34k9 avatar Apr 25 '22 14:04 Fr34k9

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 25 '22 22:05 stale[bot]

Closing this as a bit overwhelmed with issues. Please update to the beta version of the plugin, and if you are still having issues, do reopen this ticket! Thanks and apologies if closing prematurely.

bwp91 avatar Oct 10 '22 18:10 bwp91