From: Dustin R. <du...@du...> - 2012-12-22 07:43:49
|
I do not use any tie_events. I was attempting to update the ramp rate on a scene and not having luck. Thinking that MH was overlooking the minor update (showed nothing to be done on sync all links) I deleted the scene, synced and attempted to delete orphans. Shortly after I did a factory reset on all the devices in the house. Lot of work to update the ramp rate for my Christmas tree but hey... I love tinkering. -D On Dec 21, 2012 4:48 PM, "Kevin Robert Keegan" <ke...@kr...> wrote: > > I am still working on AllLinksDatabase, particularly the Delete_Orphaned_Links method. > > Marc, incorporating your suggestions solved a bug for me. > > Dustin, do you use any tie_event commands? It appears that you error may be related to this. If you can provide me with some details about your setup it may help me reproduce your error. > > All, I am currently unable to delete any PLM All-Link Database entries. The commands sent to the PLM appear to be correct, but the PLM responds back with a simple NACK. My current theory is that my PLM needs to be factory reset. But has anyone else experienced this issue? > > Kevin > > > On Wed, Dec 19, 2012 at 6:48 PM, Marc MERLIN <ma...@me...> wrote: >> >> On Sat, Dec 15, 2012 at 10:27:39PM -0500, Dustin Robinson wrote: >> > Don't know if anyone else has run across this but delete orphan links >> > throws the following error in my setup: >> > >> > tie_events eval error: Can't locate object method "device_id" via package >> > "Insteon::ALDB_PLM" at >> > /opt/misterhouse/mh/bin/../lib/Insteon/AllLinkDatabase.pm line 718. >> >> Similar (but not idential problem) here on delete orphans: >> 19/12/2012 18:30:24 [Insteon_PLM] DEBUG3: Received raw PLM data: 026207de8b0f2be806 >> 19/12/2012 18:30:24 [Insteon_PLM] DEBUG3: Received PLM acknowledge: obj=$gar_outlights_kpl; command=peek; extra=E8 >> 19/12/2012 18:30:24 [Insteon_PLM] DEBUG3: Received raw PLM data: 025007de8b18d4ce232ba2 >> Can't use an undefined value as an ARRAY reference at ../lib/Insteon/AllLinkDatabase.pm line 1240. >> mh stopped, enter to restart >> >> Here's the patch I had to write for mine. You may need to write a similar >> patch for your problem. >> >> --- mh/lib/Insteon/AllLinkDatabase.pm.orig 2012-12-19 18:35:22.259809914 -0800 >> +++ mh/lib/Insteon/AllLinkDatabase.pm 2012-12-19 18:40:50.003238952 -0800 >> @@ -1217,7 +1217,9 @@ >> sub delete_duplicate_link_address >> { >> my ($self, $address) = @_; >> - my $num_duplicate_link_addresses = @{$$self{aldb}{duplicates}}; >> + my $num_duplicate_link_addresses = 0; >> + >> + $num_duplicate_link_addresses = @{$$self{aldb}{duplicates}} if (defined $$self{aldb}{duplicates}); >> if ($num_duplicate_link_addresses) >> { >> my @temp_duplicates = (); >> @@ -1237,7 +1239,8 @@ >> { >> my ($self, $address) = @_; >> # before adding it, make sure that it isn't already in the list!! >> - my $num_addresses = @{$$self{aldb}{empty}}; >> + my $num_addresses = 0; >> + $num_addresses = @{$$self{aldb}{empty}} if (defined $$self{aldb}{empty}); >> my $exists = 0; >> if ($num_addresses and $address) >> { >> >> >> Note that this code is not bullet proof, Gregg wrote a lot of it quicky when >> I was reporting bugs to him just before he had to stop contributing. >> >> Marc >> -- >> "A mouse is a device used to point at the xterm you want to type in" - A.S.R. >> Microsoft is to operating systems .... >> .... what McDonalds is to gourmet cooking >> Home page: http://marc.merlins.org/ >> >> ------------------------------------------------------------------------------ >> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >> Remotely access PCs and mobile devices and provide instant support >> Improve your efficiency, and focus on delivering more value-add services >> Discover what IT Professionals Know. Rescue delivers >> http://p.sf.net/sfu/logmein_12329d2d >> ________________________________________________________ >> To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 >> > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > ________________________________________________________ > To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 > > |