Adjust to changes in evcharger interface

pull/37/head
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;
int power = (static_cast<quint32>(data[0])<<16 | data[1]);
qCDebug(dcWebasto()) << " - Active power:" << power;
thing->setStateValue(liveWallboxPowerConsumptionStateTypeId, power);
thing->setStateValue(liveWallboxCurrentPowerStateTypeId, power);
} break;
case Webasto::TqEnergyMeter: {
if (data.count() < 2)

View File

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