From b2fc0b4ef1188a2b8b38cd741bbbb2918540d2e1 Mon Sep 17 00:00:00 2001 From: Roland Pircher Date: Sun, 6 Oct 2024 10:20:45 +0200 Subject: [PATCH] Update README.md Formulas inserted for the exact conversion of the various percentage values between app and API --- README.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 32e22fd..d637d14 100644 --- a/README.md +++ b/README.md @@ -614,19 +614,11 @@ There also is an option to set the max PV Export power in kW. I'm not 100% sure `{max_pv_export_power_kW: null, mode: "self_consumption", backup_reserve_percent: 24}` -Note the difference in the app value (20%) versus the value we set via the local API (24%). The difference is likely proportional until you reach 100%: - -___**Tested values:**___ - -| APP Setting | API Setting | -| :-------------: |:-------------:| -| 5% | 10% | -| 16% | 20% | -| 16% | 20.6% | -| 20% | 24% | -| 21% | 24.6% | -| 30% | 33% | -| 100% | 100% | +Note the difference in the app value (20%) versus the value we set via the local API (24%). You can use these formulas for the conversion: + +From app value to API value: $$\frac{19}{20}x+5$$ + +From API value to app value: $$\frac{20}{19}x-\frac{100}{19}$$ ---