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.
| $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 |
Properties
serial
| Description |
Panel serial number extracted from the MQTT topic path (device/{serial}/...). |
| Type | String |
| Required |
Yes |
hardwareId
| Description |
Panel primary key in the device service DB, resolved via serial lookup (device.hardware.hardware_id). |
| Type | String |
| Required |
Yes |
| Format |
uuid |
mainsPresent
| Description |
true if mains supply is present (ADC >= threshold); false if absent or faulted. |
| Type | Boolean |
| Required |
Yes |
powerSource
| Description |
Current active power source. |
| Type | String |
| Required |
Yes |
| Enum |
|
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
}