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?


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(""))

Moreon…ip address