Skip to content

Commit

Permalink
Enable Link and Unlink from Interface. Fix Issue hollie#52
Browse files Browse the repository at this point in the history
Commands were not attached to the voice commands
  • Loading branch information
krkeegan committed Feb 3, 2013
1 parent 21b8d18 commit 97f573c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Insteon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ sub generate_voice_commands
$object_string .= "$object_name_v -> tie_event('$object_name->initiate_linking_as_controller(\"$group\")', 'initiate linking as controller');\n\n";
$object_string .= "$object_name_v -> tie_event('$object_name->interface()->cancel_linking','cancel linking');\n\n";
if ($object->is_root and !($object->isa('Insteon::InterfaceController'))) {
$object_string .= "$object_name_v -> tie_event('$object_name->link_to_interface','link to interface');\n\n";
$object_string .= "$object_name_v -> tie_event('$object_name->unlink_to_interface','unlink with interface');\n\n";
$object_string .= "$object_name_v -> tie_event('$object_name->request_status','status');\n\n";
$object_string .= "$object_name_v -> tie_event('$object_name->get_engine_version','get engine version');\n\n";
$object_string .= "$object_name_v -> tie_event('$object_name->scan_link_table(\"" . '\$self->log_alllink_table' . "\")','scan link table');\n\n";
Expand Down

0 comments on commit 97f573c

Please sign in to comment.