Skip to content

isaacrlevin/LifxCloudClient

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

LifxCloudClient

A .NET Standard 2.0 library for LIFX Cloud-enabled lights. Supports .NET, UWP, Xamarin iOS, Xamarin Android, and any other .NET Platform that has implemented .NET Standard 2.0+.

For LAN Protocol based implementation, check out dotMorten's repo

Based on the official LIFX HTTP API

####Usage

Obtain Access Token from Cloud Settings

var client = await LifxCloudClient.CreateAsync("YOUR TOKEN");

Console.WriteLine("Getting Lights");
var lights = await client.ListLights();

Console.WriteLine("Setting State");
var result = await client.SetState(lights.FirstOrDefault().id,
    new Models.SetStateRequest
    {
        power = PowerState.On,
        brightness = 1,
        duration = 1,
        color = "yellow saturation:1"
    });

About

.NET Standard 2.0 Library to manage LIFX Cloud-Enabled Bulbs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages