Appearance
Integration Hub (Developer)
Migrations: 0026_integrations.sql, 0027_integration_settings.sql, 0028_integration_mqtt_type.sql.
API (JWT)
GET/POST/PATCH/DELETE /api/integrationsPOST /api/integrations/preview(mapping + optional script)POST /api/integrations/:id/set-default|start|pauseGET /api/integrations/:id/eventsPOST /api/integrations/:id/downlink— ChirpStack / TTN (path uses the device’s 16-hex LoRaWAN DevEUI fromlorawan.dev_eui/integration.lorawan.dev_eui; notintegration.external_id)- Body:
deviceId,payload(hex by default;encoding: "base64"for base64), optionalfPort(integer 1–223), optionalconfirmed(ChirpStack queue + TTSdownlinks[].confirmed), optionalttnDeviceId - Strict validation: non-integer
fPort, malformed base64, and non-hex digits in hex payloads are rejected (no silent strip/convert)
- Body:
Ingest
- HTTP named / legacy type URLs (
X-Webhook-Secret) - MQTT:
IntegrationMqttBridgeServiceconnects when status=active
Settings (settings_json)
autoCreateDevicemqtt—brokerUrl,topicFilter,topicDeviceRegex, credentialsscriptTransform—{ enabled, source }sandboxed JSdownlink— ChirpStack / TTN API credentials
Rule Engine
- Node
integration_downlink→IntegrationDownlinkService.sendDownlink - Wired from
RuleEngineExecutorServicewhen ConnectivityModule is loaded
Runtime order
- Adapter normalize
- Pipeline mapping steps
- Optional script transform
- Device resolve (+ auto-create)
- Telemetry ingest → Rule Engine
Kill switch: INTEGRATIONS_MAPPING_ENABLED=false.
