{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Fibaro Home Center Event JSON Schema",
    "name": "event",
    "type": "object",
    "properties": {
        "id": {
            "description": "Event ID",
            "type": "integer"
        },
        "type": {
            "description": "Event Type",
            "enum": [
                "DEVICE_EVENT"
            ]
        },
        "timestamp": {
            "description": "Event timestamp epoch",
            "type": "integer"
        },
        "deviceID": {
            "description": "Device ID",
            "type": "integer"
        },
        "deviceType": {
            "description": "Device Type",
            "type": "string",
            "maxLength": 20
        },
        "propertyName": {
            "description": "Updated property name",
            "type": "string",
            "maxLength": 20
        },
        "oldValue": {
            "description": "Old value",
            "type": "number"
        },
        "newValue": {
            "description": "New value",
            "type": "number"
        }
    },
    "additionalProperties": false
}