DoHomeClient 0.0.2

Install-Package DoHomeClient -Version 0.0.2
dotnet add package DoHomeClient --version 0.0.2
<PackageReference Include="DoHomeClient" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DoHomeClient --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DoHomeClient, 0.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install DoHomeClient as a Cake Addin
#addin nuget:?package=DoHomeClient&version=0.0.2

// Install DoHomeClient as a Cake Tool
#tool nuget:?package=DoHomeClient&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

DoHomeClient

This simple library allows you to communicate with your DoHome Smart Bulbs.
The library is targeting devices with the old W600 chip and firmware 1.1.0
It should work with newer versions as well.

Getting started

var client = new DoHomeClient();
client.StartListener();
var color = new DoHomeColor(4000, 2000, 1000, 0, 0);
client.ChangeColor(color, false, client.Devices);
...
client.Off(client.Devices);

Communication

The library can communicate with the bulbs over TCP or over UDP.
To communicate over TCP, use the methods directly defined on the DoHomeDevice.
To communicate over UDP, use the methods defined on the DoHomeClient.

The sample client provided shows both.

Since the devices can only handle 1 concurrent TCP connection, you might not be able to use the mobile app at the same time as you use this library.

  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.2 86 6/24/2021
0.0.1 88 6/24/2021