bwp91 / homebridge-govee

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

H6182 doesn't work over LAN with version 10.6.0 #774

Open aiordanescu opened 2 months ago

aiordanescu commented 2 months ago

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

I can't control H6182 with version 10.6.0 of the plugin, I downgraded to version 10.5.0 of the plugin and it works fine. I am controlling over LAN only (disabled BLE and AWS)

Details of your setup.

Logs from version 10.6.0 NOT WORKING

[4/24/2024, 11:21:47 AM] [Govee] Restarting child bridge... [4/24/2024, 11:21:47 AM] Got SIGTERM, shutting down child bridge process... [4/24/2024, 11:21:52 AM] [Govee] Child bridge process ended [4/24/2024, 11:21:52 AM] [Govee] Process Ended. Code: 143, Signal: null [4/24/2024, 11:21:59 AM] [Govee] Restarting Process... [4/24/2024, 11:21:59 AM] [Govee] Launched child bridge with PID 1080777 [4/24/2024, 11:21:59 AM] [Govee] Loaded homebridge-govee v10.6.0 child bridge successfully [4/24/2024, 11:21:59 AM] Loaded 1 cached accessories from cachedAccessories.0E6A676EB6E5. [4/24/2024, 11:21:59 AM] [Govee] Initialising plugin v10.6.0 | System linux | Node v20.12.2 | HB v1.8.0 | HAPNodeJS v0.12.0... [4/24/2024, 11:21:59 AM] [Govee] Plugin initialised. Setting up accessories.... [4/24/2024, 11:21:59 AM] Homebridge v1.8.0 (HAP v0.12.0) (Govee) is running on port 59918. [4/24/2024, 11:22:01 AM] [Govee] [LAN] client enabled and found 1 device(s). [4/24/2024, 11:22:02 AM] [Govee] [HTTP] client enabled and found 1 device(s). [4/24/2024, 11:22:02 AM] [Govee] [AWS] client enabled. [4/24/2024, 11:22:02 AM] [Govee] [BLE] disabling client as disabled in config. [4/24/2024, 11:22:02 AM] [Govee] [TV Light] initialising with options {"adaptiveLightingShift":-1,"aws":"enabled","ble":"disabled","brightnessStep":1,"colourSafeMode":false,"lan":"enabled"}. [4/24/2024, 11:22:02 AM] [Govee] [TV Light] initialised with id [76:3F:A4:C1:38:91:16:42] [H6182]. [4/24/2024, 11:22:03 AM] [Govee] ✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful! [4/24/2024, 11:22:06 AM] [Govee] [TV Light] current state [off]. [4/24/2024, 11:22:10 AM] [Govee] [TV Light] current state [on].

Logs from version 10.5.0 WORKING

[4/24/2024, 11:24:18 AM] [Govee] Restarting child bridge... [4/24/2024, 11:24:18 AM] Got SIGTERM, shutting down child bridge process... [4/24/2024, 11:24:23 AM] [Govee] Child bridge process ended [4/24/2024, 11:24:23 AM] [Govee] Process Ended. Code: 143, Signal: null [4/24/2024, 11:24:30 AM] [Govee] Restarting Process... [4/24/2024, 11:24:30 AM] [Govee] Launched child bridge with PID 1081073 [4/24/2024, 11:24:30 AM] Registering platform 'homebridge-govee.Govee' [4/24/2024, 11:24:30 AM] [Govee] Loaded homebridge-govee v10.5.0 child bridge successfully [4/24/2024, 11:24:30 AM] Loaded 1 cached accessories from cachedAccessories.0E6A676EB6E5. [4/24/2024, 11:24:30 AM] [Govee] Initialising plugin v10.5.0 | System linux | Node v20.12.2 | HB v1.8.0 | HAPNodeJS v0.12.0... [4/24/2024, 11:24:30 AM] [Govee] Plugin initialised. Setting up accessories.... [4/24/2024, 11:24:30 AM] Homebridge v1.8.0 (HAP v0.12.0) (Govee) is running on port 59918. [4/24/2024, 11:24:32 AM] [Govee] [LAN] client enabled and found 1 device(s). [4/24/2024, 11:24:33 AM] [Govee] [HTTP] client enabled and found 1 device(s). [4/24/2024, 11:24:33 AM] [Govee] [AWS] client enabled. [4/24/2024, 11:24:33 AM] [Govee] [BLE] disabling client as disabled in config. [4/24/2024, 11:24:33 AM] [Govee] [TV Light] initialising with options {"adaptiveLightingShift":-1,"aws":"enabled","ble":"disabled","brightnessStep":1,"colourSafeMode":false,"lan":"unsupported"}. [4/24/2024, 11:24:33 AM] [Govee] [TV Light] initialised with id [76:3F:A4:C1:38:91:16:42] [H6182]. [4/24/2024, 11:24:34 AM] [Govee] ✓ Setup complete. This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful! [4/24/2024, 11:25:01 AM] [Govee] [TV Light] current state [off]. [4/24/2024, 11:25:04 AM] [Govee] [TV Light] current state [on].

aiordanescu commented 2 months ago

Looks like the issue is with LAN control, 10.5.0 reports the device as "lan":"unsupported" while 10.6.0 reports it as "lan":"enabled" but will not control over LAN. Disabling LAN in v10.6.0 forces it to control it over AWS and does work fine.