Skip to content

Commit fa1fa87

Browse files
0xAHAclaude
andcommitted
fix: clarify scan range label to include TL-XH backup box registers (3250-3374)
The mod_extended scan group covers 3000-3374 (not just 3000-3249 as the comment said). Updated schema comment and CSV range names to reflect that 3250-3374 includes the backup box register block for TL-X/TL-XH models. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 967cb70 commit fa1fa87

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

custom_components/growatt_modbus/diagnostic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ def _get_integration_version() -> str:
6565
# MIN/MOD extended data ranges (input registers FC03)
6666
{"name": "MIN/MOD Range 3000-3124", "start": 3000, "count": 125, "group": "mod_extended"},
6767
{"name": "MOD Extended 3125-3249", "start": 3125, "count": 125, "group": "mod_extended"},
68-
{"name": "MOD Extended Input 3250-3374", "start": 3250, "count": 125, "group": "mod_extended"},
68+
{"name": "MOD/TL-XH Extended Input 3250-3374", "start": 3250, "count": 125, "group": "mod_extended"},
6969
# Legacy holding registers — writable controls present on all grid-tied/hybrid models
7070
# (TOU schedule, charge/discharge control, AC charge enable, priority mode, etc.)
7171
{"name": "Legacy Holding 0-124", "start": 0, "count": 125, "group": "legacy", "register_type": "holding"},
7272
{"name": "Legacy Holding 1000-1124","start": 1000, "count": 125, "group": "storage", "register_type": "holding"},
7373
# MOD TL3-XH holding registers (FC04) — includes TOU schedule (3038-3045) and other settings
7474
{"name": "MOD Holding 3000-3124", "start": 3000, "count": 125, "group": "mod_extended", "register_type": "holding"},
7575
{"name": "MOD Holding 3125-3249", "start": 3125, "count": 125, "group": "mod_extended", "register_type": "holding"},
76-
{"name": "MOD Extended Holding 3250-3374", "start": 3250, "count": 125, "group": "mod_extended", "register_type": "holding"},
76+
{"name": "MOD/TL-XH Extended Holding 3250-3374", "start": 3250, "count": 125, "group": "mod_extended", "register_type": "holding"},
7777
# WIT/WIS battery range
7878
{"name": "WIT/WIS Battery Range 8000-8124", "start": 8000, "count": 125, "group": "wit"},
7979
# VPP Control holding registers (30100-30499) — system/AC/battery control settings
@@ -125,7 +125,7 @@ def _get_integration_version() -> str:
125125
# Range group selection (all enabled by default)
126126
vol.Optional("scan_legacy", default=False): cv.boolean, # Base 0-249 (all models)
127127
vol.Optional("scan_storage", default=False): cv.boolean, # Storage 1000-1124 (SPH/MIN battery)
128-
vol.Optional("scan_mod_extended", default=False): cv.boolean, # MIN/MOD 3000-3249
128+
vol.Optional("scan_mod_extended", default=False): cv.boolean, # MIN/MOD/TL-XH 3000-3374 (incl. backup box regs 3250-3374)
129129
vol.Optional("scan_wit", default=False): cv.boolean, # WIT/WIS 8000-8124
130130
vol.Optional("scan_vpp_control", default=False): cv.boolean, # VPP control 30100-30499
131131
vol.Optional("scan_vpp_data", default=False): cv.boolean, # VPP data 31000-31399

0 commit comments

Comments
 (0)