{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "Unitary Cooling Air-Conditioning Equipment",
    "description": "Schema for ASHRAE 205 annex RS0002: Unitary Cooling Air-Conditioning Equipment",
    "definitions": {
        "FanPosition": {
            "type": "string",
            "enum": [
                "BLOW_THROUGH",
                "DRAW_THROUGH"
            ],
            "enum_text": [
                "Blow Through",
                "Draw Through"
            ],
            "descriptions": [
                "Fan is placed upstream of the indoor coil",
                "Fan is placed downstream of the indoor coil"
            ]
        },
        "AHRI210240TestStandardYear": {
            "type": "string",
            "enum": [
                "IP_2008",
                "IP_2017",
                "IP_2023"
            ],
            "enum_text": [
                "2008",
                "2017",
                "2023"
            ],
            "descriptions": [
                "Ratings defined using IP unit version of the standard, 2008 edition.[@AHRI2102008]",
                "Ratings defined using IP unit version of the standard, 2017 edition.[@AHRI2102017]",
                "Ratings defined using IP unit version of the standard, 2023 edition.[@AHRI2102023]"
            ]
        },
        "AHRI210240CompressorStagingType": {
            "type": "string",
            "enum": [
                "SINGLE_STAGE",
                "TWO_STAGE",
                "VARIABLE_STAGE"
            ],
            "enum_text": [
                "Single Stage",
                "Two-Stage",
                "Variable Stage"
            ],
            "descriptions": [
                "Single, fixed capacity compressor",
                "Compressor or group of compressors operating with only two stages of capacity",
                "Variable speed compressor or compressor or group of compressors with three or more stages of capacity"
            ]
        },
        "AHRI340360TestStandardYear": {
            "type": "string",
            "enum": [
                "IP_2007",
                "IP_2015",
                "IP_2019",
                "IP_2022"
            ],
            "enum_text": [
                "2007",
                "2015",
                "2019",
                "2022"
            ],
            "descriptions": [
                "Ratings defined using IP unit version of the standard, 2007 edition.[@AHRI3402007]",
                "Ratings defined using IP unit version of the standard, 2015 edition.[@AHRI3402015]",
                "Ratings defined using IP unit version of the standard, 2019 edition.[@AHRI3402019]",
                "Ratings defined using IP unit version of the standard, 2022 edition.[@AHRI3402022]"
            ]
        },
        "AHRI340360CapacityControlType": {
            "type": "string",
            "enum": [
                "FIXED_CAPACITY",
                "STAGED_CAPACITY",
                "PROPORTIONAL_CAPACITY"
            ],
            "enum_text": [
                "Fixed Capacity",
                "Staged Capacity",
                "Proportional Capacity"
            ],
            "descriptions": [
                "Limited to a single stage of refrigeration capacity",
                "Limited to multiple fixed or discrete stages of refrigeration capacity",
                "Compressor capacity can be modulated continuously or in steps not more than 5% of the rated capacity"
            ]
        },
        "RS0002": {
            "type": "object",
            "properties": {
                "metadata": {
                    "description": "Metadata data group",
                    "$ref": "ASHRAE205.schema.json#/definitions/Metadata",
                    "requiredText": "True",
                    "constraintsText": "schema=RS0002"
                },
                "description": {
                    "description": "Data group describing product and rating information",
                    "$ref": "RS0002.schema.json#/definitions/Description"
                },
                "performance": {
                    "description": "Data group containing performance information",
                    "$ref": "RS0002.schema.json#/definitions/Performance",
                    "requiredText": "True"
                }
            },
            "required": [
                "metadata",
                "performance"
            ],
            "additionalProperties": false
        },
        "Description": {
            "type": "object",
            "properties": {
                "product_information": {
                    "description": "Data group describing product information",
                    "$ref": "RS0002.schema.json#/definitions/ProductInformation"
                },
                "rating_ahri_210_240": {
                    "description": "Data group containing information relevant to products rated under AHRI 210/240",
                    "$ref": "RS0002.schema.json#/definitions/RatingAHRI210240"
                },
                "rating_ahri_340_360": {
                    "description": "Data group containing information relevant to products rated under AHRI 340/360",
                    "$ref": "RS0002.schema.json#/definitions/RatingAHRI340360"
                }
            },
            "additionalProperties": false
        },
        "ProductInformation": {
            "type": "object",
            "properties": {
                "manufacturer": {
                    "description": "Package manufacturer name",
                    "type": "string"
                },
                "model_number": {
                    "description": "Package model number",
                    "$ref": "ASHRAE205.schema.json#/definitions/Pattern",
                    "notes": "Pattern shall match all model numbers that can be represented by the representation"
                }
            },
            "additionalProperties": false
        },
        "RatingAHRI210240": {
            "type": "object",
            "properties": {
                "certified_reference_number": {
                    "description": "AHRI certified reference number",
                    "type": "string"
                },
                "test_standard_year": {
                    "description": "Year of the AHRI test standard",
                    "$ref": "RS0002.schema.json#/definitions/AHRI210240TestStandardYear"
                },
                "rating_source": {
                    "description": "Source of this rating data",
                    "type": "string",
                    "notes": "Used by data publisher to document methods (e.g., software and version) used to generate rating data"
                },
                "staging_type": {
                    "description": "Type of compressor staging",
                    "$ref": "RS0002.schema.json#/definitions/AHRI210240CompressorStagingType"
                },
                "seer": {
                    "description": "Seasonal Energy Efficiency Ratio",
                    "type": "number",
                    "exclusiveMinimum": 0.0,
                    "units": "Btu/W-h",
                    "notes": "Used for versions of the test standard up through 2017",
                    "constraintsText": ">0.0"
                },
                "seer2": {
                    "description": "Seasonal Energy Efficiency Ratio",
                    "type": "number",
                    "exclusiveMinimum": 0.0,
                    "units": "Btu/W-h",
                    "notes": "Used for versions of the test standard from 2023",
                    "constraintsText": ">0.0"
                },
                "eer": {
                    "description": "Full stage Energy Efficiency Ratio (at 'A' operating conditions)",
                    "type": "number",
                    "exclusiveMinimum": 0.0,
                    "units": "Btu/W-h",
                    "notes": "Used for versions of the test standard up through 2017",
                    "constraintsText": ">0.0"
                },
                "eer2": {
                    "description": "Full stage Energy Efficiency Ratio (at 'A' operating conditions)",
                    "type": "number",
                    "exclusiveMinimum": 0.0,
                    "units": "Btu/W-h",
                    "notes": "Used for versions of the test standard from 2023",
                    "constraintsText": ">0.0"
                },
                "cooling_capacity": {
                    "description": "Full stage net total cooling capacity (at 'A' operating conditions)",
                    "type": "number",
                    "minimum": 0.0,
                    "units": "Btu/h",
                    "notes": "At high stage for multi-stage equipment",
                    "constraintsText": ">=0.0"
                }
            },
            "additionalProperties": false
        },
        "RatingAHRI340360": {
            "type": "object",
            "properties": {
                "certified_reference_number": {
                    "description": "AHRI Certified Reference Number",
                    "type": "string"
                },
                "test_standard_year": {
                    "description": "Name and version of the AHRI test standard",
                    "$ref": "RS0002.schema.json#/definitions/AHRI340360TestStandardYear"
                },
                "rating_source": {
                    "description": "Source of this rating data",
                    "type": "string",
                    "notes": "Used by data publisher to document methods (e.g., software and version) used to generate rating data"
                },
                "capacity_control_type": {
                    "description": "Type of capacity control",
                    "$ref": "RS0002.schema.json#/definitions/AHRI340360CapacityControlType"
                },
                "ieer": {
                    "description": "Integrated Energy Efficiency Ratio",
                    "type": "number",
                    "exclusiveMinimum": 0.0,
                    "units": "Btu/W-h",
                    "constraintsText": ">0.0"
                },
                "eer": {
                    "description": "Energy Efficiency Ratio at Standard Rating Conditions",
                    "type": "number",
                    "exclusiveMinimum": 0.0,
                    "units": "Btu/W-h",
                    "constraintsText": ">0.0"
                },
                "cooling_capacity": {
                    "description": "Net total cooling capacity at Standard Rating Conditions",
                    "type": "number",
                    "minimum": 0.0,
                    "units": "Btu/h",
                    "constraintsText": ">=0.0"
                }
            },
            "additionalProperties": false
        },
        "Performance": {
            "type": "object",
            "properties": {
                "standby_power": {
                    "description": "Continuous unit power draw regardless of fan or DX system operation",
                    "type": "number",
                    "minimum": 0.0,
                    "units": "W",
                    "scalable": true,
                    "notes": "Includes on-board controls and other power not included in the fan or dx system representations",
                    "requiredText": "True",
                    "constraintsText": ">=0.0"
                },
                "indoor_fan_representation": {
                    "description": "The corresponding Standard 205 fan assembly representation",
                    "$ref": "RS0003.schema.json#/definitions/RS0003",
                    "notes": "Required if the indoor fan is packaged with the unitary equipment"
                },
                "fan_position": {
                    "description": "Position of the fan relative to the cooling coil",
                    "$ref": "RS0002.schema.json#/definitions/FanPosition",
                    "requiredText": "if indoor_fan_representation"
                },
                "dx_system_representation": {
                    "description": "The corresponding Standard 205 direct expansion system representation",
                    "$ref": "RS0004.schema.json#/definitions/RS0004",
                    "requiredText": "True"
                },
                "scaling": {
                    "description": "Specifies the range the performance data can be scaled to represent different capacity equipment",
                    "$ref": "ASHRAE205.schema.json#/definitions/Scaling",
                    "notes": "If not present, scaling of the performance data is not allowed"
                }
            },
            "required": [
                "standby_power",
                "dx_system_representation"
            ],
            "dependencies": {
                "indoor_fan_representation": [
                    "fan_position"
                ]
            },
            "additionalProperties": false
        }
    },
    "version": "2.0.0",
    "$ref": "RS0002.schema.json#/definitions/RS0002"
}