Skip to content

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

License

Notifications You must be signed in to change notification settings

isaacrlevin/LifxCloudClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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