changed function "getHomegearInstances"