wez / govee2mqtt

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

H7021 LAN API not working #146

Closed lonacluka closed 7 months ago

lonacluka commented 7 months ago

Govee Device SKU

H7021

Govee2MQTT Version

2024.01.24-ea3cd430

Describe the issue

LAN is enabled in options, and the API key is working since my other Govee (Dreamview T1) is working fine over LAN:

[2024-03-03T19:10:36 INFO govee::commands::serve] DreamView T1 (44:EC:C4:32:37:38:59:58 H6199) [2024-03-03T19:10:36 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true

Startup Diagnostics

[2024-03-03T19:10:36 INFO govee::commands::serve] Quirk { sku: "H7021", 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-03-03T19:10:36 WARN govee::commands::serve] This device should be available via the LAN API, but didn't respond to probing yet. Possible causes: [2024-03-03T19:10:36 WARN govee::commands::serve] 1) LAN API needs to be enabled in the Govee Home App. [2024-03-03T19:10:36 WARN govee::commands::serve] 2) The device is offline. [2024-03-03T19:10:36 WARN govee::commands::serve] 3) A network configuration issue is preventing communication. [2024-03-03T19:10:36 INFO govee::commands::serve] [2024-03-03T19:10:36 INFO govee::service::http] http server addr is 0.0.0.0:8056

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

lonacluka commented 7 months ago

After enabling:

"Send discovery to each network interface" in the HA Add-on the error is gone! I think that's the same option as GOVEE_LAN_BROADCAST_ALL=true.

Either way, it seems that my network is to blame I guess.