@@ -391,6 +391,8 @@ void VictronSmartShuntStats::updateFrom(VeDirectShuntController::data_t const& s
391
391
_manufacturer = " Victron " + _modelName;
392
392
_temperature = shuntData.T ;
393
393
_tempPresent = shuntData.tempPresent ;
394
+ _midpointVoltage = static_cast <float >(shuntData.VM ) / 1000 ;
395
+ _midpointDeviation = static_cast <float >(shuntData.DM ) / 10 ;
394
396
_instantaneousPower = shuntData.P ;
395
397
_consumedAmpHours = static_cast <float >(shuntData.CE ) / 1000 ;
396
398
_lastFullCharge = shuntData.H9 / 60 ;
@@ -414,6 +416,8 @@ void VictronSmartShuntStats::getLiveViewData(JsonVariant& root) const {
414
416
addLiveViewValue (root, " dischargedEnergy" , _dischargedEnergy, " kWh" , 2 );
415
417
addLiveViewValue (root, " instantaneousPower" , _instantaneousPower, " W" , 0 );
416
418
addLiveViewValue (root, " consumedAmpHours" , _consumedAmpHours, " Ah" , 3 );
419
+ addLiveViewValue (root, " midpointVoltage" , _midpointVoltage, " V" , 2 );
420
+ addLiveViewValue (root, " midpointDeviation" , _midpointDeviation, " %" , 1 );
417
421
addLiveViewValue (root, " lastFullCharge" , _lastFullCharge, " min" , 0 );
418
422
if (_tempPresent) {
419
423
addLiveViewValue (root, " temperature" , _temperature, " °C" , 0 );
@@ -436,4 +440,6 @@ void VictronSmartShuntStats::mqttPublish() const {
436
440
MqttSettings.publish (" battery/instantaneousPower" , String (_instantaneousPower));
437
441
MqttSettings.publish (" battery/consumedAmpHours" , String (_consumedAmpHours));
438
442
MqttSettings.publish (" battery/lastFullCharge" , String (_lastFullCharge));
443
+ MqttSettings.publish (" battery/midpointVoltage" , String (_midpointVoltage));
444
+ MqttSettings.publish (" battery/midpointDeviation" , String (_midpointDeviation));
439
445
}
0 commit comments