File tree Expand file tree Collapse file tree
packages/modules/display_themes/cards/source/src Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 ] ;
You can’t perform that action at this time.
0 commit comments