You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An extensive Philips Hue client library for Go with an emphasis on simplicity. It is designed to be clean, unbloated and extensible. With Huego you can interact with any Philips Hue bridge and its resources including Lights, Groups, Scenes, Sensors, Rules, Schedules, Resourcelinks, Capabilities and Configuration .
Installation
Get the package and import it in your code.
go get github.com/amimof/huego
You may use New() if you have already created an user and know the IP address to your bridge.
Or discover a bridge on your network with Discover() and create a new user with CreateUser(). To successfully create a user, the link button on your bridge must have been pressed before calling CreateUser() in order to authorise the request.
funcmain() {
bridge, _:=huego.Discover()
user, _:=bridge.CreateUser("my awesome hue app") // Link button needs to be pressedbridge=bridge.Login(user)
light, _:=bridge.GetLight(3)
light.Off()
}
All help in any form is highly appreciated and your are welcome participate in developing Huego together. To contribute submit a Pull Request. If you want to provide feedback, open up a Github Issue or contact me personally.
About
An extensive Philips Hue client library for Go with an emphasis on simplicity