Skip to content

Commit

Permalink
Merge pull request #217 from krkeegan/insteon_linking
Browse files Browse the repository at this point in the history
Insteon: Change "initiate linking as controller" Group to 00
  • Loading branch information
krkeegan committed Sep 27, 2013
2 parents 951f5ee + b462b10 commit 3db9b65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/Insteon/AllLinkDatabase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -557,10 +557,10 @@ sub delete_orphan_links
}
else
{ # no corresponding PLM link found in items.mht
if ($group eq '01') {
#ignore manual responder link to PLM group 01 required for I2CS devices
if ($group eq '01' || $group eq '00') {
#ignore manual responder link to PLM group 01 or 00 required for I2CS devices
main::print_log("[Insteon::AllLinkDatabase] DEBUG2 Ignoring orphan responder link from "
. $selfname . " to PLM for group 01") if $main::Debug{insteon} >= 2;
. $selfname . " to PLM for group 01 or 00") if $main::Debug{insteon} >= 2;
}
elsif ($audit_mode)
{
Expand Down Expand Up @@ -2786,9 +2786,9 @@ sub delete_orphan_links
if (!($link))
{
# a reference in the PLM's linktable does not match a scene member target
if ($group eq '01') {
#ignore manual controller link from PLM group 01 to device required for I2CS devices
main::print_log("[Insteon::ALDB_PLM] DEBUG2 Ignoring orphan PLM controller(01) link to "
if ($group eq '01' || $group eq '00') {
#ignore manual controller link from PLM group 01 or 00 to device required for I2CS devices
main::print_log("[Insteon::ALDB_PLM] DEBUG2 Ignoring orphan PLM controller(01 or 00) link to "
. $device->get_object_name() ) if $main::Debug{insteon} >= 2;
}
elsif ($audit_mode)
Expand Down
2 changes: 1 addition & 1 deletion lib/Insteon_PLM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ sub initiate_linking_as_controller
{
my ($self, $group) = @_;

$group = '01' unless $group;
$group = '00' unless $group;
# set up the PLM as the responder
my $cmd = '01'; # controller code
$cmd .= $group; # WARN - must be 2 digits and in hex!!
Expand Down

0 comments on commit 3db9b65

Please sign in to comment.