https://github.com/cdima/hue
Philips Hue lights .Net C# wrapper library
https://github.com/cdima/hue
Last synced: about 1 year ago
JSON representation
Philips Hue lights .Net C# wrapper library
- Host: GitHub
- URL: https://github.com/cdima/hue
- Owner: cDima
- Created: 2012-11-25T00:25:12.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-11-07T18:07:43.000Z (over 10 years ago)
- Last Synced: 2025-04-05T17:44:07.941Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 104 KB
- Stars: 39
- Watchers: 8
- Forks: 56
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Philips Hue lights .Net C# wrapper library
## A wrapper for Philips Hue lights rest api for C# 4.5
This is a library for the philips hue lights written in C#.
Eample code:
var hue = new HueBridge("192.168.1.113");
hue.FlashLights();
## SSDP Locator
Automatically find the Philips Hue bridge in a network like this:
var bridge = Hue.HueBridgeLocator.Locate();
if (bridge != null)
bridge.FlashLights();
## Automatic registration
To control the lights, the client needs to authenticate with the bridge. The client fires the PushButtonOnBridge event if it needs registration:
bridge.PushButtonOnBridge += bridge_PushButtonOnBridge;
...
static void bridge_PushButtonOnBridge(object sender, EventArgs e)
{
Console.WriteLine("Please press the button on the bridge to register the application in the next minute.");
}