Update phase states to common ABC definition

This commit is contained in:
Simon Stürz 2021-10-21 09:18:43 +02:00
parent 175143c2ff
commit 94be751d24
2 changed files with 24 additions and 24 deletions

View File

@ -459,12 +459,12 @@ void IntegrationPluginKeba::onReportThreeReceived(const KeContact::ReportThree &
qCDebug(dcKeba()) << " - Uptime" << reportThree.seconds/60 << "[min]"; qCDebug(dcKeba()) << " - Uptime" << reportThree.seconds/60 << "[min]";
if (reportThree.serialNumber == thing->stateValue(wallboxSerialnumberStateTypeId).toString()) { if (reportThree.serialNumber == thing->stateValue(wallboxSerialnumberStateTypeId).toString()) {
thing->setStateValue(wallboxCurrentPhase1EventTypeId, reportThree.currentPhase1); thing->setStateValue(wallboxCurrentPhaseAEventTypeId, reportThree.currentPhase1);
thing->setStateValue(wallboxCurrentPhase2EventTypeId, reportThree.currentPhase2); thing->setStateValue(wallboxCurrentPhaseBEventTypeId, reportThree.currentPhase2);
thing->setStateValue(wallboxCurrentPhase3EventTypeId, reportThree.currentPhase3); thing->setStateValue(wallboxCurrentPhaseCEventTypeId, reportThree.currentPhase3);
thing->setStateValue(wallboxVoltagePhase1EventTypeId, reportThree.voltagePhase1); thing->setStateValue(wallboxVoltagePhaseAEventTypeId, reportThree.voltagePhase1);
thing->setStateValue(wallboxVoltagePhase2EventTypeId, reportThree.voltagePhase2); thing->setStateValue(wallboxVoltagePhaseBEventTypeId, reportThree.voltagePhase2);
thing->setStateValue(wallboxVoltagePhase3EventTypeId, reportThree.voltagePhase3); thing->setStateValue(wallboxVoltagePhaseCEventTypeId, reportThree.voltagePhase3);
thing->setStateValue(wallboxCurrentPowerStateTypeId, reportThree.power); thing->setStateValue(wallboxCurrentPowerStateTypeId, reportThree.power);
thing->setStateValue(wallboxSessionEnergyStateTypeId, reportThree.energySession); thing->setStateValue(wallboxSessionEnergyStateTypeId, reportThree.energySession);
thing->setStateValue(wallboxPowerFactorStateTypeId, reportThree.powerFactor); thing->setStateValue(wallboxPowerFactorStateTypeId, reportThree.powerFactor);

View File

@ -163,36 +163,36 @@
}, },
{ {
"id": "4a2d75d8-a3a0-4b40-9ca7-e8b6f11d0ef9", "id": "4a2d75d8-a3a0-4b40-9ca7-e8b6f11d0ef9",
"name": "voltagePhase1", "name": "voltagePhaseA",
"displayName": "Voltage phase 1", "displayName": "Voltage phase A",
"displayNameEvent": "Voltage phase 1 changed", "displayNameEvent": "Voltage phase A changed",
"type": "int", "type": "int",
"unit": "Volt", "unit": "Volt",
"defaultValue": 0 "defaultValue": 0
}, },
{ {
"id": "c8344ca5-21ac-4cd1-8f4b-e5ed202c5862", "id": "c8344ca5-21ac-4cd1-8f4b-e5ed202c5862",
"name": "voltagePhase2", "name": "voltagePhaseB",
"displayName": "Voltage phase 2", "displayName": "Voltage phase B",
"displayNameEvent": "Voltage phase 2 changed", "displayNameEvent": "Voltage phase B changed",
"type": "int", "type": "int",
"unit": "Volt", "unit": "Volt",
"defaultValue": 0 "defaultValue": 0
}, },
{ {
"id": "5f01e86c-0943-4849-a01a-db441916ebd5", "id": "5f01e86c-0943-4849-a01a-db441916ebd5",
"name": "voltagePhase3", "name": "voltagePhaseC",
"displayName": "Voltage phase 3", "displayName": "Voltage phase C",
"displayNameEvent": "Voltage phase 3 changed", "displayNameEvent": "Voltage phase C changed",
"type": "int", "type": "int",
"unit": "Volt", "unit": "Volt",
"defaultValue": 0 "defaultValue": 0
}, },
{ {
"id": "31ec17b0-11e3-4332-92b0-fea821cf024f", "id": "31ec17b0-11e3-4332-92b0-fea821cf024f",
"name": "currentPhase1", "name": "currentPhaseA",
"displayName": "Current phase 1", "displayName": "Current phase A",
"displayNameEvent": "Current phase 1 changed", "displayNameEvent": "Current phase A changed",
"type": "double", "type": "double",
"unit": "Ampere", "unit": "Ampere",
"defaultValue": 0.00, "defaultValue": 0.00,
@ -200,9 +200,9 @@
}, },
{ {
"id": "cdc7e10a-0d0a-4e93-ad2c-d34ffca45c97", "id": "cdc7e10a-0d0a-4e93-ad2c-d34ffca45c97",
"name": "currentPhase2", "name": "currentPhaseB",
"displayName": "Current phase 2", "displayName": "Current phase B",
"displayNameEvent": "Current phase 2 changed", "displayNameEvent": "Current phase B changed",
"type": "double", "type": "double",
"unit": "Ampere", "unit": "Ampere",
"defaultValue": 0.00, "defaultValue": 0.00,
@ -210,9 +210,9 @@
}, },
{ {
"id": "da838dc8-85f0-4e55-b4b5-cb93a43b373d", "id": "da838dc8-85f0-4e55-b4b5-cb93a43b373d",
"name": "currentPhase3", "name": "currentPhaseC",
"displayName": "Current phase 3", "displayName": "Current phase C",
"displayNameEvent": "Current phase 3 changed", "displayNameEvent": "Current phase C changed",
"type": "double", "type": "double",
"unit": "Ampere", "unit": "Ampere",
"defaultValue": 0.00, "defaultValue": 0.00,