Adjust to changes in evcharger interface

master
Michael Zanetti 2021-09-23 18:24:17 +02:00
parent b3576ae278
commit 7213194a97
2 changed files with 5 additions and 5 deletions

View File

@ -384,7 +384,7 @@ void IntegrationPluginWebasto::onReceivedRegister(Webasto::TqModbusRegister modb
return; return;
int power = (static_cast<quint32>(data[0])<<16 | data[1]); int power = (static_cast<quint32>(data[0])<<16 | data[1]);
qCDebug(dcWebasto()) << " - Active power:" << power; qCDebug(dcWebasto()) << " - Active power:" << power;
thing->setStateValue(liveWallboxPowerConsumptionStateTypeId, power); thing->setStateValue(liveWallboxCurrentPowerStateTypeId, power);
} break; } break;
case Webasto::TqEnergyMeter: { case Webasto::TqEnergyMeter: {
if (data.count() < 2) if (data.count() < 2)

View File

@ -127,11 +127,11 @@
}, },
{ {
"id": "b20a46ee-0f22-4096-a348-34e68e99e0be", "id": "b20a46ee-0f22-4096-a348-34e68e99e0be",
"name": "powerConsumption", "name": "currentPower",
"displayName": "Power consumption", "displayName": "Current power consumption",
"displayNameEvent": "Power consumtion changed", "displayNameEvent": "Current power consumtion changed",
"type": "double", "type": "double",
"unit": "KiloWatt", "unit": "Watt",
"defaultValue": 0.00 "defaultValue": 0.00
}, },
{ {