wez / govee2mqtt

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

LAN API not working #251

Open JonSnow88 opened 1 month ago

JonSnow88 commented 1 month ago

Govee Device SKU

H619A

Govee2MQTT Version

latest

Describe the issue

I have G2M and the led strips on the same VLAN, but G2M cannot find the LED strips over LAN. The LAN API is enabled in the app.

I'm not using the HACS addon but rather docker container, I can confirm that the official local Govee HA addon works.

Startup Diagnostics

[2024-07-28T11:13:06 WARN govee::commands::serve] This device should be available via the LAN API, but didn't respond to probing yet. Possible causes: [2024-07-28T11:13:06 WARN govee::commands::serve] 1) LAN API needs to be enabled in the Govee Home App. [2024-07-28T11:13:06 WARN govee::commands::serve] 2) The device is offline. [2024-07-28T11:13:06 WARN govee::commands::serve] 3) A network configuration issue is preventing communication. [2024-07-28T11:13:06 WARN govee::commands::serve] 4) The device needs a firmware update before it can enable LAN API. [2024-07-28T11:13:06 WARN govee::commands::serve] 5) The hardware version of the device is too old to enable the LAN API.

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

JzJad commented 1 month ago

Same issue here with my H6076 device, it works with the old govee lan but now fails with this. I have restarted all devices, and even reset the lamp and tested the local api and its working, just not for this. My dream view is fine, and at least for me this isn't a huge issue as most of the time I have the dream view controlling the floor lamp.

edit Also you should be able to see the device info right above the logs you posted.

wez commented 1 month ago

My response here is the same as that in the error message you shared: sounds like a networking issue. Make sure you're on the same network; use host networking for the container. Review the information in https://github.com/wez/govee2mqtt/blob/main/docs/LAN.md

JzJad commented 1 month ago

Granted I use vlans heavily, I assure you mine was not network related. Multiple resets later and service restarts mine is showing up now. I actually have a few pcaps as I thought maybe it was dying. (A thing to note for others, if you use dreamviews do make sure they are off as I found earlier that will stop the devices from listening as well)

it seems govee was and maybe still is having issues, so after resetting a device it may or may not enable lan API

JonSnow88 commented 1 month ago

Mine started to work after a few attempts, was not network related.