Building to DCH Data Export Process
Last updated
Last updated
While DCH offers multiple protocols for data export, secure MQTT over TCP port 8883 (TLS encrypted messages) is the preferred method.
All MQTT messages must be published to broker2.dataclearinghouse.org.
The topic of the MQTT messages must follow this format:
dch/<siteName>/<buildingName>/<gatewayType>/<gatewayName>
siteName: Name of the site, preferably same as what you have created on DCH.
buildingName: Name of the building, preferably same as what you have created on DCH.
gatewayType: If you are using a Tridium JACE gateway, you can set this to "tridium". Otherwise, set this to "generic".
gatewayName: Give your gateway a name.
E.g. 1: dch/MelbourneCBD/Block3/generic/MyGateway
E.g. 2: dch/SydneyCBD/Building22/tridium/SydneyB22JACE
The general structure of the point name: DATASOURCE_PREFIX-SITE_NAME.BUILDING_NAME.PARENT_NAME.POINT_NAME
E.g. 1: dsapi-cold-two-paper-MelbourneCBD.Block3.AHU_1.RA_Temp
E.g. 2: dsapi-hot-three-rock-SydneyCBD.Building22.MSSB-1.KWH_IMPORT
Since this payload has no timestamp field, the time of this measurement is recorded as the timestamp of when the payload is processed by the parser. Messages are not processed when they are received and may be queued for some time.
If the metadata field you want to send is not covered in our schema, you can add your own custom metadata field in the "tags" field.
The metadata you provide in the MQTT payloads are NOT linked to any building models. Rather, these fields are designed to inform model developers in their modelling process.
If you wish to backfill historic data for a point, use this format:
Maximum allowed size of a single payload is currently 10MB. We recommend keeping the payloads well below that amount.
Name of the points in DCH are derived from the Site and Building names you provide in the topic and also the parentName and pointName fields of the payload as described .
All MQTT payloads must be in JSON format and follow the schema as detailed . Some examples and notes are listed below.
If you want to verify your payloads are abiding by the schema, you can go to . Copy and paste on the left box, copy and paste a sample of your payload on the right box. You should see the message: "No errors found. JSON validates against the schema".
If the character is a "Special" character such as "_" or "." , it is converted as defined .