From 95a3320409b6295f657c437f5d36b7cb1e1c6c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 15 Sep 2025 16:23:50 +0200 Subject: [PATCH] Update active phase count and max charging current update --- everest/jsonrpc/everestevse.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/everest/jsonrpc/everestevse.cpp b/everest/jsonrpc/everestevse.cpp index 15973c58..c9dc542a 100644 --- a/everest/jsonrpc/everestevse.cpp +++ b/everest/jsonrpc/everestevse.cpp @@ -239,7 +239,9 @@ void EverestEvse::processEvseStatus() m_thing->setStateValue(everestChargerAcStateStateTypeId, m_evseStatus.evseStateString); m_thing->setStateValue(everestChargerAcChargingStateTypeId, m_evseStatus.evseState == EverestJsonRpcClient::EvseStateCharging); m_thing->setStateValue(everestChargerAcPluggedInStateTypeId, m_evseStatus.evseState != EverestJsonRpcClient::EvseStateUnplugged); - // TODO: check what we do it available is false, shall we disconnect the thing or introduce a new state + + m_thing->setStateValue(everestChargerAcPhaseCountStateTypeId, m_evseStatus.acChargeStatus.activePhaseCount); + m_thing->setStateValue(everestChargerAcMaxChargingCurrentStateTypeId, m_evseStatus.acChargeParameters.maxCurrent); } } @@ -253,7 +255,6 @@ void EverestEvse::processHardwareCapabilities() m_thing->setStateValue(everestChargerAcPhaseCountStateTypeId, 3); } else { m_thing->setStatePossibleValues(everestChargerAcDesiredPhaseCountStateTypeId, { 1, 3 }); - m_thing->setStateValue(everestChargerAcPhaseCountStateTypeId, m_thing->stateValue(everestChargerAcDesiredPhaseCountStateTypeId)); } m_thing->setStateMaxValue(everestChargerAcMaxChargingCurrentStateTypeId, m_hardwareCapabilities.maxCurrentImport);