A C# port of the HS3 VB.NET samples provided by HomeSeer