Skip to content

Commit 6ee63a5

Browse files
committed
Cards: fix flow chart pv animation
1 parent d4a867d commit 6ee63a5

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

packages/modules/display_themes/cards/source/src/components/Dashboard/FlowCard.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ export default {
197197
return this.homePower.value < 0;
198198
},
199199
pvProduction() {
200+
return this.pvPower.value < 0;
201+
},
202+
pvConsumption() {
200203
return this.pvPower.value > 0;
201204
},
202205
batteryDischarging() {
@@ -279,9 +282,9 @@ export default {
279282
id: "pv",
280283
class: {
281284
base: "pv",
282-
valueLabel: this.pvProduction ? "fill-success" : "",
285+
valueLabel: this.pvProduction || this.pvConsumption ? "fill-success" : "",
283286
animated: this.pvProduction,
284-
animatedReverse: false,
287+
animatedReverse: this.pvConsumption,
285288
},
286289
position: {
287290
row: 1,

packages/modules/display_themes/cards/source/src/stores/mqtt.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,6 @@ export const useMqttStore = defineStore("mqtt", {
399399
"openWB/pv/get/power",
400400
"W",
401401
"",
402-
true,
403-
true,
404402
);
405403
if (Object.hasOwnProperty.call(power, returnType)) {
406404
return power[returnType];

0 commit comments

Comments
 (0)