diff --git a/nymea-app/ui/devicepages/SmartMeterDevicePage.qml b/nymea-app/ui/devicepages/SmartMeterDevicePage.qml
index c5d5e475..f327c0b5 100644
--- a/nymea-app/ui/devicepages/SmartMeterDevicePage.qml
+++ b/nymea-app/ui/devicepages/SmartMeterDevicePage.qml
@@ -204,7 +204,6 @@ ThingPageBase {
Label {
Layout.fillWidth: true
- visible: isBattery
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
textFormat: Text.RichText
@@ -216,9 +215,17 @@ ThingPageBase {
property date endTime: isBattery ? new Date(new Date().getTime() + remainingHours * 60 * 60 * 1000) : new Date()
property int n: Math.round(remainingHours)
- text: isCharging ? qsTr("At the current rate, the battery will be fully charged at %1.").arg('' + endTime.toLocaleTimeString(Locale.ShortFormat) + "")
- : isDischarging ? qsTr("At the current rate, the battery will last until %1.").arg('' + endTime.toLocaleTimeString(Locale.ShortFormat) + "")
- : ""
+ text: root.isConsumer
+ ? qsTr("Total consumption: %1 kWh").arg('' + root.totalEnergyConsumedState.value.toFixed(2) + "")
+ : root.isProducer
+ ? qsTr("Total production: %1 kWh").arg('' + root.totalEnergyProducedState.value.toFixed(2) + "")
+ : root.isEnergyMeter
+ ? qsTr("Total acquisition: %1 kWh").arg('' + root.totalEnergyConsumedState.value.toFixed(2) + "") + "
" + qsTr("Total return: %1 kWh").arg('' + root.totalEnergyProducedState.value.toFixed(2) + "")
+ : root.isBattery && isCharging
+ ? qsTr("At the current rate, the battery will be fully charged at %1.").arg('' + endTime.toLocaleTimeString(Locale.ShortFormat) + "")
+ : root.isBattery && Discharging
+ ? qsTr("At the current rate, the battery will last until %1.").arg('' + endTime.toLocaleTimeString(Locale.ShortFormat) + "")
+ : ""
}
}
}