homebridge-plugins / homebridge-govee

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

H7020 Wrong colors in HK / breaks colors in Govee app #570

Closed esrauscht closed 9 months ago

esrauscht commented 1 year ago

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

After adding the light bulbs in the Govee app and in homebridge, in HomeKit it is not possible to adjust the color normally. All settings result in wrong colors. The brightness adjustment also seems to show different values compared to the Govee app.

On top, after setting up the bulbs in the homebridge plugin, the color adjustment also slightly breaks in the Govee app. For example, orange will always be displayed as green. After deleting the plugin and resetting the bulb string lights (pressing the power button for some seconds) they work again fine in the app.

Details of your setup.

Please paste any relevant logs below.

8/28/2023, 12:00:08 PM] [Govee] [LAN] client enabled and found 0 device(s). [8/28/2023, 12:00:08 PM] [Govee] [HTTP] client enabled and found 1 device(s). [8/28/2023, 12:00:08 PM] [Govee] [AWS] client enabled. [8/28/2023, 12:00:08 PM] [Govee] [BLE] disabling client as Cannot find package '@abandonware/bluetooth-hci-socket' imported from /volume1/homebridge/node_modules/homebridge-govee/lib/platform.js at new NodeError (node:internal/errors:399:5). [8/28/2023, 12:00:08 PM] [Govee] [LED Bulb String Lights] initialising with options {"adaptiveLightingShift":0,"aws":"enabled","ble":"disabled","brightnessStep":1,"colourSafeMode":false,"lan":"unsupported"}. [8/28/2023, 12:00:08 PM] [Govee] [LED Bulb String Lights] initialised with id [DD:33:CD:38:32:30:28:1F] [H7020]. [8/28/2023, 12:00:10 PM] [Govee] ✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful! [8/28/2023, 12:00:40 PM] [Homebridge UI] [homebridge-govee] Terminating child process... [8/28/2023, 12:00:40 PM] [Homebridge UI] [homebridge-govee] Child process ended [8/28/2023, 12:01:19 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 56 51]. [8/28/2023, 12:01:20 PM] [Govee] [LED Bulb String Lights] current state [on]. [8/28/2023, 12:01:20 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 56 51]. [8/28/2023, 12:01:23 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 129 53]. [8/28/2023, 12:01:24 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 129 53]. [8/28/2023, 12:01:25 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 69 29]. [8/28/2023, 12:01:26 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 69 29]. [8/28/2023, 12:01:26 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 77 22]. [8/28/2023, 12:01:28 PM] [Govee] [LED Bulb String Lights] current colour [rgb 69 255 150]. [8/28/2023, 12:01:28 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 77 22]. [8/28/2023, 12:01:29 PM] [Govee] [LED Bulb String Lights] current colour [rgb 69 255 150]. [8/28/2023, 12:01:33 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 179 161]. [8/28/2023, 12:01:34 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 113 88]. [8/28/2023, 12:01:34 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 179 161]. [8/28/2023, 12:01:35 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 113 88]. [8/28/2023, 12:01:35 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 130 45]. [8/28/2023, 12:01:36 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 133 47]. [8/28/2023, 12:01:37 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 130 45]. [8/28/2023, 12:01:37 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 133 47]. [8/28/2023, 12:01:38 PM] [Govee] [LED Bulb String Lights] current colour [2300K / 434M]. [8/28/2023, 12:01:40 PM] [Govee] [LED Bulb String Lights] current colour [4100K / 244M]. [8/28/2023, 12:01:40 PM] [Govee] [LED Bulb String Lights] current colour [5600K / 178M]. [8/28/2023, 12:01:40 PM] [Govee] [LED Bulb String Lights] current colour [6500K / 154M]. [8/28/2023, 12:01:41 PM] [Govee] [LED Bulb String Lights] current colour [6700K / 149M]. [8/28/2023, 12:01:41 PM] [Govee] [LED Bulb String Lights] current colour [4100K / 244M]. [8/28/2023, 12:01:41 PM] [Govee] [LED Bulb String Lights] current colour [5600K / 179M]. [8/28/2023, 12:01:41 PM] [Govee] [LED Bulb String Lights] current colour [6500K / 154M]. [8/28/2023, 12:01:42 PM] [Govee] [LED Bulb String Lights] current colour [7000K / 143M]. [8/28/2023, 12:01:43 PM] [Govee] [LED Bulb String Lights] current colour [6700K / 149M]. [8/28/2023, 12:01:43 PM] [Govee] [LED Bulb String Lights] current colour [7000K / 143M]. [8/28/2023, 12:01:43 PM] [Govee] [LED Bulb String Lights] current colour [7100K / 140M]. [8/28/2023, 12:01:45 PM] [Govee] [LED Bulb String Lights] current colour [6700K / 150M]. [8/28/2023, 12:01:45 PM] [Govee] [LED Bulb String Lights] current colour [7100K / 141M]. [8/28/2023, 12:01:45 PM] [Govee] [LED Bulb String Lights] current colour [4700K / 211M]. [8/28/2023, 12:01:47 PM] [Govee] [LED Bulb String Lights] current colour [6700K / 149M]. [8/28/2023, 12:01:47 PM] [Govee] [LED Bulb String Lights] current colour [4500K / 223M]. [8/28/2023, 12:01:47 PM] [Govee] [LED Bulb String Lights] current colour [4700K / 213M]. [8/28/2023, 12:01:48 PM] [Govee] [LED Bulb String Lights] current colour [3100K / 322M]. [8/28/2023, 12:01:49 PM] [Govee] [LED Bulb String Lights] current colour [4500K / 222M]. [8/28/2023, 12:01:49 PM] [Govee] [LED Bulb String Lights] current colour [3100K / 323M]. [8/28/2023, 12:01:50 PM] [Govee] [LED Bulb String Lights] current colour [2000K / 497M]. [8/28/2023, 12:01:55 PM] [Govee] [LED Bulb String Lights] current brightness [91%]. [8/28/2023, 12:01:55 PM] [Govee] [LED Bulb String Lights] current brightness [100%]. [8/28/2023, 12:01:57 PM] [Govee] [LED Bulb String Lights] current brightness [91%]. [8/28/2023, 12:01:57 PM] [Govee] [LED Bulb String Lights] current brightness [100%]. [8/28/2023, 12:02:00 PM] [Govee] [LED Bulb String Lights] current brightness [61%]. [8/28/2023, 12:02:00 PM] [Govee] [LED Bulb String Lights] current brightness [60%]. [8/28/2023, 12:02:01 PM] [Govee] [LED Bulb String Lights] current brightness [61%]. [8/28/2023, 12:02:01 PM] [Govee] [LED Bulb String Lights] current brightness [60%]. [8/28/2023, 12:02:02 PM] [Govee] [LED Bulb String Lights] current brightness [86%]. [8/28/2023, 12:02:03 PM] [Govee] [LED Bulb String Lights] current brightness [86%]. [8/28/2023, 12:02:04 PM] [Govee] [LED Bulb String Lights] current brightness [54%]. [8/28/2023, 12:02:04 PM] [Govee] [LED Bulb String Lights] current brightness [55%]. [8/28/2023, 12:02:05 PM] [Govee] [LED Bulb String Lights] current brightness [54%]. [8/28/2023, 12:02:05 PM] [Govee] [LED Bulb String Lights] current brightness [85%]. [8/28/2023, 12:02:05 PM] [Govee] [LED Bulb String Lights] current brightness [55%]. [8/28/2023, 12:02:06 PM] [Govee] [LED Bulb String Lights] current colour [rgb 255 44 41]. [8/28/2023, 12:02:07 PM] [Govee] [LED Bulb String Lights] current brightness [85%].

bwp91 commented 1 year ago

Hi @esrauscht

You may need to adjust the commands that the plugin sends for this device.

Everything is explained a bit more on this wiki post: https://github.com/bwp91/homebridge-govee/wiki/Common-Errors

This may be what is causing the issues

esrauscht commented 1 year ago

Thanks a lot @bwp91 The "AWS Brightness No Scale" fixed the brightness issue. The colors now also work much better even I left it at "colorwc" (the other two options broke color choosing completely). The color accuracy is still not very good but I guess that's because I am always comparing it to my Hue lights. So that's a Govee problem.