diff --git a/keba/README.md b/keba/README.md index d134350f..87bdbebb 100644 --- a/keba/README.md +++ b/keba/README.md @@ -2,11 +2,20 @@ This plugin allows to control Keba KeContact EV-Charging stations. -* Enable/disable the charging stations -* Set maximum charging current -* Get all informations about the power supply -* Print messages on the display +## Supported Things -nymea and the wallbox are required to be in the same network and -port 7090 must not be blocked by a firewall or router. +* KeContact + * Enable/disable the charging stations + * Set maximum charging current + * Get all informations e.g. voltage, current ... + * Print messages on the display +## Requirments + +* nymea and the wallbox are required to be in the same network. +* Port 7090 must not be blocked by a firewall or router. +* The package "nymea-plugin-keba" must be installed. + +## More + +https://www.keba.com/en/emobility/products/product-overview/product_overview diff --git a/keba/integrationpluginkeba.cpp b/keba/integrationpluginkeba.cpp index ae0ad441..a83dbd96 100644 --- a/keba/integrationpluginkeba.cpp +++ b/keba/integrationpluginkeba.cpp @@ -157,7 +157,7 @@ void IntegrationPluginKeba::updateData() QTimeZone tz = QTimeZone(QTimeZone::systemTimeZoneId()); QDateTime currentTime = QDateTime::currentDateTime().toTimeZone(tz); - int minutes = (currentTime.toSecsSinceEpoch() - startTime.toSecsSinceEpoch())/60; + int minutes = (currentTime.toMSecsSinceEpoch()) - startTime.toMSecsSinceEpoch())/60000; device->setStateValue(wallboxSessionTimeStateTypeId, minutes); } else { device->setStateValue(wallboxSessionTimeStateTypeId, 0);