wez / govee2mqtt

Govee2MQTT: Connect Govee lights and devices to Home Assistant
MIT License
327 stars 18 forks source link

H6003 Color changing not working #152

Open chloehassall27 opened 3 months ago

chloehassall27 commented 3 months ago

Govee Device SKU

H6003

Govee2MQTT Version

2024.01.24-ea3cd430

Describe the issue

The power on/off and brightness functions work as expected, however changing the color does not cause the light to change.

Startup Diagnostics

s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started GOVEE_API_KEY=REDACTED GOVEE_MQTT_HOST=core-mosquitto GOVEE_TEMPERATURE_SCALE=F GOVEE_EMAIL=REDACTED GOVEE_PASSWORD=REDACTED GOVEE_MQTT_PASSWORD=REDACTED GOVEE_MQTT_USER=addons GOVEE_MQTT_PORT=1883 ++ cd /app ++ exec /app/govee serve [2024-03-18T20:59:18 INFO govee::commands::serve] Starting service. version 2024.01.24-ea3cd430 [2024-03-18T20:59:18 INFO govee::commands::serve] Querying platform API for device list [2024-03-18T20:59:18 INFO govee::commands::serve] Querying undocumented API for device + room list [2024-03-18T20:59:18 INFO govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted. [2024-03-18T20:59:18 INFO govee::commands::serve] Starting LAN discovery [2024-03-18T20:59:18 INFO govee::commands::serve] Waiting 10 seconds for LAN API discovery [2024-03-18T20:59:18 INFO govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted. [2024-03-18T20:59:28 INFO govee::commands::serve] Devices returned from Govee's APIs [2024-03-18T20:59:28 INFO govee::commands::serve] Projector plug (5D:58:D4:AD:FC:5B:A7:60 H5083) [2024-03-18T20:59:28 INFO govee::commands::serve] Platform API: devices.types.socket. supports_rgb=false supports_brightness=false [2024-03-18T20:59:28 INFO govee::commands::serve] color_temp=None segment_rgb=None [2024-03-18T20:59:28 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-03-18T20:59:28 INFO govee::commands::serve] [2024-03-18T20:59:28 INFO govee::commands::serve] Kitchen Left (de:6e:7c:a6:b0:17:da:ca H6003) [2024-03-18T20:59:28 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true [2024-03-18T20:59:28 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=None [2024-03-18T20:59:28 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-03-18T20:59:28 INFO govee::commands::serve] [2024-03-18T20:59:28 INFO govee::commands::serve] Vine Wall (22:54:D4:AD:FC:5A:B0:0C H5083) [2024-03-18T20:59:28 INFO govee::commands::serve] Platform API: devices.types.socket. supports_rgb=false supports_brightness=false [2024-03-18T20:59:28 INFO govee::commands::serve] color_temp=None segment_rgb=None [2024-03-18T20:59:28 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-03-18T20:59:28 INFO govee::commands::serve] [2024-03-18T20:59:28 INFO govee::commands::serve] Office Lamp (ba:2b:7c:a6:b0:14:c0:91 H6003) [2024-03-18T20:59:28 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true [2024-03-18T20:59:28 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=None [2024-03-18T20:59:28 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-03-18T20:59:28 INFO govee::commands::serve] [2024-03-18T20:59:28 INFO govee::commands::serve] Living Room (6d:34:7c:a6:b0:e9:52:f5 H6003) [2024-03-18T20:59:28 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true [2024-03-18T20:59:28 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=None [2024-03-18T20:59:28 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-03-18T20:59:28 INFO govee::commands::serve] [2024-03-18T20:59:28 INFO govee::commands::serve] Bedroom (94:1d:7c:a6:b0:14:c0:af H6003) [2024-03-18T20:59:28 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true [2024-03-18T20:59:28 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=None [2024-03-18T20:59:28 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-03-18T20:59:28 INFO govee::commands::serve] [2024-03-18T20:59:29 INFO govee::service::http] http server addr is 0.0.0.0:8056 [2024-03-18T20:59:34 ERROR govee::hass_mqtt::light] Unable to list scenes for Kitchen Left (de:6e:7c:a6:b0:17:da:ca H6003): list_scene_names: get_scene_caps: request https://openapi.api.govee.com/router/api/v1/device/scenes status 200: OK: parsing https://openapi.api.govee.com/router/api/v1/device/scenes response: Failed with status 400 Bad Request Bad Request: Request to https://openapi.api.govee.com/router/api/v1/device/scenes failed with code 400 Bad Request devices not support this instance. Full response: {"requestId":"uuid","msg":"devices not support this instance","code":400,"payload":{"sku":"H6003","device":"de:6e:7c:a6:b0:17:da:ca"}} [2024-03-18T20:59:34 ERROR govee::hass_mqtt::light] Unable to list scenes for Office Lamp (ba:2b:7c:a6:b0:14:c0:91 H6003): list_scene_names: get_scene_caps: request https://openapi.api.govee.com/router/api/v1/device/scenes status 200: OK: parsing https://openapi.api.govee.com/router/api/v1/device/scenes response: Failed with status 400 Bad Request Bad Request: Request to https://openapi.api.govee.com/router/api/v1/device/scenes failed with code 400 Bad Request devices not support this instance. Full response: {"requestId":"uuid","msg":"devices not support this instance","code":400,"payload":{"sku":"H6003","device":"ba:2b:7c:a6:b0:14:c0:91"}} [2024-03-18T20:59:34 WARN govee::cache] request https://openapi.api.govee.com/router/api/v1/device/scenes status 200: OK: parsing https://openapi.api.govee.com/router/api/v1/device/scenes response: Failed with status 400 Bad Request Bad Request: Request to https://openapi.api.govee.com/router/api/v1/device/scenes failed with code 400 Bad Request devices not support this instance. Full response: {"requestId":"uuid","msg":"devices not support this instance","code":400,"payload":{"sku":"H6003","device":"6d:34:7c:a6:b0:e9:52:f5"}}, will use prior results [2024-03-18T20:59:34 ERROR govee::hass_mqtt::light] Unable to list scenes for Living Room (6d:34:7c:a6:b0:e9:52:f5 H6003): list_scene_names: get_scene_caps: request https://openapi.api.govee.com/router/api/v1/device/scenes status 200: OK: parsing https://openapi.api.govee.com/router/api/v1/device/scenes response: Failed with status 400 Bad Request Bad Request: Request to https://openapi.api.govee.com/router/api/v1/device/scenes failed with code 400 Bad Request devices not support this instance. Full response: {"requestId":"uuid","msg":"devices not support this instance","code":400,"payload":{"sku":"H6003","device":"6d:34:7c:a6:b0:e9:52:f5"}} [2024-03-18T20:59:34 WARN govee::cache] request https://openapi.api.govee.com/router/api/v1/device/scenes status 200: OK: parsing https://openapi.api.govee.com/router/api/v1/device/scenes response: Failed with status 400 Bad Request Bad Request: Request to https://openapi.api.govee.com/router/api/v1/device/scenes failed with code 400 Bad Request devices not support this instance. Full response: {"requestId":"uuid","msg":"devices not support this instance","code":400,"payload":{"sku":"H6003","device":"94:1d:7c:a6:b0:14:c0:af"}}, will use prior results [2024-03-18T20:59:34 ERROR govee::hass_mqtt::light] Unable to list scenes for Bedroom (94:1d:7c:a6:b0:14:c0:af H6003): list_scene_names: get_scene_caps: request https://openapi.api.govee.com/router/api/v1/device/scenes status 200: OK: parsing https://openapi.api.govee.com/router/api/v1/device/scenes response: Failed with status 400 Bad Request Bad Request: Request to https://openapi.api.govee.com/router/api/v1/device/scenes failed with code 400 Bad Request devices not support this instance. Full response: {"requestId":"uuid","msg":"devices not support this instance","code":400,"payload":{"sku":"H6003","device":"94:1d:7c:a6:b0:14:c0:af"}} [2024-03-18T20:59:34 INFO govee::service::hass] Wait 1.3s for hass to settle on 26 entity configs [2024-03-18T20:59:36 INFO govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.

Additional Logs

No response

Home Assistant Logs

[2024-03-18T20:55:43 ERROR govee::service::iot] Decoding IoT Packet: govee::service::iot::Packet missing field state at line 1 column 169. Input: {"proType":2,"sku":"H6003","device":"ba:2b:7c:a6:b0:14:c0:91","transaction":"o_1710809742956","softVersion":"1.00.15","type":0,"pactType":1,"pactCode":1,"cmd":"colorwc"} {"proType":2,"sku":"H6003","device":"ba:2b:7c:a6:b0:14:c0:91","transaction":"o_1710809742956","softVersion":"1.00.15","type":0,"pactType":1,"pactCode":1,"cmd":"colorwc"}

Anything else?

No response