wez / govee2mqtt

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

Support for H7039 #193

Open revrenhex opened 1 month ago

revrenhex commented 1 month ago

Govee Device SKU

H7039

Govee2MQTT Version

2024.04.29-30cf7732

Describe the issue

The add on finds the device, but the only exposed control is on/off. None of the preprogrammed effects are visible like they are with the H7041 string lights i have.

Startup Diagnostics

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=C 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-05-13T08:07:08 INFO govee::commands::serve] Starting service. version 2024.04.29-30cf7732 [2024-05-13T08:07:08 INFO govee::commands::serve] Querying platform API for device list [2024-05-13T08:07:08 INFO govee::commands::serve] Querying undocumented API for device + room list [2024-05-13T08:07:09 INFO govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted. [2024-05-13T08:07:09 INFO govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted. [2024-05-13T08:07:09 INFO govee::commands::serve] Starting LAN discovery [2024-05-13T08:07:09 INFO govee::commands::serve] Waiting 10 seconds for LAN API discovery [2024-05-13T08:07:19 INFO govee::commands::serve] Devices returned from Govee's APIs [2024-05-13T08:07:19 INFO govee::commands::serve] Patio Strong Lights (1E:60:C9:38:32:31:76:28 H7041) [2024-05-13T08:07:19 INFO govee::commands::serve] LAN API: ip=192.168.1.83 [2024-05-13T08:07:19 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true [2024-05-13T08:07:19 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=Some(0..15) [2024-05-13T08:07:19 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-05-13T08:07:19 INFO govee::commands::serve] Quirk { sku: "H7041", icon: "mdi:string-lights", supports_rgb: true, supports_brightness: true, color_temp_range: Some((2000, 9000)), avoid_platform_api: false, ble_only: false, lan_api_capable: true, device_type: Light, platform_temperature_sensor_units: None, platform_humidity_sensor_units: None, iot_api_supported: true, show_as_preset_buttons: None } [2024-05-13T08:07:19 INFO govee::commands::serve] [2024-05-13T08:07:19 INFO govee::commands::serve] H600A_642E (54:78:60:74:F4:FF:64:2E H600A) [2024-05-13T08:07:19 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-05-13T08:07:19 WARN govee::commands::serve] Unknown device type. Cannot map to Home Assistant. [2024-05-13T08:07:19 INFO govee::commands::serve] [2024-05-13T08:07:19 INFO govee::commands::serve] H7039_5A72 (34:59:CC:32:34:39:5A:72 H7039) [2024-05-13T08:07:19 INFO govee::commands::serve] LAN API: ip=192.168.1.109 [2024-05-13T08:07:19 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-05-13T08:07:19 INFO govee::commands::serve] Quirk { sku: "H7039", icon: "mdi:light-bulb", supports_rgb: true, supports_brightness: true, color_temp_range: Some((2000, 9000)), avoid_platform_api: false, ble_only: false, lan_api_capable: true, device_type: Light, platform_temperature_sensor_units: None, platform_humidity_sensor_units: None, iot_api_supported: true, show_as_preset_buttons: None } [2024-05-13T08:07:19 INFO govee::commands::serve] [2024-05-13T08:07:19 INFO govee::service::http] http server addr is 0.0.0.0:8056 [2024-05-13T08:07:25 INFO govee::service::hass] Wait 1.35s for hass to settle on 27 entity configs [2024-05-13T08:07:27 INFO govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted. [2024-05-13T08:07:39 INFO govee::service::state] requesting update via Platform API H600A_642E (54:78:60:74:F4:FF:64:2E H600A) None [2024-05-13T08:08:39 INFO govee::service::state] requesting update via Platform API H600A_642E (54:78:60:74:F4:FF:64:2E H600A) None [2024-05-13T08:09:39 INFO govee::service::state] requesting update via Platform API H600A_642E (54:78:60:74:F4:FF:64:2E H600A) None [2024-05-13T08:10:39 INFO govee::service::state] requesting update via Platform API H600A_642E (54:78:60:74:F4:FF:64:2E H600A) None [2024-05-13T08:11:39 INFO govee::service::state] requesting update via Platform API H600A_642E (54:78:60:74:F4:FF:64:2E H600A) None s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped 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=C 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-05-13T08:12:13 INFO govee::commands::serve] Starting service. version 2024.04.29-30cf7732 [2024-05-13T08:12:13 INFO govee::commands::serve] Querying platform API for device list [2024-05-13T08:12:13 INFO govee::commands::serve] Querying undocumented API for device + room list [2024-05-13T08:12:13 INFO govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted. [2024-05-13T08:12:13 INFO govee::commands::serve] Starting LAN discovery [2024-05-13T08:12:13 INFO govee::commands::serve] Waiting 10 seconds for LAN API discovery [2024-05-13T08:12:13 INFO govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted. [2024-05-13T08:12:23 INFO govee::commands::serve] Devices returned from Govee's APIs [2024-05-13T08:12:23 INFO govee::commands::serve] Patio Strong Lights (1E:60:C9:38:32:31:76:28 H7041) [2024-05-13T08:12:23 INFO govee::commands::serve] LAN API: ip=192.168.1.83 [2024-05-13T08:12:23 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true [2024-05-13T08:12:23 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=Some(0..15) [2024-05-13T08:12:23 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-05-13T08:12:23 INFO govee::commands::serve] Quirk { sku: "H7041", icon: "mdi:string-lights", supports_rgb: true, supports_brightness: true, color_temp_range: Some((2000, 9000)), avoid_platform_api: false, ble_only: false, lan_api_capable: true, device_type: Light, platform_temperature_sensor_units: None, platform_humidity_sensor_units: None, iot_api_supported: true, show_as_preset_buttons: None } [2024-05-13T08:12:23 INFO govee::commands::serve] [2024-05-13T08:12:23 INFO govee::commands::serve] H600A_642E (54:78:60:74:F4:FF:64:2E H600A) [2024-05-13T08:12:23 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-05-13T08:12:23 WARN govee::commands::serve] Unknown device type. Cannot map to Home Assistant. [2024-05-13T08:12:23 INFO govee::commands::serve] [2024-05-13T08:12:23 INFO govee::commands::serve] H7039_5A72 (34:59:CC:32:34:39:5A:72 H7039) [2024-05-13T08:12:23 INFO govee::commands::serve] LAN API: ip=192.168.1.109 [2024-05-13T08:12:23 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-05-13T08:12:23 INFO govee::commands::serve] Quirk { sku: "H7039", icon: "mdi:light-bulb", supports_rgb: true, supports_brightness: true, color_temp_range: Some((2000, 9000)), avoid_platform_api: false, ble_only: false, lan_api_capable: true, device_type: Light, platform_temperature_sensor_units: None, platform_humidity_sensor_units: None, iot_api_supported: true, show_as_preset_buttons: None } [2024-05-13T08:12:23 INFO govee::commands::serve] [2024-05-13T08:12:24 INFO govee::service::http] http server addr is 0.0.0.0:8056 [2024-05-13T08:12:29 INFO govee::service::hass] Wait 1.35s for hass to settle on 27 entity configs [2024-05-13T08:12:30 INFO govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted. [2024-05-13T08:12:43 INFO govee::service::state] requesting update via Platform API H600A_642E (54:78:60:74:F4:FF:64:2E H600A) None [2024-05-13T08:13:43 INFO govee::service::state] requesting update via Platform API H600A_642E (54:78:60:74:F4:FF:64:2E H600A) None

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

markus76 commented 1 month ago

I had the same topic with the H7038... Please can you add Scene support :-).