Skip to content

Passive Speichersteuerung: Fahrzeug-Vorrang umbenennen - #4192

Closed
LKuemmel wants to merge 3 commits into
openWB:masterfrom
LKuemmel:help
Closed

LKuemmel wants to merge 3 commits into
openWB:masterfrom
LKuemmel:help

Conversation

@LKuemmel

@LKuemmel LKuemmel commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

@LKuemmel LKuemmel added this to the 2.3.0 milestone Oct 26, 2026
@LKuemmel
LKuemmel requested review from benderl and a lite review from Copilot October 26, 2026 14:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The only noted issue is a non-blocking nit concerning label consistency in the legacy theme.

No open issues 🎉

What changed in this PR

This pull request renames the battery priority mode from “Fahrzeuge” to “Verbraucher” and updates its visual indicators across the Koala and Cards themes.

Changes:

  • Renames the ev_mode label and tooltip to “Verbraucher”.
  • Adds vehicle/consumer icon combinations to battery controls and status displays.
  • Updates the Cards battery-mode modal with the matching label and plug icon.
File Summary
packages/​modules/​web_themes/​koala/​source/​src/​composables/​useBatteryModes.ts Renames the shared battery mode label and tooltip. Review note: the still-supported standard_legacy theme retains the “Fahrzeuge” label for the same setting.
packages/​modules/​web_themes/​koala/​source/​src/​components/​BatteryModeButtons.vue Displays vehicle and power-consumer icons for the renamed mode.
packages/​modules/​web_themes/​koala/​source/​src/​components/​BatteryCard.vue Adds the combined consumer-mode icon to battery cards.
packages/​modules/​display_themes/​cards/​source/​src/​components/​Dashboard/​FlowCard.vue Adds the combined vehicle/consumer indicator to the dashboard flow card.
packages/​modules/​display_themes/​cards/​source/​src/​components/​Battery/​BatteryModeModal.vue Updates the mode label and adds the plug icon to the modal.

Review effort: Lite

@LKuemmel

Copy link
Copy Markdown
Contributor Author

@cshagen Möchtest Du das im Colors-Theme auch anpassen? Die Priorität gilt nun für Fahrzeuge und Verbraucher.

@cshagen

cshagen commented Oct 26, 2026 via email

Copy link
Copy Markdown
Collaborator

outline
:color="mode.color != 'dark' ? mode.color : 'light'"
:active="mode.value === mqttStore.getBatteryMode"
:title="mode.label"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ein Tooltip, der den selben Inhalt wie das Label des Buttons hat, macht eigentlich keinen Sinn.

Suggested change
:title="mode.label"

Comment on lines +36 to +42
<template v-if="mode.value === 'ev_mode'">
/
<font-awesome-icon
fixed-width
:icon="['fas', 'plug']"
/>
</template>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diese Spezialbehandlung im Template passt nicht zu dem System mit den Daten in mode.
Besser wäre es, dass allgemein aufzubohren und mode.symbol in ein Array zu überführen.

Ich erstelle einen Commit dafür.

v-else
:x="svgSize.circleRadius * 1.45"
:y="-svgSize.circleRadius * 1.35"
:height="svgSize.circleRadius * 0.6"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Siehe Kommentar zu BatteryModeModal.vue.

Comment on lines +43 to +46
<template v-if="batteryMode.value === 'ev_mode'">
<span class="q-mx-xs">/</span>
<q-icon name="power" size="sm" color="primary" />
</template>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Siehe Kommentar zum Cards Theme.

Comment on lines +11 to +16
<q-icon :name="mode.icon" />
<template v-if="mode.value === 'ev_mode'">
<span class="q-mx-xs">/</span>
<q-icon name="power" />
</template>
<span class="q-ml-xs">{{ mode.label }}</span>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Siehe Kommentar zum Cards Theme.

@benderl

benderl commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Ich würde das gerne anpassen, aber mir ist nicht klar, wie die neue Logik funktioniert. Gibt es neu drei Optionen für die Priorität - Speicher, Fahrzeuge oder Verbraucher? Oder sind bei den Fahrzeugen jetzt immer die Verbraucher mit dabei?

An den Modi hat sich nichts geändert. Lediglich die Bezeichnung von ev_mode wurde angepasst.
Fahrzeuge und Verbraucher werden immer zusammen betrachtet. So ganz glücklich bin ich mit der reinen Bezeichnung "Verbraucher" für diese Gruppe auf Fahrzeugen und Verbrauchern auch nicht. Ich habe jedoch auch keinen alternativen Vorschlag dafür.

@LKuemmel

Copy link
Copy Markdown
Contributor Author

replaced by #4197 auch für das Colors-Theme

@LKuemmel LKuemmel closed this Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants