I'm having an issue with HG forgetting one of my modules in the Advanced Smart Lights script. I wasn't sure if it was forgetting it or if the module itself was broken, but I'm fairly confident that the issue lies within either my implementation of C# code or something with HG itself. The debug data I have includes mono logs, Advance Smart Lights logs, and modules.xml files. I saved these after seeing the issue several times (so there are several sets).
What I'm seeing is that the list of modules that the code thinks are active goes from 3 down to 2 with no apparent errors. If I restart the script, everything works again. I'm at a loss of what could cause this, so I'm hoping for some suggestions.
I think the key thing to see in my logs is that when the code starts, HG lists 3 modules:
20141107 04:56:59.1231520 ; sensor_mod ; Entry Lights ; Garage motion ; 1
20141107 04:56:59.1314470 ; sensor_mod ; South lights ; Garage motion ; 1
20141107 04:56:59.1402490 ; sensor_mod ; Chime ; Garage motion ; 1
After the chime is no longer responding, this is what you can see:
20141109 12:07:17.9080340 ; sensor_mod ; Entry Lights ; Garage motion ; 0
20141109 12:07:17.9142000 ; sensor_mod ; South lights ; Garage motion ; 0
Clearly, the chime has gone missing. Nothing within my code has the capability to turn this off. And, when looking at the modules.xml file, the chime is still listed as active:
<Module>
<Name>Chime</Name>
<Description>X10 Module</Description>
<DeviceType>Siren</DeviceType>
<Domain>HomeAutomation.X10</Domain>
<Address>B1</Address>
<Properties>
<ModuleParameter>
<Name>Adv_SmartLights.DoubleTimerOn</Name>
<Value>TRUE</Value>
<Description />
<UpdateTime>2014-11-07T22:51:23.939906Z</UpdateTime>
<NeedsUpdate>false</NeedsUpdate>
<LastValue>FALSE</LastValue>
<LastUpdateTime>2014-11-07T21:35:23.691835Z</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>Adv_SmartLights.Enable</Name>
<Value>On</Value>
<Description />
<UpdateTime>2014-09-19T05:12:25.530574Z</UpdateTime>
<NeedsUpdate>true</NeedsUpdate>
<LastValue>On</LastValue>
<LastUpdateTime>2014-08-22T04:42:04.503081Z</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>Adv_SmartLights.MotionDelayStartWhenMotionStops</Name>
<Value />
<Description />
<UpdateTime>2014-06-02T04:46:07.897416Z</UpdateTime>
<NeedsUpdate>false</NeedsUpdate>
<LastValue />
<LastUpdateTime>2014-06-01T21:46:07.897399-07:00</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>Adv_SmartLights.MotionDetector</Name>
<Value>Garage motion</Value>
<Description />
<UpdateTime>2014-09-19T05:12:25.530691Z</UpdateTime>
<NeedsUpdate>true</NeedsUpdate>
<LastValue />
<LastUpdateTime>2014-06-01T08:58:15.168945-07:00</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>Adv_SmartLights.TimerOn</Name>
<Value>FALSE</Value>
<Description />
<UpdateTime>2014-11-07T17:57:29.401847-08:00</UpdateTime>
<NeedsUpdate>false</NeedsUpdate>
<LastValue>TRUE</LastValue>
<LastUpdateTime>2014-11-08T01:52:27.811139Z</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>Adv_SmartLights.TurnoffTimeout</Name>
<Value>300</Value>
<Description />
<UpdateTime>2014-09-19T05:12:25.530784Z</UpdateTime>
<NeedsUpdate>true</NeedsUpdate>
<LastValue />
<LastUpdateTime>2014-06-01T08:58:15.16922-07:00</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>LastEvent.Enable</Name>
<Value>On</Value>
<Description />
<UpdateTime>2014-09-19T05:12:25.530869Z</UpdateTime>
<NeedsUpdate>true</NeedsUpdate>
<LastValue />
<LastUpdateTime>2014-06-01T10:02:15.403248-07:00</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>LastEvent.LastEvent</Name>
<Value>0</Value>
<Description />
<UpdateTime>2014-11-08T01:57:29.387256Z</UpdateTime>
<NeedsUpdate>false</NeedsUpdate>
<LastValue>1</LastValue>
<LastUpdateTime>2014-11-08T01:57:31.050064Z</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>LastEvent.LastOFF</Name>
<Value>0</Value>
<Description />
<UpdateTime>2014-11-08T01:57:29.387256Z</UpdateTime>
<NeedsUpdate>false</NeedsUpdate>
<LastValue />
<LastUpdateTime>2014-11-08T01:57:31.050289Z</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>LastEvent.LastON</Name>
<Value>1</Value>
<Description />
<UpdateTime>2014-11-08T01:52:27.807302Z</UpdateTime>
<NeedsUpdate>false</NeedsUpdate>
<LastValue />
<LastUpdateTime>2014-11-08T01:52:28.794586Z</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>Status.Level</Name>
<Value>0</Value>
<Description />
<UpdateTime>2014-11-08T01:57:29.387256Z</UpdateTime>
<NeedsUpdate>false</NeedsUpdate>
<LastValue>1</LastValue>
<LastUpdateTime>2014-11-08T01:52:27.807302Z</LastUpdateTime>
</ModuleParameter>
<ModuleParameter>
<Name>VirtualMeter.Watts</Name>
<Value>0</Value>
<Description />
<UpdateTime>2014-09-19T05:12:25.530986Z</UpdateTime>
<NeedsUpdate>true</NeedsUpdate>
<LastValue>0</LastValue>
<LastUpdateTime>2014-06-01T08:58:15.168201-07:00</LastUpdateTime>
</ModuleParameter>
</Properties>
<RoutingNode />
</Module>