cs-active-home-x10 1.0.1

.NET Framework 4.5.2
NuGet\Install-Package cs-active-home-x10 -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package cs-active-home-x10 --version 1.0.1
<PackageReference Include="cs-active-home-x10" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add cs-active-home-x10 --version 1.0.1
#r "nuget: cs-active-home-x10, 1.0.1"
#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 cs-active-home-x10 as a Cake Addin
#addin nuget:?package=cs-active-home-x10&version=1.0.1

// Install cs-active-home-x10 as a Cake Tool
#tool nuget:?package=cs-active-home-x10&version=1.0.1


A .NET wrapper library for controlling ActiveHome X10 appliance


The source code belows shows how to control X10 appliance (say a lamp) via the PLC

ActiveHomeController.Instance.RecvAction += (sender, e) =>
		String strMsg = "";
		ActiveHomeRecvResult result = e.Result;
		string strAction = result.ResultActionType;

		if (strAction.ToUpper() == "RECVPLC")
			strMsg += "Recieved Powerline Command:";

		strMsg += " " + result.Address.ToUpper();
		strMsg += " " + result.Command.ToUpper();

		if (result.Reserved1.Length > 0)
			strMsg += " " + result.Reserved1.ToUpper();

		if (result.Reserved2.Length > 0)
			strMsg += " " + result.Reserved2.ToUpper();

		if (result.Reserved3.Length > 0)
			strMsg += " " + result.Reserved3.ToUpper();


string lampAddress = "A1";

ActiveHomeDeviceStatus status_code = ActiveHomeController.Instance.Query_PLC(lampAddress);

if (status_code == ActiveHomeDeviceStatus.OFF)
	Console.WriteLine(lampAddress + " is OFF");
else if (status_code == ActiveHomeDeviceStatus.ON)
	Console.WriteLine(lampAddress + " is ON");


Product Versions
.NET Framework net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has 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
1.0.1 929 11/28/2017

Simple Wrapper over ActiveHome X10 in .NET 4.5.2