Skip to content

Commit

Permalink
Fix export bug with self consumption 0
Browse files Browse the repository at this point in the history
  • Loading branch information
longzheng committed Aug 11, 2024
1 parent d54c6f2 commit 30e449a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fronius-accessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class FroniusAccessory implements AccessoryPlugin {
switch (this.metering) {
case 'Export': {
const gridValue = data.Site.P_Grid;
const selfConsumptionValue = data.Site.rel_SelfConsumption || 100;
const selfConsumptionValue = data.Site.rel_SelfConsumption ?? 100;

this.onValue =
// on/off is calculated whether selfConsumption is less than 100
Expand Down

0 comments on commit 30e449a

Please sign in to comment.