Skip to content

This is a simple library that allows you to control YeeLight WiFi RGB LED bulbs through your LAN.

License

Notifications You must be signed in to change notification settings

akominch/yeelight

Repository files navigation

Build Status License MIT Go Report Card Code Coverage

Yeelight Golang API

Golang API for Yeelight

Overview

Yeelight is simple command line tool and Golang implementation API of Yeelight protocol with notification listening support

Installation

Make sure you have a working Go environment. See Golang install instructions

To install, run:

go get github.com/akominch/yeelight

Usage

import (
	"github.com/akominch/yeelight"
	t "github.com/akominch/yeelight/transitions"
)

func main() {
        config := yeelight.BulbConfig{
		Ip: "192.168.1.24",
		Effect: yeelight.Smooth,
	}
	bulb := yeelight.New(config)

	transitions := t.Alarm()
	flow := yeelight.NewFlow(3, yeelight.Off, transitions)
	_, _ = bulb.StartFlow(flow)
}

API Specification

Yeelight API Specification [can be found here] (https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf)

License

yeelight is distributed under the MIT license

Legal

Yeelight® is a registered trademark of Yeelight.

About

This is a simple library that allows you to control YeeLight WiFi RGB LED bulbs through your LAN.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages