Skip to content

Local API not accessible across VLANs #360

Open
@Nuuki9

Description

Govee Device SKU

H60A1

Govee2MQTT Version

2025.01.04-f937ceb5

Describe the issue

I have three H60A1s. Of these, one is installed on the same VLAN as the server running Home Assistant and govee2mqtt. Two are installed on a separate, IoT VLAN.

Initially the two lights on the IOT VLAN weren't being discovered. I've reviewed the info at https://github.com/wez/govee2mqtt/blob/main/docs/LAN.md and added the GOVEE_LAN_SCAN variable, to scan using the IOT VLANs broadcast address. At that point the devices appeared in govee2mqtt and in Home Assistant. However, its not discovering or using the LAN API - see the logs below. Only the light on the 192.168.1.0/24 subnet is showing the Local API:

I've checked the following:

  • LAN Control has been enabled on all lights.
  • I've confirmed that UDP 4001 and 4003 on the lights are reachable from the VLAN the server runs on.
  • I've confirmed that UDP 4002 on the server is reachable from the VLAN the lights are on.

I'm not sure what else to check at this point. Any ideas?

Startup Diagnostics

[2025-01-10T11:59:45 INFO  govee::commands::serve] Starting service. version 2025.01.04-f937ceb5
[2025-01-10T11:59:45 INFO  govee::commands::serve] Querying platform API for device list
[2025-01-10T11:59:45 INFO  govee::commands::serve] Querying undocumented API for device + room list
[2025-01-10T11:59:46 INFO  govee::service::iot] Connected to IoT: aqm3wd1qlc3dy-ats.iot.us-east-1.amazonaws.com:8883 CONNACK code 0: Connection Accepted.
[2025-01-10T11:59:46 INFO  govee::commands::serve] Starting LAN discovery
[2025-01-10T11:59:46 INFO  govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted.
[2025-01-10T11:59:46 INFO  govee::commands::serve] Waiting 10 seconds for LAN API discovery
[2025-01-10T11:59:56 INFO  govee::commands::serve] Devices returned from Govee's APIs
[2025-01-10T11:59:56 INFO  govee::commands::serve] Family Room (11:C9:D0:C9:07:C8:B3:6E H60A1)
[2025-01-10T11:59:56 INFO  govee::commands::serve]   LAN API: ip=192.168.1.81
[2025-01-10T11:59:56 INFO  govee::commands::serve]   Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2025-01-10T11:59:56 INFO  govee::commands::serve]                 color_temp=Some((2200, 6500)) segment_rgb=Some(0..13)
[2025-01-10T11:59:56 INFO  govee::commands::serve]   Undoc: room=Some("Family Room") supports_iot=true ble_only=false
[2025-01-10T11:59:56 INFO  govee::commands::serve]   Quirk { sku: "H60A1", 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 }
[2025-01-10T11:59:56 INFO  govee::commands::serve] 
[2025-01-10T11:59:56 INFO  govee::commands::serve] Tabitha’s Room Ceiling (2A:83:D0:C9:07:94:73:90 H60A1)
[2025-01-10T11:59:56 INFO  govee::commands::serve]   Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2025-01-10T11:59:56 INFO  govee::commands::serve]                 color_temp=Some((2200, 6500)) segment_rgb=Some(0..13)
[2025-01-10T11:59:56 INFO  govee::commands::serve]   Undoc: room=None supports_iot=true ble_only=false
[2025-01-10T11:59:56 INFO  govee::commands::serve] 
[2025-01-10T11:59:56 INFO  govee::commands::serve] Daniel’s Room (0C:DC:D0:C9:07:7F:8D:D2 H60A1)
[2025-01-10T11:59:56 INFO  govee::commands::serve]   Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2025-01-10T11:59:56 INFO  govee::commands::serve]                 color_temp=Some((2200, 6500)) segment_rgb=Some(0..13)
[2025-01-10T11:59:56 INFO  govee::commands::serve]   Undoc: room=None supports_iot=true ble_only=false
[2025-01-10T11:59:56 INFO  govee::commands::serve] 
[2025-01-10T11:59:56 INFO  govee::service::http] http server addr is 0.0.0.0:8056
[2025-01-10T12:00:16 INFO  govee::service::state] requesting update via Platform API Tabitha’s Room Ceiling (2A:83:D0:C9:07:94:73:90 H60A1) None
[2025-01-10T12:00:17 INFO  govee::service::state] requesting update via Platform API Daniel’s Room (0C:DC:D0:C9:07:7F:8D:D2 H60A1) None
[2025-01-10T12:00:21 INFO  govee::service::hass] Wait 530ms for hass to settle on 53 entity configs
[2025-01-10T12:00:22 INFO  govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions