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.
| $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 |
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 |
enabled
| Description |
New value of enabled being written to the panel. Maps to firmware enabled field. |
| Type | Boolean |
| Required |
Yes |
thresholdAdc
| Description |
New value of ADC threshold being written to the panel. Maps to firmware threshold_adc. |
| Type | Integer |
| 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
}