From 95afcce70dd0fdbeb1ab0f5fc175a6ac9c65be9f Mon Sep 17 00:00:00 2001 From: Lutz Bender Date: Tue, 30 Sep 2025 08:27:32 +0200 Subject: [PATCH] Cards: fix flow chart pv animation --- .../cards/source/src/components/Dashboard/FlowCard.vue | 7 +++++-- .../modules/display_themes/cards/source/src/stores/mqtt.js | 2 -- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/modules/display_themes/cards/source/src/components/Dashboard/FlowCard.vue b/packages/modules/display_themes/cards/source/src/components/Dashboard/FlowCard.vue index 7114e3fc40..e9bd936a92 100644 --- a/packages/modules/display_themes/cards/source/src/components/Dashboard/FlowCard.vue +++ b/packages/modules/display_themes/cards/source/src/components/Dashboard/FlowCard.vue @@ -197,6 +197,9 @@ export default { return this.homePower.value < 0; }, pvProduction() { + return this.pvPower.value < 0; + }, + pvConsumption() { return this.pvPower.value > 0; }, batteryDischarging() { @@ -279,9 +282,9 @@ export default { id: "pv", class: { base: "pv", - valueLabel: this.pvProduction ? "fill-success" : "", + valueLabel: this.pvProduction || this.pvConsumption ? "fill-success" : "", animated: this.pvProduction, - animatedReverse: false, + animatedReverse: this.pvConsumption, }, position: { row: 1, diff --git a/packages/modules/display_themes/cards/source/src/stores/mqtt.js b/packages/modules/display_themes/cards/source/src/stores/mqtt.js index f53d0eb91f..22fc6799a3 100644 --- a/packages/modules/display_themes/cards/source/src/stores/mqtt.js +++ b/packages/modules/display_themes/cards/source/src/stores/mqtt.js @@ -399,8 +399,6 @@ export const useMqttStore = defineStore("mqtt", { "openWB/pv/get/power", "W", "", - true, - true, ); if (Object.hasOwnProperty.call(power, returnType)) { return power[returnType];