Webasto: Make sure EVC04 based wallboxes do not get discovered as Webasto NEXT

webasto-unite
Simon Stürz 2023-11-15 12:07:33 +01:00
parent 88674987f3
commit 4d2b9aeac3
1 changed files with 15 additions and 0 deletions

View File

@ -143,6 +143,21 @@ void WebastoDiscovery::checkNetworkDevice(const NetworkDeviceInfo &networkDevice
// All values good so far, let's assume this is a Webasto NEXT
// Final check if there is a hostname available for this network device, if so it shouls contain the string "NEXT_".
// This is neccessary since Wallboxes from Vestel EVC04 aka. Webasto Unite wallboxes would also match
// the creteria up to here get detected as positiv Webasto NEXT.
// Example hostname: NEXT-WS10XXXX
if (!networkDeviceInfo.hostName().isEmpty() &&
(!networkDeviceInfo.hostName().contains("NEXT_") || networkDeviceInfo.hostName().contains("VESTEL"))) {
qCDebug(dcWebasto()) << "Discovery: network device has a hostname and it does match kriteria for Webasto next:" << networkDeviceInfo.hostName() << "on" << networkDeviceInfo.address().toString() << "Continue...";;
cleanupConnection(connection);
return;
}
// Hostname verification also OK, let's assume this is a Webasto NEXT
Result result;
result.productName = "Webasto NEXT";
result.type = TypeWebastoNext;