keba changed sec to msec

This commit is contained in:
bernhard.trinnes 2020-03-24 13:02:29 +01:00
parent 0d74094546
commit aa77de0115
2 changed files with 16 additions and 7 deletions

View File

@ -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

View File

@ -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);