Texecom Event Schemas

JSON Schema Documentation

Power Monitoring Mains Settings Read Payload

Payload emitted when the observer lambda intercepts a GET /api/settings/power_monitoring/mains/connection. Captures the currently configured mains monitoring settings at time of read.

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

Properties

NameType
serialString
hardwareIdString
enabledBoolean
thresholdAdcInteger

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

enabled

Description Whether mains 12V connection monitoring is enabled. Maps to firmware enabled field.
TypeBoolean
Required Yes

thresholdAdc

Description ADC threshold used to determine mains supply presence. Mains present if ADC >= threshold. Maps to firmware threshold_adc (default: 7966).
TypeInteger
Required Yes

Schema

{
    "$id": "https://schemas.texecom-prod.com/v2/events/payload/cloud/internal/power_monitoring/mains/settings_read/v1.0.0.json",
    "$schema": "http://json-schema.org/draft-07/schema",
    "title": "Power Monitoring Mains Settings Read Payload",
    "description": "Payload emitted when the observer lambda intercepts a GET /api/settings/power_monitoring/mains/connection. Captures the currently configured mains monitoring settings at time of 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"
        },
        "enabled": {
            "description": "Whether mains 12V connection monitoring is enabled. Maps to firmware enabled field.",
            "type": "boolean"
        },
        "thresholdAdc": {
            "description": "ADC threshold used to determine mains supply presence. Mains present if ADC >= threshold. Maps to firmware threshold_adc (default: 7966).",
            "type": "integer"
        }
    },
    "required": [
        "serial",
        "hardwareId",
        "enabled",
        "thresholdAdc"
    ],
    "additionalProperties": false
}