thomasf / yeelight

yeelight wifi light bulb api and mqtt bridge
MIT License
11 stars 2 forks source link
golang mqtt yeelight

yeelight

I have been keeping myself from pushing it to github because I want to clean the code and add documentation but I havent had any time for it after I got a working mqtt bridge.

I have been running this in production at home with about 10 bulbs for about 3 year so maybe someone else has use of it even if the code isn't pretty.

The only problem I have notices is that the reconnection code some times doesnt work right after a bulb is restarted by disconnecting it's power, other than that I don't know about any issues.

When I get back to working on this the Go API and MQTT stuff might start changing....

MQTT overview (TODO: NOT COMPLETE)

topics

There are three base command topics depending on the type of device.

commands

Sending commands to control lights:

state

Receiving state updates:

states

ylcolor

commands