Just discovered HomeGenie and hoping it can replace Mr. House. (Please!!!)
I have installed HomeGenie and the mono framework on my Ubuntu server. I can view the web page and everything seems to work except the insteon interface. I noticed the following messages:
PLM ERROR: Timeout waiting for receipt of data.
PLM ERROR: Specified port is not open.
I have confirmed nothing is using /dev/ttyUSB3 (which is where the serial PLM is located.)
I looked at the source and created a simple app to verify the SoapBox.FluentDwelling library works under mono. The application executes without error running under root (root is also the user running HomeGenie.exe via mono.) I also made /dev/ttyUSB3 rwx for everybody.
Does anyone have any ideas why the simple program connects to the PLM but HomeGenie doesn't?
Thanks in advance.
using System;
using System.Threading;
using SoapBox.FluentDwelling;
class Program
{
public static void Main(){
Console.WriteLine("Hello World!");
DoIt();
}
public static void DoIt(){
var plm = new Plm("/dev/ttyUSB3");
var info = plm.GetInfo();
Console.WriteLine(string.Format("Device Category: {0} Subcategory: {1} Firmware: {2}", info.DeviceCategory, info.DeviceSubcategory, info.FirmwareVersion));
var database = plm.GetAllLinkDatabase();
foreach(var record in database.Records){
Console.WriteLine(string.Format("DeviceId: {0}", record.DeviceId));
}
}
}