sunspec 0.9.0

SunSpec 1.1 compliant library with tokio support
Documentation
{
    "group": {
        "desc": "Inverter Controls Nameplate Ratings ",
        "label": "Nameplate",
        "name": "nameplate",
        "points": [
            {
                "desc": "Model identifier",
                "label": "Model ID",
                "mandatory": "M",
                "name": "ID",
                "size": 1,
                "static": "S",
                "type": "uint16",
                "value": 120
            },
            {
                "desc": "Model length",
                "label": "Model Length",
                "mandatory": "M",
                "name": "L",
                "size": 1,
                "static": "S",
                "type": "uint16"
            },
            {
                "desc": "Type of DER device. Default value is 4 to indicate PV device.",
                "label": "DERTyp",
                "mandatory": "M",
                "name": "DERTyp",
                "size": 1,
                "symbols": [
                    {
                        "name": "PV",
                        "value": 4
                    },
                    {
                        "name": "PV_STOR",
                        "value": 82
                    }
                ],
                "type": "enum16"
            },
            {
                "desc": "Continuous power output capability of the inverter.",
                "label": "WRtg",
                "mandatory": "M",
                "name": "WRtg",
                "sf": "WRtg_SF",
                "size": 1,
                "type": "uint16",
                "units": "W"
            },
            {
                "desc": "Scale factor",
                "label": "WRtg_SF",
                "mandatory": "M",
                "name": "WRtg_SF",
                "size": 1,
                "type": "sunssf"
            },
            {
                "desc": "Continuous Volt-Ampere capability of the inverter.",
                "label": "VARtg",
                "mandatory": "M",
                "name": "VARtg",
                "sf": "VARtg_SF",
                "size": 1,
                "type": "uint16",
                "units": "VA"
            },
            {
                "desc": "Scale factor",
                "label": "VARtg_SF",
                "mandatory": "M",
                "name": "VARtg_SF",
                "size": 1,
                "type": "sunssf"
            },
            {
                "desc": "Continuous VAR capability of the inverter in quadrant 1.",
                "label": "VArRtgQ1",
                "mandatory": "M",
                "name": "VArRtgQ1",
                "sf": "VArRtg_SF",
                "size": 1,
                "type": "int16",
                "units": "var"
            },
            {
                "desc": "Continuous VAR capability of the inverter in quadrant 2.",
                "label": "VArRtgQ2",
                "mandatory": "M",
                "name": "VArRtgQ2",
                "sf": "VArRtg_SF",
                "size": 1,
                "type": "int16",
                "units": "var"
            },
            {
                "desc": "Continuous VAR capability of the inverter in quadrant 3.",
                "label": "VArRtgQ3",
                "mandatory": "M",
                "name": "VArRtgQ3",
                "sf": "VArRtg_SF",
                "size": 1,
                "type": "int16",
                "units": "var"
            },
            {
                "desc": "Continuous VAR capability of the inverter in quadrant 4.",
                "label": "VArRtgQ4",
                "mandatory": "M",
                "name": "VArRtgQ4",
                "sf": "VArRtg_SF",
                "size": 1,
                "type": "int16",
                "units": "var"
            },
            {
                "desc": "Scale factor",
                "label": "VArRtg_SF",
                "mandatory": "M",
                "name": "VArRtg_SF",
                "size": 1,
                "type": "sunssf"
            },
            {
                "desc": "Maximum RMS AC current level capability of the inverter.",
                "label": "ARtg",
                "mandatory": "M",
                "name": "ARtg",
                "sf": "ARtg_SF",
                "size": 1,
                "type": "uint16",
                "units": "A",
                "detail": "Sum of all connected phases.  Current rating under nominal voltage under nominal power factor."
            },
            {
                "desc": "Scale factor",
                "label": "ARtg_SF",
                "mandatory": "M",
                "name": "ARtg_SF",
                "size": 1,
                "type": "sunssf"
            },
            {
                "desc": "Minimum power factor capability of the inverter in quadrant 1.",
                "label": "PFRtgQ1",
                "mandatory": "M",
                "name": "PFRtgQ1",
                "sf": "PFRtg_SF",
                "size": 1,
                "type": "int16",
                "units": "cos()",
                "detail": "EEI sign convention."
            },
            {
                "desc": "Minimum power factor capability of the inverter in quadrant 2.",
                "label": "PFRtgQ2",
                "mandatory": "M",
                "name": "PFRtgQ2",
                "sf": "PFRtg_SF",
                "size": 1,
                "type": "int16",
                "units": "cos()",
                "detail": "EEI sign convention."
            },
            {
                "desc": "Minimum power factor capability of the inverter in quadrant 3.",
                "label": "PFRtgQ3",
                "mandatory": "M",
                "name": "PFRtgQ3",
                "sf": "PFRtg_SF",
                "size": 1,
                "type": "int16",
                "units": "cos()",
                "detail": "EEI sign convention."
            },
            {
                "desc": "Minimum power factor capability of the inverter in quadrant 4.",
                "label": "PFRtgQ4",
                "mandatory": "M",
                "name": "PFRtgQ4",
                "sf": "PFRtg_SF",
                "size": 1,
                "type": "int16",
                "units": "cos()",
                "detail": "EEI sign convention."
            },
            {
                "desc": "Scale factor",
                "label": "PFRtg_SF",
                "mandatory": "M",
                "name": "PFRtg_SF",
                "size": 1,
                "type": "sunssf"
            },
            {
                "desc": "Nominal energy rating of storage device.",
                "label": "WHRtg",
                "name": "WHRtg",
                "sf": "WHRtg_SF",
                "size": 1,
                "type": "uint16",
                "units": "Wh"
            },
            {
                "desc": "Scale factor",
                "label": "WHRtg_SF",
                "name": "WHRtg_SF",
                "size": 1,
                "type": "sunssf"
            },
            {
                "desc": "The usable capacity of the battery.  Maximum charge minus minimum charge from a technology capability perspective (Amp-hour capacity rating).",
                "label": "AhrRtg",
                "name": "AhrRtg",
                "sf": "AhrRtg_SF",
                "size": 1,
                "type": "uint16",
                "units": "AH"
            },
            {
                "desc": "Scale factor for amp-hour rating.",
                "label": "AhrRtg_SF",
                "name": "AhrRtg_SF",
                "size": 1,
                "type": "sunssf"
            },
            {
                "desc": "Maximum rate of energy transfer into the storage device.",
                "label": "MaxChaRte",
                "name": "MaxChaRte",
                "sf": "MaxChaRte_SF",
                "size": 1,
                "type": "uint16",
                "units": "W"
            },
            {
                "desc": "Scale factor",
                "label": "MaxChaRte_SF",
                "name": "MaxChaRte_SF",
                "size": 1,
                "type": "sunssf"
            },
            {
                "desc": "Maximum rate of energy transfer out of the storage device.",
                "label": "MaxDisChaRte",
                "name": "MaxDisChaRte",
                "sf": "MaxDisChaRte_SF",
                "size": 1,
                "type": "uint16",
                "units": "W"
            },
            {
                "desc": "Scale factor",
                "label": "MaxDisChaRte_SF",
                "name": "MaxDisChaRte_SF",
                "size": 1,
                "type": "sunssf"
            },
            {
                "desc": "Pad register.",
                "label": "Pad",
                "name": "Pad",
                "size": 1,
                "type": "pad"
            }
        ],
        "type": "group",
        "detail": "Ref 3: 8.14.3.2, Ref 4: 17"
    },
    "id": 120
}