MagicHome.NET 2.0.0

This library lets you connect to Magic Home enabled smart home lights and control them.

Install-Package MagicHome.NET -Version 2.0.0
dotnet add package MagicHome.NET --version 2.0.0
<PackageReference Include="MagicHome.NET" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MagicHome.NET --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Magic Home Light SDK for .NET

This unofficial library lets you control Magic Home enabled lights that are connected to the same local area network.

Requirements

  • .NET Standard 2.0 or above
  • Magic Home enabled smart home light device that runs on LEDENET

Features

  • Connect to lights in network
  • Read properties of light
  • Set various properties of light such as power state, color
  • Easy to use

Show me the code

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();

Credit where credit is due

This project was heavily inspired by

Magic Home Light SDK for .NET

This unofficial library lets you control Magic Home enabled lights that are connected to the same local area network.

Requirements

  • .NET Standard 2.0 or above
  • Magic Home enabled smart home light device that runs on LEDENET

Features

  • Connect to lights in network
  • Read properties of light
  • Set various properties of light such as power state, color
  • Easy to use

Show me the code

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();

Credit where credit is due

This project was heavily inspired by

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0 74 2/3/2020
1.3.0 188 2/1/2020