+ }
}
@@ -187,7 +198,7 @@
_periodicTaskHelper = new();
_periodicTaskHelper.Start(RefreshPvValues, TimeSpan.FromSeconds(5));
}
-
+
private async Task RefreshPvValues()
{
try
@@ -629,4 +640,19 @@
var homePower = _pvValues.InverterPower - _pvValues.GridPower - homeBatteryPower - chargingPower;
return homePower;
}
+
+ private async Task UpdatePowerBuffer(int? newValue)
+ {
+ var response = await HttpClient.GetAsync($"api/BaseConfiguration/UpdatePowerBuffer?powerBuffer={newValue ?? 0}").ConfigureAwait(false);
+ if (response.IsSuccessStatusCode)
+ {
+ Snackbar.Add("Power Buffer updated", Severity.Success);
+ }
+ else
+ {
+ Snackbar.Add("Failed to update Power Buffer", Severity.Error);
+ }
+
+ }
+
}
\ No newline at end of file
diff --git a/TeslaSolarCharger/Client/Pages/BaseConfiguration.razor b/TeslaSolarCharger/Client/Pages/BaseConfiguration.razor
index 92594a72c..858bb319c 100644
--- a/TeslaSolarCharger/Client/Pages/BaseConfiguration.razor
+++ b/TeslaSolarCharger/Client/Pages/BaseConfiguration.razor
@@ -153,7 +153,7 @@ else
+ HelpText="Set values higher than 0 to always have some overage (power to grid). Set values lower than 0 to always consume some power from the grid. Note: The power buffer you see on the home page is replaced with this value after a TSC restart. Do only change this value if you want a permanent change. Frequent Base Configuration changes are not recommended. If you can not see a power buffer value on the homepage, set the power buffer here to 1 as on the homepage it is only displayed if different from zero.">
diff --git a/TeslaSolarCharger/Client/Pages/CarSettings.razor b/TeslaSolarCharger/Client/Pages/CarSettings.razor
index 4c92a6e4a..90955bcb9 100644
--- a/TeslaSolarCharger/Client/Pages/CarSettings.razor
+++ b/TeslaSolarCharger/Client/Pages/CarSettings.razor
@@ -64,7 +64,13 @@ else
For="() => carBasicConfiguration.UseBleForWakeUp"
OnValueChanged="StateHasChanged"/>
-@* *@
+
+ @if(carBasicConfiguration.UseFleetTelemetry)
+ {
+
+ }