The MotionDetect module started causing runtime problems this evening for some reason...
Program.AddVirtualModules("HomeAutomation.ArduinoGarage", "DoorWindow", "homegenie/generic/doorwindow", 1, 2);
Program.AddVirtualModules("HomeAutomation.ArduinoGarage", "Sensor", "homegenie/generic/sensor", 3, 3);
Program.AddVirtualModules("HomeAutomation.ArduinoGarage", "Sensor.MotionDetect", "homegenie/generic/sensor", 4, 4);
Program.AddInputField("ArduinoIP", "192.168.1.71", "Arduino Garage IP Address");
Here is the error when I try to run the code which has been working fine for a couple weeks...
TC: at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult) at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) at HomeGenie.Automation.Scripting.ProgramHelper.AddVirtualModules(String domain, String type, String widget, Int32 startAddress, Int32 endAddress) at HomeGenie.Automation.Scripting.ScriptingInstance.b__10() at HomeGenie.Automation.Scripting.ProgramHelper.Setup(Action functionBlock) Runtime
Error
8:45:37 PM Block popup from this source
Error
×
at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at HomeGenie.Automation.Scripting.ProgramHelper.AddVirtualModules(String domain, String type, String widget, Int32 startAddress, Int32 endAddress)
at HomeGenie.Automation.Scripting.ScriptingInstance.b__10()
at HomeGenie.Automation.Scripting.ProgramHelper.Setup(Action functionBlock)
I have restarted and commented out lines until I narrowed it down to the line referenced above.