Texecom Event Schemas

JSON Schema Documentation

Power Monitoring Mains Settings Write Payload

Payload emitted when the observer lambda intercepts a PUT /api/settings/power_monitoring/mains/connection. Captures the new settings values being applied to the panel.

$idhttps://schemas.texecom-prod.com/v2/events/payload/cloud/internal/power_monitoring/mains/settings_write/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 New value of enabled being written to the panel. Maps to firmware enabled field.
TypeBoolean
Required Yes

thresholdAdc

Description New value of ADC threshold being written to the panel. Maps to firmware threshold_adc.
TypeInteger
Required Yes

Schema

{
    "$id": "https://schemas.texecom-prod.com/v2/events/payload/cloud/internal/power_monitoring/mains/settings_write/v1.0.0.json",
    "$schema": "http://json-schema.org/draft-07/schema",
    "title": "Power Monitoring Mains Settings Write Payload",
    "description": "Payload emitted when the observer lambda intercepts a PUT /api/settings/power_monitoring/mains/connection. Captures the new settings values being applied to the panel.",
    "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": "New value of enabled being written to the panel. Maps to firmware enabled field.",
            "type": "boolean"
        },
        "thresholdAdc": {
            "description": "New value of ADC threshold being written to the panel. Maps to firmware threshold_adc.",
            "type": "integer"
        }
    },
    "required": [
        "serial",
        "hardwareId",
        "enabled",
        "thresholdAdc"
    ],
    "additionalProperties": false
}