{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "OCF", "$id": "https://smart-data-models.github.io/dataModel.OCF/DRLC/schema.json", "title": "Smart Data models - DRLC schema derived from the open connectivity foundation repository https://github.com/openconnectivityfoundation/IoTDataModels", "description": "This Resource describes any to be applied or currently being applied DRLC signal.The Property 'DRType' is the ApplianceLoadReductionType defined in Zigbee/HA Smart Energy Profile 2.0.The Property 'start' is a string containing an RFC3339 encoded start time.The Property 'duration' value is in minutes.The Property 'Override' indicates whether the consumer has overridden the request (true) or not (false).The Resource provides the current DRLC action that is being applied.A duration of 0 (zero) means that no DRLC is currently active.", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "rt": { "description": "Property. The Resource Type", "items": { "enum": [ "oic.r.energy.drlc" ], "maxLength": 64, "type": "string" }, "minItems": 1, "uniqueItems": true, "readOnly": true, "type": "array" }, "start": { "description": "Property. The start time for the application of DR", "type": "string", "format": "date-time" }, "duration": { "description": "Property. The duration of the to be applied DR type in minutes. A value of 0 means no applied DR", "type": "integer", "minimum": 0 }, "override": { "description": "Property. Whether the consumer has overriden the application of DR", "type": "boolean" }, "DRType": { "description": "Property. The to be applied demand-response type", "type": "integer" }, "drlevel": { "type": "integer", "minimum": 0, "maximum": 3, "description": "Property. Indicator of the strength of the DR response that is requested; 0-0%, 1-30%, 2-50%, 3-70%" }, "mandate": { "type": "boolean", "description": "Property. Whether overriding the DR request by the consumer is allowed" }, "n": { "type": "string", "maxLength": 64, "readOnly": true, "description": "Property. Friendly name of the Resource" }, "if": { "description": "Property. The OCF Interface set supported by this Resource", "items": { "enum": [ "oic.if.a", "oic.if.baseline" ], "type": "string" }, "minItems": 2, "uniqueItems": true, "readOnly": true, "type": "array" }, "type": { "type": "string", "enum": [ "DRLC" ], "description": "Property. NGSI entity type. It has to be DRLC" } } } ], "license": "https://github.com/openconnectivityfoundation/core/blob/e28a9e0a92e17042ba3e83661e4c0fbce8bdc4ba/LICENSE.md", "derivedFrom": "https://raw.githubusercontent.com/openconnectivityfoundation/IoTDataModels/master/DRLCResURI.swagger.json", "required": [ "DRType", "id", "type" ] }