can't use discover_bulbs() to find IP address of my bulb through Python

Sometimes the correct IP address can be returned, sometimes only an empty list can be returned, when the operation is correct and the same LAN is located.

Is there any error-prone place in the signal communication process?

在python中导入yeelight库后,使用discover_bulb函数查找局域网内设备时,有时能够正确返回设备IP地址,有时则无法查找到。请问如何改善这一情况?

I think you are referring to the yeelight api on Github. Open an issue there, no one here from the staff will ever respond.

import socket
print (socket.gethostbyname("www.goole.com"))

Moreon…ip address