Add calculated pv power if meter not present (#3705)
Co-authored-by: andig <cpuidle@gmx.de>
This commit is contained in:
parent
e7daabc002
commit
e1c73c0c55
5 changed files with 12 additions and 5 deletions
|
|
@ -146,7 +146,7 @@ export default {
|
|||
return Math.max(0, this.gridPower);
|
||||
},
|
||||
pvProduction: function () {
|
||||
return this.pvConfigured ? Math.abs(this.pvPower) : this.pvExport;
|
||||
return Math.abs(this.pvPower);
|
||||
},
|
||||
batteryPowerAdjusted: function () {
|
||||
const batteryPowerThreshold = 50;
|
||||
|
|
|
|||
|
|
@ -350,6 +350,13 @@ func (site *Site) sitePower(totalChargePower float64) (float64, error) {
|
|||
site.gridPower = totalChargePower - site.pvPower
|
||||
}
|
||||
|
||||
// allow using Grid and charge as estimate for pv power
|
||||
if site.pvMeters == nil {
|
||||
site.pvPower = totalChargePower - site.gridPower + site.ResidualPower
|
||||
site.log.DEBUG.Printf("pv power: %.0fW", site.pvPower)
|
||||
site.publish("pvPower", site.pvPower)
|
||||
}
|
||||
|
||||
// honour battery priority
|
||||
batteryPower := site.batteryPower
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
dist/index.html
vendored
4
dist/index.html
vendored
|
|
@ -20,8 +20,8 @@
|
|||
<meta name="theme-color" content="#020318" />
|
||||
|
||||
<title>evcc</title>
|
||||
<script type="module" crossorigin src="./assets/index.e913565f.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.ed2c6564.css">
|
||||
<script type="module" crossorigin src="./assets/index.9cd7a559.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.8e4c81a1.css">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue