Fix X1G4Series schema to support 300 data point responses#197
Fix X1G4Series schema to support 300 data point responses#197cimeson wants to merge 1 commit intosquishykid:masterfrom
Conversation
cimeson
commented
Oct 18, 2025
- Update X1G4Series schema validation to accept both 100 and 300 data points
- Uses vol.Any to support multiple response formats similar to other inverters
- Fixes compatibility with newer X1-Boost inverters returning 300 data points
- Follows existing patterns used in x1_boost.py and other multi-format inverters
- Update X1G4Series schema validation to accept both 100 and 300 data points - Uses vol.Any to support multiple response formats similar to other inverters - Fixes compatibility with newer X1-Boost inverters returning 300 data points - Follows existing patterns used in x1_boost.py and other multi-format inverters
|
How can we get this merged in? Can confirm using a WIFI+4G firmware "ver":"1.002.14" there are 300 values {"sn":"SMJ########","ver":"1.002.14","type":18,"Data":[2417,59,5004,1464,2030,0,0,10,73,0,2,0,0,1484,0,0,0,0,0,739,0,51,3600,47,42,0,1,0,1918,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1056,0,4110,0,9261,0,0,0,113,100,3,0,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"Information":[3.600,18,"XB4A3#######",12,0.27,0.00,0.38,0.00,0.00,1,1,0]} |
|
Hi, thanks for raising this pull request. Just need to get the tests passing and then we can merge this. |