Skip to content

akominch/yeelight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

 
 
 

Contributors

Languages