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];