homebridge-plugins / homebridge-govee

Homebridge plugin to integrate Govee devices into HomeKit.
MIT License
481 stars 49 forks source link

Govee Dreamview P1 H6054 not showing in Home app #356

Closed sdugoten closed 8 months ago

sdugoten commented 1 year ago

What issue do you have? Please be as thorough and explicit as possible.

I can successfully add the H6054 into homebridge. The "accessories" page in homebridge also see the new light switch and it's working on the homebridge website. However, nothing is shown on Home app in iPhone. Adding new accessory also can't find the new light.

Details of your setup.

Please paste any relevant logs below.

[11/15/2022, 10:12:52 PM] Loaded plugin: homebridge-govee@7.1.4 [11/15/2022, 10:12:52 PM] Registering platform 'homebridge-govee.Govee' [11/15/2022, 10:12:52 PM] --- [11/15/2022, 10:12:52 PM] [Govee] Initializing Govee platform... [11/15/2022, 10:12:52 PM] [Govee] Initialising plugin v7.1.4 | System linux | Node v16.13.1 | HB v1.5.1 | HAPNodeJS v0.10.4... [11/15/2022, 10:12:52 PM] Loading 1 accessories... [11/15/2022, 10:12:52 PM] [DummySwitch] Initializing DummySwitch accessory... [11/15/2022, 10:12:52 PM] [DummySwitch] Setting switch to false [11/15/2022, 10:12:52 PM] The plugin "homebridge-govee" requires Node.js version of ^14.21.1 || ^16.18.1 || ^18.12.1 which does not satisfy the current Node.js version of v16.13.1. You may need to upgrade your installation of Node.js - see https://homebridge.io/w/JTKEF [11/15/2022, 10:12:52 PM] [Govee] Plugin initialised. Setting up accessories.... Setup Payload: X-HM://0023ISYWxxxxx Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐     
│ 031-45-154 │     
└────────────┘     

[11/15/2022, 10:12:52 PM] Homebridge v1.5.1 (HAP v0.10.4) (Homebridge 27F5) is running on port 53104. [11/15/2022, 10:12:52 PM] [Govee] [LAN] server started listening on 0.0.0.0:4002. [11/15/2022, 10:12:53 PM] [homebridge-samsung-tizen] Launched child bridge with PID 4638 [11/15/2022, 10:12:53 PM] Registering platform 'homebridge-samsung-tizen.SamsungTizen'

[11/15/2022, 10:12:55 PM] [Govee] [AWS] connect event. [11/15/2022, 10:12:56 PM] [Govee] [API] client enabled and found 1 device(s). [11/15/2022, 10:12:56 PM] [Govee] [BLE] disabling client as EAFNOSUPPORT, Address family not supported by protocol at default.pluginSetup (file:///homebridge/node_modules/homebridge-govee/lib/platform.js:463:26). [11/15/2022, 10:12:56 PM] [Govee] [DreamView P1] initialising with options {"adaptiveLightingShift":0,"aws":"enabled","ble":"disabled","brightnessStep":1,"colourSafeMode":false,"lan":"unsupported"}. [11/15/2022, 10:12:56 PM] [Govee] [DreamView P1] initialised with id [B3:4C:C3:33:xx:xx:5E:50] [H6054]. [11/15/2022, 10:12:56 PM] [Govee] [DreamView P1] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1668550376799000","type":0}}. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] [API] receiving update {"online":true,"powerState":"on","brightness":100,"color":{"r":15,"b":250,"g":170},"source":"API"}. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] has been reported [online]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] current brightness [100%]. [11/15/2022, 10:12:57 PM] [Govee] [AWS] message event [{"proType":2,"sku":"H6054","device":"B3:4C:C3:33:xx:xx:5E:50","softVersion":"1.09.11","wifiSoftVersion":"1.00.29","cmd":"status","type":0,"transaction":"v_1668550376799000","pactType":2,"pactCode":1,"state":{"onOff":1,"brightness":100,"color":{"r":15,"g":170,"b":250},"colorTemInKelvin":0,"mode":21,"wifiHardVersion":"1.03.00","bleHardVersion":"3.02.01","result":1},"op":{"command":["qlUAZDIBAAAyAAAAAAAAAAAAAJo=","qgUVAQAAAAAAAAAAAAAAAAAAALs=","qqUBZA+q+mQPqvpkD6r6ZA+q+g4=","qqUCZA+q+mQPqvpkD6r6ZA+q+g0=","qqUDZA+q+mQPqvpkD6r6ZA+q+gw=","qhEAHg8PAAAAAAAAAAAAAAAAAKU=","qhL/ZAAAgAoAAAAAAAAAAAAAAKk=","qiP/AAAAgAAAAIAAAACAAAAAgHY=","qjMRAAAAAAAAAAAAAAAAAAAAAIg=","qqkABgEQAwEKBgAAAAAAAAAAABo=","qqkCAWQAAAAAAAAAAAAAAAAAAGQ="]}}]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] [AWS] receiving update {"source":"AWS","onOff":1,"brightness":100,"color":{"r":15,"g":170,"b":250},"colorTemInKelvin":0,"mode":21,"wifiHardVersion":"1.03.00","bleHardVersion":"3.02.01","result":1,"commands":["qlUAZDIBAAAyAAAAAAAAAAAAAJo=","qgUVAQAAAAAAAAAAAAAAAAAAALs=","qqUBZA+q+mQPqvpkD6r6ZA+q+g4=","qqUCZA+q+mQPqvpkD6r6ZA+q+g0=","qqUDZA+q+mQPqvpkD6r6ZA+q+gw=","qhEAHg8PAAAAAAAAAAAAAAAAAKU=","qhL/ZAAAgAoAAAAAAAAAAAAAAKk=","qiP/AAAAgAAAAIAAAACAAAAAgHY=","qjMRAAAAAAAAAAAAAAAAAAAAAIg=","qqkABgEQAwEKBgAAAAAAAAAAABo=","qqkCAWQAAAAAAAAAAAAAAAAAAGQ="]}. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] current brightness [39%]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qlUAZDIBAAAyAAAAAAAAAAAAAJo=] [aa5500643201000032000000000000000000009a]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qgUVAQAAAAAAAAAAAAAAAAAAALs=] [aa051501000000000000000000000000000000bb]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qqUBZA+q+mQPqvpkD6r6ZA+q+g4=] [aaa501640faafa640faafa640faafa640faafa0e]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qqUCZA+q+mQPqvpkD6r6ZA+q+g0=] [aaa502640faafa640faafa640faafa640faafa0d]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qqUDZA+q+mQPqvpkD6r6ZA+q+gw=] [aaa503640faafa640faafa640faafa640faafa0c]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qhEAHg8PAAAAAAAAAAAAAAAAAKU=] [aa11001e0f0f00000000000000000000000000a5]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qhL/ZAAAgAoAAAAAAAAAAAAAAKk=] [aa12ff640000800a0000000000000000000000a9]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qiP/AAAAgAAAAIAAAACAAAAAgHY=] [aa23ff0000008000000080000000800000008076]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qjMRAAAAAAAAAAAAAAAAAAAAAIg=] [aa33110000000000000000000000000000000088]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qqkABgEQAwEKBgAAAAAAAAAAABo=] [aaa90006011003010a060000000000000000001a]. [11/15/2022, 10:12:57 PM] [Govee] [DreamView P1] new scene code: [qqkCAWQAAAAAAAAAAAAAAAAAAGQ=] [aaa9020164000000000000000000000000000064]. [11/15/2022, 10:12:58 PM] [Govee] ✓ Setup complete. Check out my other Homebridge plugins! https://github.com/bwp91

20221115_221756

sdugoten commented 1 year ago

also, the light always show it's at 39% like the other threads that having the same issue

bwp91 commented 1 year ago

Hi @sdugoten

if you are running the govee plugin as a child bridge have you added this to the home app with the QR code?

sdugoten commented 1 year ago

Hi @sdugoten

if you are running the govee plugin as a child bridge have you added this to the home app with the QR code?

I have to run the plugin in child bridge mode? I can't run in accessory mode?

I have done some testing. If I run in child bridge mode, it does show up in Home app.

However, if I change to run the plugin in accessory mode like below, when I click on the "+" sign in home app, there is nothing can be added

20221116_190546

bwp91 commented 1 year ago

You don’t need to run the plugin with a child bridge. Though they are always recommended for your plugins.

If you aren’t running in child bridge mode, you need to make sure the main homebridge bridge has been added to the home app

bwp91 commented 1 year ago

and in this case the govee accessories should automatically appear in the home app when you restart homebridge

sdugoten commented 1 year ago

You don’t need to run the plugin with a child bridge. Though they are always recommended for your plugins.

If you aren’t running in child bridge mode, you need to make sure the main homebridge bridge has been added to the home app

For some reason, the main homebridge bridge just disappear from home app, I reset all bridge in homebridge fixed the problem

bwp91 commented 1 year ago

so the govee accessory is now appearing in your home app?

sdugoten commented 1 year ago

so the govee accessory is now appearing in your home app?

Yes, after I reset the main homebridge bridge , got a new QR code and number, I am able to add govee accessory back into home app in accessory mode. So, you were correct that I need to make sure " the main homebridge bridge has been added", which for whatever reason it was missing

bwp91 commented 1 year ago

okay great. if you update to the new version of the plugin, you should find the brightness issue is fixed.

does colour changing work?

sdugoten commented 1 year ago

okay great. if you update to the new version of the plugin, you should find the brightness issue is fixed.

does colour changing work?

this morning when I tried it...it said it's offline

[11/17/2022, 10:00:25 AM] [Govee] Plugin initialised. Setting up accessories.... [11/17/2022, 10:00:25 AM] Homebridge v1.5.1 (HAP v0.10.4) (Govee) is running on port 59569. [11/17/2022, 10:00:26 AM] [Govee] [LAN] server started listening on 0.0.0.0:4002. [11/17/2022, 10:00:28 AM] [Govee] [LAN] client enabled and found 0 device(s). [11/17/2022, 10:00:28 AM] [Govee] [HTTP] retrieved access token from cache. [11/17/2022, 10:00:28 AM] [Govee] [HTTP] client enabled and found 1 device(s). [11/17/2022, 10:00:28 AM] [Govee] [AWS] client enabled. [11/17/2022, 10:00:29 AM] [Govee] [AWS] connect event. [11/17/2022, 10:00:29 AM] [Govee] [API] client enabled and found 1 device(s). [11/17/2022, 10:00:30 AM] [Govee] [BLE] disabling client as ERR_DLOPEN_FAILED. [11/17/2022, 10:00:30 AM] [Govee] [DreamView P1] initialising with options {"adaptiveLightingShift":0,"aws":"enabled","ble":"disabled","brightnessStep":1,"colourSafeMode":false,"lan":"unsupported"}. [11/17/2022, 10:00:30 AM] [Govee] [DreamView P1] initialised with id [B3:xx:xx:xx:xx:xx:5E:50] [H6054]. [11/17/2022, 10:00:30 AM] [Govee] [DreamView P1] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1668679230224000","type":0}}. [11/17/2022, 10:00:30 AM] [Govee] [DreamView P1] [API] receiving update {"online":"false","powerState":"off","brightness":100,"color":{"r":109,"b":255,"g":218},"source":"API"}. [11/17/2022, 10:00:30 AM] [Govee] [DreamView P1] has been reported [offline]. [11/17/2022, 10:00:32 AM] [Govee] ✓ Setup complete. Have time to give this plugin a review? https://bit.ly/hb-govee-review [11/17/2022, 10:01:00 AM] [Govee] [DreamView P1] [AWS] sending update {"msg":{"cmd":"status","cmdVersion":2,"transaction":"v_1668679260228000","type":0}}. [11/17/2022, 10:01:00 AM] [Govee] [DreamView P1] [API] receiving update {"online":"false","powerState":"off","brightness":100,"color":{"r":109,"b":255,"g":218},"source":"API"}.

20221117_100329

sdugoten commented 1 year ago

okay great. if you update to the new version of the plugin, you should find the brightness issue is fixed.

does colour changing work?

Ok, it seems the offline problem is Govee's cloud, which was fixed just now.

I tested the brightness setting as well as the color change setting. When you change the brightness or the color, it would not response right away, the bar would jump back and forth. You will have to wait for it to settle down. Same goes for changing color, when try to change the color in the circle palette , you drag around the circle to choose your color. When you stop at the color you want, that little circle will jump around. From time to time you might need to drag again so that it will set to the color you want.

bwp91 commented 1 year ago

@sdugoten

is your light working correctly?

sdugoten commented 1 year ago

@sdugoten

is your light working correctly?

Yes, it's now working

Newgit2025 commented 10 months ago

Hello, i'm having a similar problem: i see correctly the goove strip led in homekit. here there is the problem: is use the strip led in dreamview (it change based on the image displayed in the tv) if I say to siri to turn it on/off it works and it is always in dreamview mode but if I include the strip led in a Homekit automation it turns on in a normal color status (red). Why is that? please help me. I'm not an expert of coding.