Open kenny-peak-energy opened 2 days ago
The SoC field is marked as mandatory in the JSON model:
{
"desc": "State of charge, expressed as a percentage.",
"label": "State of Charge",
"mandatory": "M",
"name": "SoC",
"sf": "SoC_SF",
"size": 1,
"type": "uint16",
"units": "%WHRtg"
},
I just checked the SMDX (XML) model file and it's been mandatory ever since:
<point id="SoC" offset="9" type="uint16" sf="SoC_SF" units="%WHRtg" mandatory="true" />
Just to be sure I also checked in the SunSpec_Information_Model_Referenc_20211209.xls
file:
Unless the spec is wrong this really should be a u16
and not an Option<u16>
.
I just opened a new issue about parsing invalid model data:
Is this maybe what you were looking for?
Per my comment on the file. I believe this should be an
Option<u16>
.