diff --git a/webasto/integrationpluginwebasto.cpp b/webasto/integrationpluginwebasto.cpp index 5e25778..7b37899 100644 --- a/webasto/integrationpluginwebasto.cpp +++ b/webasto/integrationpluginwebasto.cpp @@ -384,7 +384,7 @@ void IntegrationPluginWebasto::onReceivedRegister(Webasto::TqModbusRegister modb return; int power = (static_cast(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) diff --git a/webasto/integrationpluginwebasto.json b/webasto/integrationpluginwebasto.json index 824bb22..c1717a2 100644 --- a/webasto/integrationpluginwebasto.json +++ b/webasto/integrationpluginwebasto.json @@ -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 }, {