Texecom Event Schemas

JSON Schema Documentation

Battery Load Test Completed Payload

Payload emitted when the firmware publishes the load test result. The correlationId must match the load_test.initiated event for the same session. Early termination occurs when battery voltage drops below 11.1V during the test.

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

Properties

NameType
serialString
hardwareIdString
outcomeString
durationSecondsInteger
batteryVoltageVNumber
earlyTerminationBoolean

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

outcome

Description Test result. failed_low_voltage means battery voltage dropped below 11.1V and the test was stopped early.
TypeString
Required Yes
Enum
  • passed
  • failed_low_voltage

durationSeconds

Description Actual test duration in seconds. May be less than configured if early termination occurred.
TypeInteger
Required Yes

batteryVoltageV

Description Battery voltage measured during or at end of the test, in volts. Failure threshold: < 11.1V.
TypeNumber
Required Yes

earlyTermination

Description true if the test was stopped before the configured duration due to low voltage; false if it ran to completion.
TypeBoolean
Required Yes

Schema

{
    "$id": "https://schemas.texecom-prod.com/v2/events/payload/cloud/internal/power_monitoring/battery/load_test/completed/v1.0.0.json",
    "$schema": "http://json-schema.org/draft-07/schema",
    "title": "Battery Load Test Completed Payload",
    "description": "Payload emitted when the firmware publishes the load test result. The correlationId must match the load_test.initiated event for the same session. Early termination occurs when battery voltage drops below 11.1V during the test.",
    "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"
        },
        "outcome": {
            "description": "Test result. failed_low_voltage means battery voltage dropped below 11.1V and the test was stopped early.",
            "type": "string",
            "enum": [
                "passed",
                "failed_low_voltage"
            ]
        },
        "durationSeconds": {
            "description": "Actual test duration in seconds. May be less than configured if early termination occurred.",
            "type": "integer"
        },
        "batteryVoltageV": {
            "description": "Battery voltage measured during or at end of the test, in volts. Failure threshold: < 11.1V.",
            "type": "number"
        },
        "earlyTermination": {
            "description": "true if the test was stopped before the configured duration due to low voltage; false if it ran to completion.",
            "type": "boolean"
        }
    },
    "required": [
        "serial",
        "hardwareId",
        "outcome",
        "durationSeconds",
        "batteryVoltageV",
        "earlyTermination"
    ],
    "additionalProperties": false
}