Texecom Event Schemas

JSON Schema Documentation

Power Monitoring Mains Status Read Payload

Payload emitted when the observer lambda intercepts a read of status/power_monitoring/mains. Captures the mains supply state at the time of the read.

$idhttps://schemas.texecom-prod.com/v2/events/payload/cloud/internal/power_monitoring/mains/status_read/v1.0.0.json
$schemahttp://json-schema.org/draft-07/schema

Properties

NameType
serialString
hardwareIdString
mainsPresentBoolean
powerSourceString

serial

Description Panel serial number extracted from the MQTT topic path (device/{serial}/...).
TypeString
Required Yes

hardwareId

Description Panel primary key in the device service DB, resolved via serial lookup (device.hardware.hardware_id).
TypeString
Required Yes
Format uuid

mainsPresent

Description true if mains supply is present (ADC >= threshold); false if absent or faulted.
TypeBoolean
Required Yes

powerSource

Description Current active power source.
TypeString
Required Yes
Enum
  • mains
  • battery

Schema

{
    "$id": "https://schemas.texecom-prod.com/v2/events/payload/cloud/internal/power_monitoring/mains/status_read/v1.0.0.json",
    "$schema": "http://json-schema.org/draft-07/schema",
    "title": "Power Monitoring Mains Status Read Payload",
    "description": "Payload emitted when the observer lambda intercepts a read of status/power_monitoring/mains. Captures the mains supply state at the time of the read.",
    "type": "object",
    "properties": {
        "serial": {
            "description": "Panel serial number extracted from the MQTT topic path (device/{serial}/...).",
            "type": "string"
        },
        "hardwareId": {
            "description": "Panel primary key in the device service DB, resolved via serial lookup (device.hardware.hardware_id).",
            "type": "string",
            "format": "uuid"
        },
        "mainsPresent": {
            "description": "true if mains supply is present (ADC >= threshold); false if absent or faulted.",
            "type": "boolean"
        },
        "powerSource": {
            "description": "Current active power source.",
            "type": "string",
            "enum": [
                "mains",
                "battery"
            ]
        }
    },
    "required": [
        "serial",
        "hardwareId",
        "mainsPresent",
        "powerSource"
    ],
    "additionalProperties": false
}