This unofficial library lets you control Magic Home enabled lights that are connected to the same local area network.
- .NET Standard 2.0 or above
- Magic Home enabled smart home light device that runs on LEDENET
- Connect to lights in network
- Read properties of light
- Set various properties of light such as power state, color
- Easy to use
Get it from https://www.nuget.org/packages/MagicHome.NET or with your favorite CLI tool:
Install-Package MagicHome.NET
dotnet add package MagicHome.NET
var light = new Light();
await light.ConnectAsync("192.168.0.10");
Console.WriteLine(light.Color);
await light.TurnOnAsync();
await light.SetColorAsync(Color.Red);
await Task.Delay(500);
await light.SetColorAsync(255, 255, 255);
await Task.Delay(500);
await light.RestoreAsync();
light.Dispose();
This project was heavily inspired by