diff --git a/lib/Insteon/BaseInsteon.pm b/lib/Insteon/BaseInsteon.pm index c38f0ccf8..42fb472ac 100755 --- a/lib/Insteon/BaseInsteon.pm +++ b/lib/Insteon/BaseInsteon.pm @@ -945,7 +945,12 @@ sub get_root { } else { - return &Insteon::get_object($self->device_id, '01'); + my $root_obj = &Insteon::get_object($self->device_id, '01'); + ::print_log ("[Insteon::BaseDevice] ERROR! Cannot find the root object for " + . $self->get_object_name ". Please check your mht file to make sure " + "that device id " . $self->device_id . ":01 is defined.") + if (!defined($root_obj)); + return $root_obj; } }