keba changed sec to msec
This commit is contained in:
parent
0d74094546
commit
aa77de0115
@ -2,11 +2,20 @@
|
|||||||
|
|
||||||
This plugin allows to control Keba KeContact EV-Charging stations.
|
This plugin allows to control Keba KeContact EV-Charging stations.
|
||||||
|
|
||||||
* Enable/disable the charging stations
|
## Supported Things
|
||||||
* Set maximum charging current
|
|
||||||
* Get all informations about the power supply
|
|
||||||
* Print messages on the display
|
|
||||||
|
|
||||||
nymea and the wallbox are required to be in the same network and
|
* KeContact
|
||||||
port 7090 must not be blocked by a firewall or router.
|
* 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
|
||||||
|
|||||||
@ -157,7 +157,7 @@ void IntegrationPluginKeba::updateData()
|
|||||||
QTimeZone tz = QTimeZone(QTimeZone::systemTimeZoneId());
|
QTimeZone tz = QTimeZone(QTimeZone::systemTimeZoneId());
|
||||||
QDateTime currentTime = QDateTime::currentDateTime().toTimeZone(tz);
|
QDateTime currentTime = QDateTime::currentDateTime().toTimeZone(tz);
|
||||||
|
|
||||||
int minutes = (currentTime.toSecsSinceEpoch() - startTime.toSecsSinceEpoch())/60;
|
int minutes = (currentTime.toMSecsSinceEpoch()) - startTime.toMSecsSinceEpoch())/60000;
|
||||||
device->setStateValue(wallboxSessionTimeStateTypeId, minutes);
|
device->setStateValue(wallboxSessionTimeStateTypeId, minutes);
|
||||||
} else {
|
} else {
|
||||||
device->setStateValue(wallboxSessionTimeStateTypeId, 0);
|
device->setStateValue(wallboxSessionTimeStateTypeId, 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user