{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Fibaro Home Center Room JSON Schema",
    "name": "room",
    "type": "object",
    "properties": {
        "id": {
            "description": "Identifier for the room",
            "type": "integer",
            "minimum": 0
        },
        "name": {
            "description": "Name for the room",
            "type": "string",
            "maxLength": 20
        },
        "sectionID": {
            "description": "Identifier for section room belongs to",
            "type": "integer",
            "minimum": 0
        },
        "icon": {
            "description": "Icon name defined",
            "type": "string",
            "maxLength": 20
        },
        "defaultSensors": {
            "description": "Room default sensors",
            "type": "object",
            "properties": {
                "temperature": {
                    "description": "Default temperature sensor",
                    "type": "integer",
                    "minimum": 0
                },
                "humidity": {
                    "description": "Default humidity sensor",
                    "type": "integer",
                    "minimum": 0
                },
                "light": {
                    "description": "Default light sensor",
                    "type": "integer",
                    "minimum": 0
                }
            }
        },
        "defaultThermostat": {
            "description": "Default thermostat",
            "type": "integer",
            "minimum": 0
        },
        "created": {
            "description": "Room created timestamp",
            "type": "integer",
            "minimum": 0
        },
        "modified": {
            "description": "Room modified timestamp",
            "type": "integer",
            "minimum": 0
        },
        "sortOrder": {
            "description": "Sort order when displayed in GUI",
            "type": "integer",
            "minimum": 0
        }
    },
    "required": [
        "name",
        "sectionID"
    ],
    "additionalProperties": false
}