diff --git a/goecharger/goediscovery.cpp b/goecharger/goediscovery.cpp index d87eed494..a508fdfad 100644 --- a/goecharger/goediscovery.cpp +++ b/goecharger/goediscovery.cpp @@ -53,7 +53,7 @@ void GoeDiscovery::startDiscovery() { // Clean up m_discoveryResults.clear(); - m_verifiedNetworkDeviceInfos.clear(); + m_verifiedHostAddresses.clear(); m_startDateTime = QDateTime::currentDateTime(); @@ -69,23 +69,15 @@ void GoeDiscovery::startDiscovery() m_discoveryReply = m_networkDeviceDiscovery->discover(); // Test any network device beeing discovered - connect(m_discoveryReply, &NetworkDeviceDiscoveryReply::networkDeviceInfoAdded, this, &GoeDiscovery::checkNetworkDevice); + connect(m_discoveryReply, &NetworkDeviceDiscoveryReply::hostAddressDiscovered, this, &GoeDiscovery::checkHostAddress); // When the network discovery has finished, we process the rest and give some time to finish the pending replies - connect(m_discoveryReply, &NetworkDeviceDiscoveryReply::finished, this, [=](){ + connect(m_discoveryReply, &NetworkDeviceDiscoveryReply::finished, this, [this](){ // The network device discovery is done m_discoveredNetworkDeviceInfos = m_discoveryReply->networkDeviceInfos(); m_discoveryReply->deleteLater(); m_discoveryReply = nullptr; - // Check if all network device infos have been verified - foreach (const NetworkDeviceInfo &networkDeviceInfo, m_discoveredNetworkDeviceInfos) { - if (m_verifiedNetworkDeviceInfos.contains(networkDeviceInfo)) - continue; - - checkNetworkDevice(networkDeviceInfo); - } - // If there might be some response after the grace period time, // we don't care any more since there might just waiting for some timeouts... // If there would be a device, it would have responded. @@ -126,30 +118,30 @@ bool GoeDiscovery::isGoeCharger(const ZeroConfServiceEntry &serviceEntry) return serviceEntry.name().toLower().contains("go-echarger"); } -void GoeDiscovery::checkNetworkDevice(const NetworkDeviceInfo &networkDeviceInfo) +void GoeDiscovery::checkHostAddress(const QHostAddress &address) { // Make sure we have not checked this host yet - if (m_verifiedNetworkDeviceInfos.contains(networkDeviceInfo)) + if (m_verifiedHostAddresses.contains(address)) return; - qCDebug(dcGoECharger()) << "Discovery: Start inspecting" << networkDeviceInfo.address().toString(); - checkNetworkDeviceApiV2(networkDeviceInfo); - checkNetworkDeviceApiV1(networkDeviceInfo); + qCDebug(dcGoECharger()) << "Discovery: Start inspecting" << address.toString(); + checkHostAddressApiV2(address); + checkHostAddressApiV1(address); - m_verifiedNetworkDeviceInfos.append(networkDeviceInfo); + m_verifiedHostAddresses.append(address); } -void GoeDiscovery::checkNetworkDeviceApiV1(const NetworkDeviceInfo &networkDeviceInfo) +void GoeDiscovery::checkHostAddressApiV1(const QHostAddress &address) { - // First check if API V1 is available: http:///status - QNetworkReply *reply = m_networkAccessManager->get(buildRequestV1(networkDeviceInfo.address())); + // Check if API V1 is available: http:///status + QNetworkReply *reply = m_networkAccessManager->get(buildRequestV1(address)); m_pendingReplies.append(reply); connect(reply, &QNetworkReply::finished, this, [=](){ m_pendingReplies.removeAll(reply); reply->deleteLater(); if (reply->error() != QNetworkReply::NoError) { - qCDebug(dcGoECharger()) << "Discovery:" << networkDeviceInfo.address().toString() << "API V1 verification HTTP error" << reply->errorString() << "Continue..."; + qCDebug(dcGoECharger()) << "Discovery:" << address.toString() << "API V1 verification HTTP error" << reply->errorString() << "Continue..."; return; } @@ -157,7 +149,7 @@ void GoeDiscovery::checkNetworkDeviceApiV1(const NetworkDeviceInfo &networkDevic QJsonParseError error; QJsonDocument jsonDoc = QJsonDocument::fromJson(data, &error); if (error.error != QJsonParseError::NoError) { - qCDebug(dcGoECharger()) << "Discovery:" << networkDeviceInfo.address().toString() << "API V1 verification invalid JSON data. Continue..."; + qCDebug(dcGoECharger()) << "Discovery:" << address.toString() << "API V1 verification invalid JSON data. Continue..."; return; } @@ -166,44 +158,44 @@ void GoeDiscovery::checkNetworkDeviceApiV1(const NetworkDeviceInfo &networkDevic QVariantMap responseMap = jsonDoc.toVariant().toMap(); if (responseMap.contains("fwv") && responseMap.contains("sse") && responseMap.contains("nrg") && responseMap.contains("amp")) { // Looks like we have found a go-e V1 api endpoint, nice - qCDebug(dcGoECharger()) << "Discovery: --> Found API V1 on" << networkDeviceInfo.address().toString(); + qCDebug(dcGoECharger()) << "Discovery: --> Found API V1 on" << address.toString(); - if (m_discoveryResults.contains(networkDeviceInfo.address()) && m_discoveryResults.value(networkDeviceInfo.address()).discoveryMethod == DiscoveryMethodZeroConf) { - qCDebug(dcGoECharger()) << "Discovery: Network discovery found API V1 go-eCharger on" << networkDeviceInfo.address().toString() - << "but this host has already been discovered using ZeroConf. Prefering ZeroConf over MAC address due to Repeater missbehaviours."; + if (m_discoveryResults.contains(address) && m_discoveryResults.value(address).discoveryMethod == DiscoveryMethodZeroConf) { + qCDebug(dcGoECharger()) << "Discovery: Network discovery found API V1 go-eCharger on" << address.toString() + << "but this host has already been discovered using ZeroConf. Prefering ZeroConf over MAC address due to Repeater missbehaviours."; return; } - if (m_discoveryResults.contains(networkDeviceInfo.address())) { + if (m_discoveryResults.contains(address)) { // We use the information from API V2 since there are more information available - m_discoveryResults[networkDeviceInfo.address()].apiAvailableV1 = true; + m_discoveryResults[address].apiAvailableV1 = true; } else { GoeDiscovery::Result result; result.serialNumber = responseMap.value("sse").toString(); result.firmwareVersion = responseMap.value("fwv").toString(); - result.networkDeviceInfo = networkDeviceInfo; + //result.networkDeviceInfo = networkDeviceInfo; result.apiAvailableV1 = true; - m_discoveryResults[networkDeviceInfo.address()] = result; + m_discoveryResults[address] = result; } } else { - qCDebug(dcGoECharger()) << "Discovery:" << networkDeviceInfo.address().toString() << "API V1 verification returned JSON data but not the right one. Continue..."; + qCDebug(dcGoECharger()) << "Discovery:" << address.toString() << "API V1 verification returned JSON data but not the right one. Continue..."; } }); } -void GoeDiscovery::checkNetworkDeviceApiV2(const NetworkDeviceInfo &networkDeviceInfo) +void GoeDiscovery::checkHostAddressApiV2(const QHostAddress &address) { // Check if API V2 is available: http:///api/status - qCDebug(dcGoECharger()) << "Discovery: verify API V2 on" << networkDeviceInfo.address().toString(); - QNetworkReply *reply = m_networkAccessManager->get(buildRequestV2(networkDeviceInfo.address())); + qCDebug(dcGoECharger()) << "Discovery: verify API V2 on" << address.toString(); + QNetworkReply *reply = m_networkAccessManager->get(buildRequestV2(address)); m_pendingReplies.append(reply); connect(reply, &QNetworkReply::finished, this, [=](){ m_pendingReplies.removeAll(reply); reply->deleteLater(); if (reply->error() != QNetworkReply::NoError) { - qCDebug(dcGoECharger()) << "Discovery:" << networkDeviceInfo.address().toString() << "API V2 verification HTTP error" << reply->errorString() << "Continue..."; + qCDebug(dcGoECharger()) << "Discovery:" << address.toString() << "API V2 verification HTTP error" << reply->errorString() << "Continue..."; return; } @@ -211,7 +203,7 @@ void GoeDiscovery::checkNetworkDeviceApiV2(const NetworkDeviceInfo &networkDevic QJsonParseError error; QJsonDocument jsonDoc = QJsonDocument::fromJson(data, &error); if (error.error != QJsonParseError::NoError) { - qCDebug(dcGoECharger()) << "Discovery:" << networkDeviceInfo.address().toString() << "API V2 verification invalid JSON data. Continue..."; + qCDebug(dcGoECharger()) << "Discovery:" << address.toString() << "API V2 verification invalid JSON data. Continue..."; return; } @@ -220,7 +212,7 @@ void GoeDiscovery::checkNetworkDeviceApiV2(const NetworkDeviceInfo &networkDevic QVariantMap responseMap = jsonDoc.toVariant().toMap(); if (responseMap.contains("fwv") && responseMap.contains("sse") && responseMap.contains("typ") && responseMap.contains("fna")) { // Looks like we have found a go-e V2 api endpoint, nice - qCDebug(dcGoECharger()) << "Discovery: --> Found API V2 on" << networkDeviceInfo.address().toString(); + qCDebug(dcGoECharger()) << "Discovery: --> Found API V2 on" << address.toString(); GoeDiscovery::Result result; result.serialNumber = responseMap.value("sse").toString(); @@ -228,24 +220,24 @@ void GoeDiscovery::checkNetworkDeviceApiV2(const NetworkDeviceInfo &networkDevic result.manufacturer = responseMap.value("oem").toString(); result.product = responseMap.value("typ").toString(); result.friendlyName = responseMap.value("fna").toString(); - result.networkDeviceInfo = networkDeviceInfo; + //result.networkDeviceInfo = networkDeviceInfo; result.discoveryMethod = DiscoveryMethodNetwork; result.apiAvailableV2 = true; - if (m_discoveryResults.contains(networkDeviceInfo.address()) && m_discoveryResults.value(networkDeviceInfo.address()).discoveryMethod == DiscoveryMethodZeroConf) { - qCDebug(dcGoECharger()) << "Discovery: Network discovery found API V2 go-eCharger on" << networkDeviceInfo.address().toString() - << "but this host has already been discovered using ZeroConf. Prefering ZeroConf over MAC address due to Repeater missbehaviours."; + if (m_discoveryResults.contains(address) && m_discoveryResults.value(address).discoveryMethod == DiscoveryMethodZeroConf) { + qCDebug(dcGoECharger()) << "Discovery: Network discovery found API V2 go-eCharger on" << address.toString() + << "but this host has already been discovered using ZeroConf. Prefering ZeroConf over MAC address due to Repeater missbehaviours."; return; } - if (m_discoveryResults.contains(networkDeviceInfo.address())) { - result.apiAvailableV1 = m_discoveryResults.value(networkDeviceInfo.address()).apiAvailableV1; + if (m_discoveryResults.contains(address)) { + result.apiAvailableV1 = m_discoveryResults.value(address).apiAvailableV1; } // Overwrite result from V1 since V2 contains more information - m_discoveryResults[networkDeviceInfo.address()] = result; + m_discoveryResults[address] = result; } else { - qCDebug(dcGoECharger()) << "Discovery:" << networkDeviceInfo.address().toString() << "API V2 verification returned JSON data but not the right one. Continue..."; + qCDebug(dcGoECharger()) << "Discovery:" << address.toString() << "API V2 verification returned JSON data but not the right one. Continue..."; } }); } @@ -274,6 +266,7 @@ void GoeDiscovery::onServiceEntryAdded(const ZeroConfServiceEntry &serviceEntry) // Overwrite any already discovered result for this host, we always prefere ZeroConf over Networkdiscovery... m_discoveryResults[result.address] = result; + m_verifiedHostAddresses.append(result.address); } } @@ -289,6 +282,12 @@ void GoeDiscovery::finishDiscovery() { disconnect(m_serviceBrowser, &ZeroConfServiceBrowser::serviceEntryAdded, this, &GoeDiscovery::onServiceEntryAdded); + foreach (const Result &result, m_discoveryResults) { + int index = m_discoveredNetworkDeviceInfos.indexFromHostAddress(result.address); + if (index >= 0) { + m_discoveryResults[result.address].networkDeviceInfo = m_discoveredNetworkDeviceInfos.at(index); + } + } qint64 durationMilliSeconds = QDateTime::currentMSecsSinceEpoch() - m_startDateTime.toMSecsSinceEpoch(); qCInfo(dcGoECharger()) << "Discovery: Finished the discovery process. Found" << m_discoveryResults.count() << "go-eChargers in" << QTime::fromMSecsSinceStartOfDay(durationMilliSeconds).toString("mm:ss.zzz"); @@ -309,7 +308,6 @@ QDebug operator<<(QDebug dbg, const GoeDiscovery::Result &result) dbg.nospace() << ", " << result.address.toString(); } else { dbg.nospace() << ", " << result.networkDeviceInfo.address().toString(); - dbg.nospace() << ", " << result.networkDeviceInfo.macAddress(); } dbg.nospace() << ") "; return dbg.maybeSpace(); diff --git a/goecharger/goediscovery.h b/goecharger/goediscovery.h index 8be2a10a7..9bf87564a 100644 --- a/goecharger/goediscovery.h +++ b/goecharger/goediscovery.h @@ -88,14 +88,14 @@ class GoeDiscovery : public QObject QHash m_discoveryResults; NetworkDeviceInfos m_discoveredNetworkDeviceInfos; - NetworkDeviceInfos m_verifiedNetworkDeviceInfos; + QList m_verifiedHostAddresses; QList m_pendingReplies; private slots: - void checkNetworkDevice(const NetworkDeviceInfo &networkDeviceInfo); - void checkNetworkDeviceApiV1(const NetworkDeviceInfo &networkDeviceInfo); - void checkNetworkDeviceApiV2(const NetworkDeviceInfo &networkDeviceInfo); + void checkHostAddress(const QHostAddress &address); + void checkHostAddressApiV1(const QHostAddress &address); + void checkHostAddressApiV2(const QHostAddress &address); void onServiceEntryAdded(const ZeroConfServiceEntry &serviceEntry); diff --git a/goecharger/integrationplugingoecharger.cpp b/goecharger/integrationplugingoecharger.cpp index 3e716377c..6b392e2b6 100644 --- a/goecharger/integrationplugingoecharger.cpp +++ b/goecharger/integrationplugingoecharger.cpp @@ -57,7 +57,6 @@ void IntegrationPluginGoECharger::init() m_serviceBrowser = hardwareManager()->zeroConfController()->createServiceBrowser(); connect(m_serviceBrowser, &ZeroConfServiceBrowser::serviceEntryAdded, this, &IntegrationPluginGoECharger::onServiceEntryAdded); } - } void IntegrationPluginGoECharger::discoverThings(ThingDiscoveryInfo *info) @@ -86,8 +85,13 @@ void IntegrationPluginGoECharger::discoverThings(ThingDiscoveryInfo *info) title += " (" + result.manufacturer + ")"; } + ParamList params; + QString description = "Serial: " + result.serialNumber + ", V: " + result.firmwareVersion; if (result.discoveryMethod == GoeDiscovery::DiscoveryMethodNetwork) { + params << Param(goeHomeThingMacAddressParamTypeId, result.networkDeviceInfo.thingParamValueMacAddress()); + params << Param(goeHomeThingHostNameParamTypeId, result.networkDeviceInfo.thingParamValueHostName()); + params << Param(goeHomeThingAddressParamTypeId, result.networkDeviceInfo.thingParamValueAddress()); description.append(" - " + result.networkDeviceInfo.address().toString()); } else { description.append(" - " + result.address.toString()); @@ -95,8 +99,6 @@ void IntegrationPluginGoECharger::discoverThings(ThingDiscoveryInfo *info) qCDebug(dcGoECharger()) << "-->" << title << description; ThingDescriptor descriptor(goeHomeThingClassId, title, description); - ParamList params; - params << Param(goeHomeThingMacAddressParamTypeId, result.networkDeviceInfo.macAddress()); params << Param(goeHomeThingSerialNumberParamTypeId, result.serialNumber); params << Param(goeHomeThingApiVersionParamTypeId, result.apiAvailableV2 ? 2 : 1); // always use v2 if available... descriptor.setParams(params); @@ -123,8 +125,12 @@ void IntegrationPluginGoECharger::setupThing(ThingSetupInfo *info) Thing *thing = info->thing(); qCDebug(dcGoECharger()) << "Setting up" << thing << thing->params(); - MacAddress macAddress = MacAddress(thing->paramValue(goeHomeThingMacAddressParamTypeId).toString()); - if (!macAddress.isValid()) { + + MacAddress macAddress(thing->paramValue(goeHomeThingMacAddressParamTypeId).toString()); + QHostAddress address(thing->paramValue(goeHomeThingAddressParamTypeId).toString()); + QString hostName(thing->paramValue(goeHomeThingHostNameParamTypeId).toString()); + + if (!macAddress.isValid() && address.isNull() && hostName.isEmpty()) { // ZeroConf QHostAddress address = getHostAddress(thing); if (address.isNull()) { @@ -143,8 +149,9 @@ void IntegrationPluginGoECharger::setupThing(ThingSetupInfo *info) hardwareManager()->networkDeviceDiscovery()->unregisterMonitor(m_monitors.take(thing)); // Create the monitor - NetworkDeviceMonitor *monitor = hardwareManager()->networkDeviceDiscovery()->registerMonitor(macAddress); + NetworkDeviceMonitor *monitor = hardwareManager()->networkDeviceDiscovery()->registerMonitor(thing); m_monitors.insert(thing, monitor); + QHostAddress address = getHostAddress(thing); if (address.isNull()) { qCWarning(dcGoECharger()) << "Cannot set up go-eCharger. The host address is not known yet. Maybe it will be available in the next run..."; @@ -222,7 +229,7 @@ void IntegrationPluginGoECharger::setupThing(ThingSetupInfo *info) setupGoeHome(info); } else { qCDebug(dcGoECharger()) << "Wait for the network monitor to get reachable"; - connect(monitor, &NetworkDeviceMonitor::reachableChanged, info, [=](bool reachable){ + connect(monitor, &NetworkDeviceMonitor::reachableChanged, info, [this, info](bool reachable){ if (reachable) { setupGoeHome(info); } diff --git a/goecharger/integrationplugingoecharger.json b/goecharger/integrationplugingoecharger.json index efd93222c..db06b8923 100644 --- a/goecharger/integrationplugingoecharger.json +++ b/goecharger/integrationplugingoecharger.json @@ -24,7 +24,7 @@ "displayName": "go-eCharger Home", "id": "3b663d51-fdb5-4944-b409-c07f7933877e", "createMethods": ["Discovery", "User"], - "interfaces": ["evcharger", "smartmeterconsumer", "connectable"], + "interfaces": ["evcharger", "smartmeterconsumer", "connectable", "networkdevice"], "paramTypes": [ { "id": "0e30e30f-ad96-417e-b739-cac85f75de39", @@ -32,6 +32,18 @@ "displayName": "MAC address", "type": "QString" }, + { + "id": "b70db8c3-b380-4c9a-8954-c02126b057b3", + "name":"hostName", + "displayName": "Host name", + "type": "QString" + }, + { + "id": "9492e39a-0300-47b9-aeda-8a2b14f9ff2b", + "name":"address", + "displayName": "IP address", + "type": "QString" + }, { "id": "74abaff3-39e6-40be-b3c3-f41911d17e02", "name": "serialNumber", diff --git a/goecharger/translations/a1dfca21-3f41-4a67-bc8c-c8b333411bd9-de.ts b/goecharger/translations/a1dfca21-3f41-4a67-bc8c-c8b333411bd9-de.ts new file mode 100644 index 000000000..202c671cd --- /dev/null +++ b/goecharger/translations/a1dfca21-3f41-4a67-bc8c-c8b333411bd9-de.ts @@ -0,0 +1,390 @@ + + + + + GoECharger + + + Access + The name of the StateType ({d80e1ed8-c3ae-4b68-bf86-21b4d7b2b201}) of ThingClass goeHome + Zugang + + + + Adapter connected + The name of the StateType ({d557e59e-ca22-4aff-bf80-dfee44db0f69}) of ThingClass goeHome + Adapter verbunden + + + + + + Allow charging + The name of the ParamType (ThingClass: goeHome, ActionType: power, ID: {8a7ab9f1-0143-494c-98ee-69f94125fe42}) +---------- +The name of the ActionType ({8a7ab9f1-0143-494c-98ee-69f94125fe42}) of ThingClass goeHome +---------- +The name of the StateType ({8a7ab9f1-0143-494c-98ee-69f94125fe42}) of ThingClass goeHome + Ladeerlaubnis + + + + Automatic + The name of a possible value of StateType {d80e1ed8-c3ae-4b68-bf86-21b4d7b2b201} of ThingClass goeHome + Automatisch + + + + Cable ampere encoding + The name of the StateType ({f9091651-1522-4387-b300-906abd907fb3}) of ThingClass goeHome + Kabel Enkodierung + + + + Car plugged in + The name of the StateType ({6cb155b1-0831-47bc-8657-17ca68716684}) of ThingClass goeHome + Auto angesteckt + + + + Car state + The name of the StateType ({c69053bc-3a53-4e76-868b-ccf0958e9e44}) of ThingClass goeHome + Auto Zustand + + + + Charging + The name of the StateType ({48c6cdb8-9fc1-4c14-95df-3e2c62e59361}) of ThingClass goeHome + Laden + + + + + Charging current + The name of the ParamType (ThingClass: goeHome, ActionType: maxChargingCurrent, ID: {446fb786-bfbe-4938-963c-73d02184573f}) +---------- +The name of the StateType ({446fb786-bfbe-4938-963c-73d02184573f}) of ThingClass goeHome + Ladestrom + + + + Charging finished and vehicle still connected + The name of a possible value of StateType {c69053bc-3a53-4e76-868b-ccf0958e9e44} of ThingClass goeHome + Ladung beendet und Auto noch angeschlossen + + + + Connected + The name of the StateType ({a5afaad5-78bf-4cac-b98d-7eae31aac518}) of ThingClass goeHome + Verbunden + + + + Current power + The name of the StateType ({f00cfcab-9271-48fa-b843-89244c9551ae}) of ThingClass goeHome + Aktuelle Leistung + + + + Current power phase A + The name of the StateType ({c6f68517-c4cd-415d-9455-b1731f7d9a1a}) of ThingClass goeHome + Leistung Phase A + + + + Current power phase B + The name of the StateType ({92005049-9ab9-4d7d-a7b6-6ab1a36c5f5f}) of ThingClass goeHome + Leistung Phase B + + + + Current power phase C + The name of the StateType ({1076fbd0-f42b-46e3-adc9-004361d6cd51}) of ThingClass goeHome + Leistung Phase C + + + + + Desired number of charging phases + The name of the ParamType (ThingClass: goeHome, ActionType: desiredPhaseCount, ID: {db0af9a7-08fd-4224-b071-c89e11ae8c47}) +---------- +The name of the StateType ({db0af9a7-08fd-4224-b071-c89e11ae8c47}) of ThingClass goeHome + Gewünschte Phasenanzahl + + + + Firmware version + The name of the StateType ({5d18b48d-b886-409e-ab2e-336d9c94a55c}) of ThingClass goeHome + Firmware Version + + + + HTTP refresh interval + The name of the ParamType (ThingClass: goECharger, Type: plugin, ID: {7746a28e-c125-40bc-958c-27d8aeeb06a0}) + HTTP-Aktuelisierungsintervall + + + + MAC address + The name of the ParamType (ThingClass: goeHome, Type: thing, ID: {0e30e30f-ad96-417e-b739-cac85f75de39}) + MAC-Adresse + + + + Maximal ampere + The name of the StateType ({58cd977d-22df-48c9-829a-81554130d607}) of ThingClass goeHome + Maximale Stromstärke + + + + Number of charging phases + The name of the StateType ({b78d805a-f97c-4c9d-a647-5fc98f8d6dd1}) of ThingClass goeHome + Anzahl der ladenden Phasen + + + + Open + The name of a possible value of StateType {d80e1ed8-c3ae-4b68-bf86-21b4d7b2b201} of ThingClass goeHome + Offen + + + + Phase A current + The name of the StateType ({c8aab9e2-ba53-43b9-95db-e2c3edc97e33}) of ThingClass goeHome + Ladestrom Phase A + + + + Phase A voltage + The name of the StateType ({76da8f16-44a4-4242-b78b-09c9bb127623}) of ThingClass goeHome + Spannung Phase A + + + + Phase B current + The name of the StateType ({f11ac403-728d-48f3-8669-0e684faf9890}) of ThingClass goeHome + Ladestrom Phase B + + + + Phase B voltage + The name of the StateType ({7df01eb4-0d4d-400c-b1bc-001ca83a6a3c}) of ThingClass goeHome + Spannung Phase B + + + + Phase C current + The name of the StateType ({55295e1c-50b0-400b-82e4-b3417b5ed4d1}) of ThingClass goeHome + Ladestrom Phase C + + + + Phase C voltage + The name of the StateType ({31814cfe-626d-4168-802b-b7fc6592fc79}) of ThingClass goeHome + Spannung Phase A + + + + RFID + The name of a possible value of StateType {d80e1ed8-c3ae-4b68-bf86-21b4d7b2b201} of ThingClass goeHome + RFID + + + + Ready but no vehicle connected + The name of a possible value of StateType {c69053bc-3a53-4e76-868b-ccf0958e9e44} of ThingClass goeHome + Bereit aber kein Fahrzeug angeschlossen + + + + Serial number + The name of the ParamType (ThingClass: goeHome, Type: thing, ID: {74abaff3-39e6-40be-b3c3-f41911d17e02}) + Seriennummer + + + + Session energy + The name of the StateType ({e8258831-ad89-4d27-b295-e8c10dd42b76}) of ThingClass goeHome + Sitzungsenergie + + + + Set charging current + The name of the ActionType ({446fb786-bfbe-4938-963c-73d02184573f}) of ThingClass goeHome + Setze Ladestrom + + + + Set desired number of charging phases + The name of the ActionType ({db0af9a7-08fd-4224-b071-c89e11ae8c47}) of ThingClass goeHome + Setze ladende Phasenanzahl + + + + Temperature 1 + The name of the StateType ({2bf1ebf1-0d8c-4209-ad35-4114d9861832}) of ThingClass goeHome + Temperatur 1 + + + + Temperature 2 + The name of the StateType ({558e273a-4028-495a-902a-e4e932a0ae24}) of ThingClass goeHome + Temperatur 2 + + + + Temperature 3 + The name of the StateType ({dbf8a5dc-b8f5-437a-ac0c-c4cf8a09aacb}) of ThingClass goeHome + Temperatur 3 + + + + Temperature 4 + The name of the StateType ({1953e29f-fe28-4016-9b05-f4baf4c311ff}) of ThingClass goeHome + Temperatur 4 + + + + Total energy + The name of the StateType ({d8f5abb6-5db3-4040-8829-553b1d881ce4}) of ThingClass goeHome + Gesamtenergie + + + + Unknown + The name of a possible value of StateType {c69053bc-3a53-4e76-868b-ccf0958e9e44} of ThingClass goeHome + Unbekannt + + + + Update available + The name of the StateType ({08b107bc-1284-455d-9e5a-6a1c3adc389f}) of ThingClass goeHome + Update verfügbar + + + + API Version + The name of the ParamType (ThingClass: goeHome, Type: thing, ID: {3ad014e2-c948-406e-99be-eba1d866ea20}) + API Version + + + + 1 + The name of a possible value of StateType {db0af9a7-08fd-4224-b071-c89e11ae8c47} of ThingClass goeHome + 1 + + + + 3 + The name of a possible value of StateType {db0af9a7-08fd-4224-b071-c89e11ae8c47} of ThingClass goeHome + 3 + + + + Frequency + The name of the StateType ({28f59f96-4b30-4606-9a04-80c82abc346b}) of ThingClass goeHome + Frequenz + + + + Model maximal ampere + The name of the StateType ({ede9251d-662e-4d4b-90e3-db3d33c823d3}) of ThingClass goeHome + Maximaler Ladestrom des Models + + + + Use MQTT interface + The name of the ParamType (ThingClass: goeHome, Type: thing, ID: {848613a6-8a17-4082-ba77-3b4421170a4f}) + Nutze MQTT Schnittstelle + + + + Vehicle loads + The name of a possible value of StateType {c69053bc-3a53-4e76-868b-ccf0958e9e44} of ThingClass goeHome + Fahrzeug lädt + + + + Waiting for vehicle + The name of a possible value of StateType {c69053bc-3a53-4e76-868b-ccf0958e9e44} of ThingClass goeHome + Warte auf Fahrzeug + + + + go-e + The name of the vendor ({c2cf9998-3584-489f-8d82-68a0baed2064}) + go-e + + + + go-eCharger + The name of the plugin GoECharger ({a1dfca21-3f41-4a67-bc8c-c8b333411bd9}) + go-eCharger + + + + go-eCharger Home + The name of the ThingClass ({3b663d51-fdb5-4944-b409-c07f7933877e}) + go-eCharger Home + + + + IntegrationPluginGoECharger + + + The network device discovery is not available. + Die Netzwerksuche ist auf diesem System nicht verfügbar. + + + + + The host address is not known yet. Trying later again. + Die Netzwerkadresse ist noch nicht bekannt. Die Einrichtung wird später erneut versucht. + + + + + + + + + + + + + + The wallbox does not seem to be reachable. + Die Ladestation scheint nicht erreichbar zu sein. + + + + + + + + + + + + + + The wallbox returned invalid data. + Es wurden ungültige Daten von der Ladestation erhalten. + + + + + Error creating MQTT channel. Please check MQTT server settings. + Fehler beim Anlegen des MQTT-Kanals. Bitte überpfüfe die MQTT Server Einstellungen. + + + + + + + + Error while configuring MQTT settings on the wallbox. + Fehler beim Einrichten der MQTT Verbindung auf der Ladestation. + + + diff --git a/goecharger/translations/a1dfca21-3f41-4a67-bc8c-c8b333411bd9-en_US.ts b/goecharger/translations/a1dfca21-3f41-4a67-bc8c-c8b333411bd9-en_US.ts index b6f4282bc..51c1fcd7e 100644 --- a/goecharger/translations/a1dfca21-3f41-4a67-bc8c-c8b333411bd9-en_US.ts +++ b/goecharger/translations/a1dfca21-3f41-4a67-bc8c-c8b333411bd9-en_US.ts @@ -4,21 +4,21 @@ GoECharger - + Access The name of the StateType ({d80e1ed8-c3ae-4b68-bf86-21b4d7b2b201}) of ThingClass goeHome - + Adapter connected The name of the StateType ({d557e59e-ca22-4aff-bf80-dfee44db0f69}) of ThingClass goeHome - - - + + + Allow charging The name of the ParamType (ThingClass: goeHome, ActionType: power, ID: {8a7ab9f1-0143-494c-98ee-69f94125fe42}) ---------- @@ -28,32 +28,38 @@ The name of the StateType ({8a7ab9f1-0143-494c-98ee-69f94125fe42}) of ThingClass - + + Automatic + The name of a possible value of StateType {d80e1ed8-c3ae-4b68-bf86-21b4d7b2b201} of ThingClass goeHome + + + + Cable ampere encoding The name of the StateType ({f9091651-1522-4387-b300-906abd907fb3}) of ThingClass goeHome - + Car plugged in The name of the StateType ({6cb155b1-0831-47bc-8657-17ca68716684}) of ThingClass goeHome - + Car state The name of the StateType ({c69053bc-3a53-4e76-868b-ccf0958e9e44}) of ThingClass goeHome - + Charging The name of the StateType ({48c6cdb8-9fc1-4c14-95df-3e2c62e59361}) of ThingClass goeHome - - + + Charging current The name of the ParamType (ThingClass: goeHome, ActionType: maxChargingCurrent, ID: {446fb786-bfbe-4938-963c-73d02184573f}) ---------- @@ -61,187 +67,262 @@ The name of the StateType ({446fb786-bfbe-4938-963c-73d02184573f}) of ThingClass - + + Charging finished and vehicle still connected + The name of a possible value of StateType {c69053bc-3a53-4e76-868b-ccf0958e9e44} of ThingClass goeHome + + + + Connected The name of the StateType ({a5afaad5-78bf-4cac-b98d-7eae31aac518}) of ThingClass goeHome - + Current power The name of the StateType ({f00cfcab-9271-48fa-b843-89244c9551ae}) of ThingClass goeHome - + Current power phase A The name of the StateType ({c6f68517-c4cd-415d-9455-b1731f7d9a1a}) of ThingClass goeHome - + Current power phase B The name of the StateType ({92005049-9ab9-4d7d-a7b6-6ab1a36c5f5f}) of ThingClass goeHome - + Current power phase C The name of the StateType ({1076fbd0-f42b-46e3-adc9-004361d6cd51}) of ThingClass goeHome - + + + Desired number of charging phases + The name of the ParamType (ThingClass: goeHome, ActionType: desiredPhaseCount, ID: {db0af9a7-08fd-4224-b071-c89e11ae8c47}) +---------- +The name of the StateType ({db0af9a7-08fd-4224-b071-c89e11ae8c47}) of ThingClass goeHome + + + + Firmware version The name of the StateType ({5d18b48d-b886-409e-ab2e-336d9c94a55c}) of ThingClass goeHome - + + HTTP refresh interval + The name of the ParamType (ThingClass: goECharger, Type: plugin, ID: {7746a28e-c125-40bc-958c-27d8aeeb06a0}) + + + + MAC address The name of the ParamType (ThingClass: goeHome, Type: thing, ID: {0e30e30f-ad96-417e-b739-cac85f75de39}) - + Maximal ampere The name of the StateType ({58cd977d-22df-48c9-829a-81554130d607}) of ThingClass goeHome - + Number of charging phases The name of the StateType ({b78d805a-f97c-4c9d-a647-5fc98f8d6dd1}) of ThingClass goeHome - + + Open + The name of a possible value of StateType {d80e1ed8-c3ae-4b68-bf86-21b4d7b2b201} of ThingClass goeHome + + + + Phase A current The name of the StateType ({c8aab9e2-ba53-43b9-95db-e2c3edc97e33}) of ThingClass goeHome - + Phase A voltage The name of the StateType ({76da8f16-44a4-4242-b78b-09c9bb127623}) of ThingClass goeHome - + Phase B current The name of the StateType ({f11ac403-728d-48f3-8669-0e684faf9890}) of ThingClass goeHome - + Phase B voltage The name of the StateType ({7df01eb4-0d4d-400c-b1bc-001ca83a6a3c}) of ThingClass goeHome - + Phase C current The name of the StateType ({55295e1c-50b0-400b-82e4-b3417b5ed4d1}) of ThingClass goeHome - + Phase C voltage The name of the StateType ({31814cfe-626d-4168-802b-b7fc6592fc79}) of ThingClass goeHome - + + RFID + The name of a possible value of StateType {d80e1ed8-c3ae-4b68-bf86-21b4d7b2b201} of ThingClass goeHome + + + + + Ready but no vehicle connected + The name of a possible value of StateType {c69053bc-3a53-4e76-868b-ccf0958e9e44} of ThingClass goeHome + + + + Serial number The name of the ParamType (ThingClass: goeHome, Type: thing, ID: {74abaff3-39e6-40be-b3c3-f41911d17e02}) - + Session energy The name of the StateType ({e8258831-ad89-4d27-b295-e8c10dd42b76}) of ThingClass goeHome - + Set charging current The name of the ActionType ({446fb786-bfbe-4938-963c-73d02184573f}) of ThingClass goeHome - + + Set desired number of charging phases + The name of the ActionType ({db0af9a7-08fd-4224-b071-c89e11ae8c47}) of ThingClass goeHome + + + + Temperature 1 The name of the StateType ({2bf1ebf1-0d8c-4209-ad35-4114d9861832}) of ThingClass goeHome - + Temperature 2 The name of the StateType ({558e273a-4028-495a-902a-e4e932a0ae24}) of ThingClass goeHome - + Temperature 3 The name of the StateType ({dbf8a5dc-b8f5-437a-ac0c-c4cf8a09aacb}) of ThingClass goeHome - + Temperature 4 The name of the StateType ({1953e29f-fe28-4016-9b05-f4baf4c311ff}) of ThingClass goeHome - + Total energy The name of the StateType ({d8f5abb6-5db3-4040-8829-553b1d881ce4}) of ThingClass goeHome - + + Unknown + The name of a possible value of StateType {c69053bc-3a53-4e76-868b-ccf0958e9e44} of ThingClass goeHome + + + + Update available The name of the StateType ({08b107bc-1284-455d-9e5a-6a1c3adc389f}) of ThingClass goeHome - + API Version The name of the ParamType (ThingClass: goeHome, Type: thing, ID: {3ad014e2-c948-406e-99be-eba1d866ea20}) - + + 1 + The name of a possible value of StateType {db0af9a7-08fd-4224-b071-c89e11ae8c47} of ThingClass goeHome + + + + + 3 + The name of a possible value of StateType {db0af9a7-08fd-4224-b071-c89e11ae8c47} of ThingClass goeHome + + + + Frequency The name of the StateType ({28f59f96-4b30-4606-9a04-80c82abc346b}) of ThingClass goeHome - + Model maximal ampere The name of the StateType ({ede9251d-662e-4d4b-90e3-db3d33c823d3}) of ThingClass goeHome - + Use MQTT interface The name of the ParamType (ThingClass: goeHome, Type: thing, ID: {848613a6-8a17-4082-ba77-3b4421170a4f}) - + + Vehicle loads + The name of a possible value of StateType {c69053bc-3a53-4e76-868b-ccf0958e9e44} of ThingClass goeHome + + + + + Waiting for vehicle + The name of a possible value of StateType {c69053bc-3a53-4e76-868b-ccf0958e9e44} of ThingClass goeHome + + + + go-e The name of the vendor ({c2cf9998-3584-489f-8d82-68a0baed2064}) - + go-eCharger The name of the plugin GoECharger ({a1dfca21-3f41-4a67-bc8c-c8b333411bd9}) - + go-eCharger Home The name of the ThingClass ({3b663d51-fdb5-4944-b409-c07f7933877e}) @@ -250,60 +331,58 @@ The name of the StateType ({446fb786-bfbe-4938-963c-73d02184573f}) of ThingClass IntegrationPluginGoECharger - + The network device discovery is not available. - - The MAC address is not known. Please reconfigure the thing. - - - - + + The host address is not known yet. Trying later again. - - - - - - - - - - + + + + + + + + + + + The wallbox does not seem to be reachable. - - - - - - - - - - + + + + + + + + + + + The wallbox returned invalid data. - - + + Error creating MQTT channel. Please check MQTT server settings. - - - - - + + + + + Error while configuring MQTT settings on the wallbox.