{
    "title": "Texecom",
    "pluginAlias": "Texecom",
    "pluginType": "platform",
    "headerDisplay": "Official Texecom Homebridge plugin.",
    "singular": true,
    "schema": {
        "type": "object",
        "properties": {
            "name": {
                "type": "string",
                "title": "Name",
                "required": true,
                "default": "Texecom",
                "description": "You shouldn't need to change this."
            },
            "ip_address": {
                "type": "string",
                "format": "ipv4",
                "title": "IP Address"
            },
            "ip_port": {
                "type": "integer",
                "default": 10001,
                "title": "IP Port"
            },
            "serial_device": {
                "type": "string",
                "example": "/dev/ttyUSB0",
                "title": "Serial Device"
            },
            "baud_rate": {
                "type": "integer",
                "enum": [
                    9600,
                    19200,
                    38400,
                    57600,
                    115200
                ],
                "title": "Baud Rate"
            },
            "udl": {
                "type": "integer",
                "minLength": 4,
                "maxLength": 6,
                "title": "UDL"
            },
            "zones": {
                "type": "array",
                "title": "Zones",
                "items": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string",
                            "title": "Zone Name"
                        },
                        "zone_number": {
                            "type": "string",
                            "title": "Zone Number"
                        },
                        "zone_type": {
                            "type": "string",
                            "enum": [
                                "contact",
                                "motion"
                            ],
                            "title": "Zone Type"
                        },
                        "dwell": {
                            "type": "integer",
                            "minimum": 0,
                            "title": "Dwell Time"
                        }
                    },
                    "required": [
                        "name",
                        "zone_number",
                        "zone_type",
                        "dwell"
                    ]
                }
            },
            "areas": {
                "type": "array",
                "title": "Areas",
                "items": {
                    "type": "object",
                    "properties": {
                        "name": {
                            "type": "string",
                            "title": "Area Name"
                        },
                        "area_number": {
                            "type": "string",
                            "title": "Area Number"
                        },
                        "area_type": {
                            "type": "string",
                            "enum": [
                                "securitysystem"
                            ],
                            "title": "Area Type"
                        },
                        "dwell": {
                            "type": "integer",
                            "minimum": 0,
                            "title": "Dwell Time"
                        },
                        "zones": {
                            "type": "array",
                            "items": {
                                "type": "integer"
                            },
                            "title": "Zones under Area"
                        }
                    },
                    "required": [
                        "name",
                        "area_number",
                        "area_type",
                        "dwell"
                    ]
                }
            },
            "debug":{
                "type":"boolean",
                "title":"Debug",
                "default":false
            }
        },
        "required": true
    }
}