From eaa86e9375bb405b608a61f2101947f67a9e00c3 Mon Sep 17 00:00:00 2001 From: Rik Allen Date: Thu, 20 Aug 2026 14:03:15 +0100 Subject: [PATCH] fix(config): widen currency-scoped price ranges for non-GBP markets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit car_charging_plan_max_price was capped at -99..99p, too narrow for markets like Denmark where prices in øre routinely exceed 99 (#4614). The raw numeric value entered isn't currency-converted, so a range tuned for GBP pence is too narrow for any minor-unit currency with a higher nominal scale. Widened to -1000..1000, matching the existing convention already used by manual_import_value/manual_export_value/iboost_rate_threshold* (same class of field: an absolute price, not a small delta). Kept it symmetric rather than just raising the max, for V2G setups where export-side prices can be as extreme as import-side. Same currency-scale problem applies to combine_rate_threshold (was 0-5p) and export_more_solar_threshold (was 0-10p) - both raised to 0-1000, min unchanged since both are always-positive delta/tolerance values, not price caps, so negative doesn't apply there. Co-Authored-By: Claude Sonnet 5 --- apps/predbat/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/predbat/config.py b/apps/predbat/config.py index 76460b9a3..4d31d8f42 100644 --- a/apps/predbat/config.py +++ b/apps/predbat/config.py @@ -689,7 +689,7 @@ "friendly_name": "Combine Rate Threshold", "type": "input_number", "min": 0, - "max": 5.0, + "max": 1000, "step": 0.1, "unit": "p", "icon": "mdi:table-merge-cells", @@ -915,8 +915,8 @@ "name": "car_charging_plan_max_price", "friendly_name": "Car Charging Plan max price", "type": "input_number", - "min": -99, - "max": 99, + "min": -1000, + "max": 1000, "step": 1, "unit": "p", "icon": "mdi:ev-station", @@ -1117,7 +1117,7 @@ "friendly_name": "Export more solar threshold", "type": "input_number", "min": 0, - "max": 10.0, + "max": 1000, "step": 0.1, "unit": "p", "icon": "mdi:currency-usd",