Energyflow: remove battery SoC forecast (#31611)
This commit is contained in:
parent
60af1de1e8
commit
2766297329
20 changed files with 5 additions and 166 deletions
|
|
@ -126,25 +126,8 @@
|
|||
@details-clicked="openBatteryView"
|
||||
@toggle="toggleBattery"
|
||||
>
|
||||
<template
|
||||
v-if="batteryForecastExists || batteryGridChargeLimitSet"
|
||||
#subline
|
||||
>
|
||||
<div
|
||||
v-if="batteryForecastLowest"
|
||||
class="d-flex align-items-center mb-2"
|
||||
>
|
||||
<ForecastMessage :point="batteryForecastLowest" />
|
||||
</div>
|
||||
<div
|
||||
v-else-if="batteryForecastHighest"
|
||||
class="d-none d-md-block mb-2"
|
||||
>
|
||||
|
||||
</div>
|
||||
<div v-if="batteryGridChargeLimitSet" class="d-none d-md-block">
|
||||
|
||||
</div>
|
||||
<template v-if="batteryGridChargeLimitSet" #subline>
|
||||
<div class="d-none d-md-block"> </div>
|
||||
</template>
|
||||
<template v-if="hasMultipleBatteries" #expanded>
|
||||
<EnergyflowEntry
|
||||
|
|
@ -268,24 +251,8 @@
|
|||
@details-clicked="openBatteryView"
|
||||
@toggle="toggleBattery"
|
||||
>
|
||||
<template
|
||||
v-if="batteryForecastExists || batteryGridChargeLimitSet"
|
||||
#subline
|
||||
>
|
||||
<div
|
||||
v-if="batteryForecastHighest"
|
||||
class="d-flex align-items-center mb-2"
|
||||
>
|
||||
<ForecastMessage :point="batteryForecastHighest" high />
|
||||
</div>
|
||||
<div
|
||||
v-else-if="batteryForecastLowest"
|
||||
class="d-none d-md-block mb-2"
|
||||
>
|
||||
|
||||
</div>
|
||||
<template v-if="batteryGridChargeLimitSet" #subline>
|
||||
<button
|
||||
v-if="batteryGridChargeLimitSet"
|
||||
type="button"
|
||||
class="btn-reset d-flex justify-content-between text-start pe-4"
|
||||
@click.stop="openBatteryView"
|
||||
|
|
@ -344,14 +311,12 @@ import Visualization from "./Visualization.vue";
|
|||
import Entry from "./Entry.vue";
|
||||
import formatter, { POWER_UNIT } from "@/mixins/formatter";
|
||||
import AnimatedNumber from "../Helper/AnimatedNumber.vue";
|
||||
import ForecastMessage from "./ForecastMessage.vue";
|
||||
import settings from "@/settings";
|
||||
import collector from "@/mixins/collector.js";
|
||||
import { defineComponent, type PropType } from "vue";
|
||||
import {
|
||||
SMART_COST_TYPE,
|
||||
type Battery,
|
||||
type BatteryForecastPoint,
|
||||
type Meter,
|
||||
type CURRENCY,
|
||||
type Forecast,
|
||||
|
|
@ -364,7 +329,6 @@ export default defineComponent({
|
|||
Visualization,
|
||||
EnergyflowEntry: Entry,
|
||||
AnimatedNumber,
|
||||
ForecastMessage,
|
||||
},
|
||||
mixins: [formatter, collector],
|
||||
props: {
|
||||
|
|
@ -593,15 +557,6 @@ export default defineComponent({
|
|||
allConsumers() {
|
||||
return [...this.consumers, ...this.aux];
|
||||
},
|
||||
batteryForecastHighest(): BatteryForecastPoint | undefined {
|
||||
return this.battery?.forecast?.highest;
|
||||
},
|
||||
batteryForecastLowest(): BatteryForecastPoint | undefined {
|
||||
return this.battery?.forecast?.lowest;
|
||||
},
|
||||
batteryForecastExists(): boolean {
|
||||
return !!(this.batteryForecastHighest || this.batteryForecastLowest);
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
pvConfigured() {
|
||||
|
|
|
|||
|
|
@ -1,54 +0,0 @@
|
|||
<template>
|
||||
<router-link to="/optimize" class="root" @click.stop>
|
||||
{{ label }}: <span class="message">{{ message }}</span>
|
||||
</router-link>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, type PropType } from "vue";
|
||||
import formatter from "@/mixins/formatter";
|
||||
import type { BatteryForecastPoint } from "@/types/evcc";
|
||||
|
||||
export default defineComponent({
|
||||
name: "ForecastMessage",
|
||||
mixins: [formatter],
|
||||
props: {
|
||||
point: { type: Object as PropType<BatteryForecastPoint>, required: true },
|
||||
high: { type: Boolean, default: false },
|
||||
},
|
||||
computed: {
|
||||
label(): string {
|
||||
if (this.point.limit) {
|
||||
return this.$t(
|
||||
this.high
|
||||
? "main.energyflow.batteryForecastFull"
|
||||
: "main.energyflow.batteryForecastEmpty"
|
||||
);
|
||||
}
|
||||
return this.$t(
|
||||
this.high
|
||||
? "main.energyflow.batteryForecastNextHigh"
|
||||
: "main.energyflow.batteryForecastNextLow"
|
||||
);
|
||||
},
|
||||
message(): string {
|
||||
const time = this.fmtAbsoluteDate(new Date(this.point.time));
|
||||
if (this.point.limit) {
|
||||
return time;
|
||||
}
|
||||
const soc = this.fmtPercentage(this.point.soc);
|
||||
return `${time} (${soc})`;
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.root {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
.message {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -1204,10 +1204,6 @@
|
|||
"batteryChargeHold": "Baterie (nabíjení uzamčeno)",
|
||||
"batteryDischarge": "Vybíjení baterie",
|
||||
"batteryDischargeHold": "Baterie (udržování stavu nabití)",
|
||||
"batteryForecastEmpty": "Prázdné",
|
||||
"batteryForecastFull": "Plný",
|
||||
"batteryForecastNextHigh": "Špička",
|
||||
"batteryForecastNextLow": "Minimum",
|
||||
"batteryGridChargeActive": "nabíjení domácí baterie ze sítě je aktivní",
|
||||
"batteryGridChargeLimit": "nabíjení ze sítě, když",
|
||||
"batteryTooltip": "{energy} z {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1241,10 +1241,6 @@
|
|||
"batteryChargeHold": "Batteri (opladning blokeret)",
|
||||
"batteryDischarge": "Batteriet aflades",
|
||||
"batteryDischargeHold": "Batteri (låst)",
|
||||
"batteryForecastEmpty": "Tømt",
|
||||
"batteryForecastFull": "Fyldt",
|
||||
"batteryForecastNextHigh": "Højdepunkt",
|
||||
"batteryForecastNextLow": "Lavpunkt",
|
||||
"batteryGridChargeActive": "Opladning fra elnettet: aktiv",
|
||||
"batteryGridChargeLimit": "Opladning fra elnettet: når",
|
||||
"batteryTooltip": "{energy} af {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@
|
|||
},
|
||||
"battery": {
|
||||
"card": {
|
||||
"charging": "Lädt",
|
||||
"discharging": "Entlädt",
|
||||
"charging": "lädt",
|
||||
"discharging": "entlädt",
|
||||
"energy": "Energie",
|
||||
"gridCharge": "Netzladen",
|
||||
"hold": "Entladesperre",
|
||||
|
|
@ -1279,10 +1279,6 @@
|
|||
"batteryChargeHold": "Batterie (Ladesperre)",
|
||||
"batteryDischarge": "Batterie entladen",
|
||||
"batteryDischargeHold": "Batterie (Entladesperre)",
|
||||
"batteryForecastEmpty": "Leer",
|
||||
"batteryForecastFull": "Voll",
|
||||
"batteryForecastNextHigh": "Hoch",
|
||||
"batteryForecastNextLow": "Tief",
|
||||
"batteryGridChargeActive": "Netzladen: aktiv",
|
||||
"batteryGridChargeLimit": "Netzladen: wenn",
|
||||
"batteryTooltip": "{energy} von {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1279,10 +1279,6 @@
|
|||
"batteryChargeHold": "Battery (charge locked)",
|
||||
"batteryDischarge": "Battery discharging",
|
||||
"batteryDischargeHold": "Battery (discharge locked)",
|
||||
"batteryForecastEmpty": "Empty",
|
||||
"batteryForecastFull": "Full",
|
||||
"batteryForecastNextHigh": "High",
|
||||
"batteryForecastNextLow": "Low",
|
||||
"batteryGridChargeActive": "Grid charging: active",
|
||||
"batteryGridChargeLimit": "Grid charging: when",
|
||||
"batteryTooltip": "{energy} of {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1239,10 +1239,6 @@
|
|||
"batteryChargeHold": "Akku (lataus lukittuna)",
|
||||
"batteryDischarge": "Akku purkautuu",
|
||||
"batteryDischargeHold": "Akku (lukittu)",
|
||||
"batteryForecastEmpty": "Varaus loppuu",
|
||||
"batteryForecastFull": "Varaus täynnä",
|
||||
"batteryForecastNextHigh": "Korkea",
|
||||
"batteryForecastNextLow": "Matala",
|
||||
"batteryGridChargeActive": "Ladataan verkosta",
|
||||
"batteryGridChargeLimit": "Milloin ladataan verkosta",
|
||||
"batteryTooltip": "{energy} / {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1242,10 +1242,6 @@
|
|||
"batteryCharge": "Batterie en charge",
|
||||
"batteryDischarge": "Décharge de la batterie",
|
||||
"batteryDischargeHold": "Batterie (verrouillée)",
|
||||
"batteryForecastEmpty": "Vide",
|
||||
"batteryForecastFull": "Plein",
|
||||
"batteryForecastNextHigh": "Pic",
|
||||
"batteryForecastNextLow": "Creux",
|
||||
"batteryGridChargeActive": "Charge réseau : active",
|
||||
"batteryGridChargeLimit": "Charge réseau : quand",
|
||||
"batteryTooltip": "{energy} sur {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1139,8 +1139,6 @@
|
|||
"batteryCharge": "Carica della batteria",
|
||||
"batteryDischarge": "Scarico della batteria",
|
||||
"batteryDischargeHold": "Batteria (locked)",
|
||||
"batteryForecastEmpty": "vuoto {time}",
|
||||
"batteryForecastFull": "full {time}",
|
||||
"batteryGridChargeActive": "Ricarica dalla rete: attiva",
|
||||
"batteryGridChargeLimit": "Ricarica dalla rete: quando",
|
||||
"batteryTooltip": "{energy} di {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1167,10 +1167,6 @@
|
|||
"batteryCharge": "蓄電池充電中",
|
||||
"batteryDischarge": "蓄電池放電中",
|
||||
"batteryDischargeHold": "蓄電池 (制限中)",
|
||||
"batteryForecastEmpty": "{time} 以降 残量ゼロ",
|
||||
"batteryForecastFull": "{time} 以降 満充電",
|
||||
"batteryForecastNextHigh": "次の最高値",
|
||||
"batteryForecastNextLow": "次の最低値",
|
||||
"batteryGridChargeActive": "系統充電: アクティブ",
|
||||
"batteryGridChargeLimit": "系統充電: 条件待ち",
|
||||
"batteryTooltip": "{energy} / {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1165,10 +1165,6 @@
|
|||
"batteryCharge": "Batterie oplueden",
|
||||
"batteryDischarge": "Batterie entlueden",
|
||||
"batteryDischargeHold": "Batterie (gespäert)",
|
||||
"batteryForecastEmpty": "Eidel",
|
||||
"batteryForecastFull": "Voll",
|
||||
"batteryForecastNextHigh": "Héich",
|
||||
"batteryForecastNextLow": "Déif",
|
||||
"batteryGridChargeActive": "Oluede vum Netz: aktiv",
|
||||
"batteryGridChargeLimit": "Opluede vum Netz: wann",
|
||||
"batteryTooltip": "{energy} vun {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1245,10 +1245,6 @@
|
|||
"batteryChargeHold": "Įkroviklis (įkrovimas užblokuotas)",
|
||||
"batteryDischarge": "Kaupiklis iškraunamas",
|
||||
"batteryDischargeHold": "Kaupiklis (iškrovimas užblokuotas)",
|
||||
"batteryForecastEmpty": "Tuščias",
|
||||
"batteryForecastFull": "Pilnas",
|
||||
"batteryForecastNextHigh": "Didelė",
|
||||
"batteryForecastNextLow": "Žema",
|
||||
"batteryGridChargeActive": "Įkrovimas iš tinklo: aktyvus",
|
||||
"batteryGridChargeLimit": "Įkrauti iš tinklo: kai",
|
||||
"batteryTooltip": "{energy} iš {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1218,10 +1218,6 @@
|
|||
"batteryChargeHold": "Akumulators (uzlāde bloķēta)",
|
||||
"batteryDischarge": "Akumulatora izlāde",
|
||||
"batteryDischargeHold": "Akumulators (izlāde bloķēta)",
|
||||
"batteryForecastEmpty": "Tukšs",
|
||||
"batteryForecastFull": "Pilns",
|
||||
"batteryForecastNextHigh": "Augsts",
|
||||
"batteryForecastNextLow": "Zems",
|
||||
"batteryGridChargeActive": "Tīkla uzlāde: aktīva",
|
||||
"batteryGridChargeLimit": "Tīkla uzlāde: kad",
|
||||
"batteryTooltip": "{energy} no {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1224,10 +1224,6 @@
|
|||
"batteryChargeHold": "Accu (laden vergrendeld)",
|
||||
"batteryDischarge": "Accu ontladen",
|
||||
"batteryDischargeHold": "Accu (geblokkeerd)",
|
||||
"batteryForecastEmpty": "Leeg",
|
||||
"batteryForecastFull": "Vol",
|
||||
"batteryForecastNextHigh": "Hoog",
|
||||
"batteryForecastNextLow": "Laag",
|
||||
"batteryGridChargeActive": "Net laden: actief",
|
||||
"batteryGridChargeLimit": "Net laden: wanneer",
|
||||
"batteryTooltip": "{energy} van {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1078,8 +1078,6 @@
|
|||
"batteryCharge": "Ładowanie magazynu energii",
|
||||
"batteryDischarge": "Rozładowywanie magazynu energii",
|
||||
"batteryDischargeHold": "Magazyn energii (chroniony)",
|
||||
"batteryForecastEmpty": "Pusty",
|
||||
"batteryForecastFull": "Pełny",
|
||||
"batteryGridChargeActive": "Ładowanie z sieci: aktywne",
|
||||
"batteryGridChargeLimit": "Ładowanie z sieci: gdy",
|
||||
"batteryTooltip": "{energy} z {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1151,8 +1151,6 @@
|
|||
"batteryCharge": "Carga de Bateria",
|
||||
"batteryDischarge": "Descarga de Bateria",
|
||||
"batteryDischargeHold": "Bateria (suspensa)",
|
||||
"batteryForecastEmpty": "vazio {time}",
|
||||
"batteryForecastFull": "cheio {time}",
|
||||
"batteryGridChargeActive": "Carga da rede: ativa",
|
||||
"batteryGridChargeLimit": "Carga da rede: quando",
|
||||
"batteryTooltip": "{energy} de {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1054,8 +1054,6 @@
|
|||
"batteryCharge": "Incarca bateria",
|
||||
"batteryDischarge": "Descărcare baterie",
|
||||
"batteryDischargeHold": "Baterie (inchisa)",
|
||||
"batteryForecastEmpty": "gol {time}",
|
||||
"batteryForecastFull": "plin {time}",
|
||||
"batteryGridChargeActive": "Încărcare din rețea: activă",
|
||||
"batteryGridChargeLimit": "Încărcare din rețea: când",
|
||||
"batteryTooltip": "{energy} din {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -1216,10 +1216,6 @@
|
|||
"batteryChargeHold": "Batteri (laddning blockerad)",
|
||||
"batteryDischarge": "Batteri laddas ur",
|
||||
"batteryDischargeHold": "Batteri (låst)",
|
||||
"batteryForecastEmpty": "Tom",
|
||||
"batteryForecastFull": "Full",
|
||||
"batteryForecastNextHigh": "Högsta",
|
||||
"batteryForecastNextLow": "Lägsta",
|
||||
"batteryGridChargeActive": "Nätladdning: aktiv",
|
||||
"batteryGridChargeLimit": "Nätladdning: när",
|
||||
"batteryTooltip": "{energy} av {total} ({soc})",
|
||||
|
|
|
|||
|
|
@ -972,8 +972,6 @@
|
|||
"batteryCharge": "மின்கலம் மின்சேர்வி",
|
||||
"batteryDischarge": "மின்கலம் மின்நீக்கி",
|
||||
"batteryDischargeHold": "மின்கலம் (பூட்டபட்டது)",
|
||||
"batteryForecastEmpty": "காலியாக {time}",
|
||||
"batteryForecastFull": "முழு {time}",
|
||||
"batteryGridChargeActive": "கிரிட் சார்சிங்: செயலில் உள்ளது",
|
||||
"batteryGridChargeLimit": "கிரிட் சார்சிங்: எப்போது",
|
||||
"batteryTooltip": "{energy} ({total}) இன் {soc}",
|
||||
|
|
|
|||
|
|
@ -1189,10 +1189,6 @@
|
|||
"batteryCharge": "Batarya doldurma",
|
||||
"batteryDischarge": "Batarya boşaltma",
|
||||
"batteryDischargeHold": "Batarya (kilitli)",
|
||||
"batteryForecastEmpty": "Boş",
|
||||
"batteryForecastFull": "Dolu",
|
||||
"batteryForecastNextHigh": "Yüksek",
|
||||
"batteryForecastNextLow": "Düşük",
|
||||
"batteryGridChargeActive": "Şebekeden doldurma: etkin",
|
||||
"batteryGridChargeLimit": "Şebekeden doldurma: şayet",
|
||||
"batteryTooltip": "{total} ({soc})'ın {energy}'ı",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue