Dear all…,
I do have a nice yeelight bulb [ color ]
I try to make the http api working.
Only i do not understand the api settings.
Is there perhaps some that have a simple http command that i can try, for example on and off.
And then perhaps a example command with different brightnes and different volume.
so i can play with this bulb in my home automation.
I try a lot, only…
NOTIFY * HTTP/1.1/192.168.5.33:55443
The API is not HTTP based, which means you can’t just send a http request to the bulb and control it.
Basically, the automation procedure includes two parts:
Dynamic discover.
Control and monitor.
The dynamic discover used a SSDP like protocol. You can send a multi-cast requust to local network and will get response from bulbs. The request and response are encoded in HTTP format but are transferred through UDP.
After discovering the bulb, you can establish a TCP connection to the bulb and control and monitor the bulb through control requests which is encoded in JSON.
This is the search response, the location will tell you the IP and port the bulb is listening, you should establish a TCP socket to this location and then send command through that socket.
Hi I’m trying to get this working. I’ve send exactly this command: {“id”:1,“method”:“set_power”,“params”:[“on”, “smooth”, 500]} via TCP to one of my LED Strips. I’m connected to my Yeelights via TCP but nothing happend. Is there anything I’ve to change in the command? Any Ideas or tips? Is the above command exactly what yeelights need to recieve?