Unify Framework UCL MQTT Reference 1.7.0
All Files Pages
CarbonDioxide Cluster

The following commands and attributes are accepted as JSON payloads for the CarbonDioxide cluster.



CarbonDioxide Attributes

The following attribute topics are used to retrieve the CarbonDioxide cluster state.


CarbonDioxide/MeasuredValue Attribute

MQTT Topic Pattern:

[PREFIX]/CarbonDioxide/Attributes/MeasuredValue/Reported
[PREFIX]/CarbonDioxide/Attributes/MeasuredValue/Desired

MQTT Payload JSON Schema:

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CarbonDioxide Cluster MeasuredValue Attribute Properties",
"type": "object",
"properties": {
"value": {
"type": "number"
}
},
"required": [
"value"
]
}

Example Mosquitto CLI Tool Usage

To see desired/reported value for MeasuredValue attribute under the by-unid topic space:

mosquitto_sub -t 'ucl/by-unid/+/+/CarbonDioxide/Attributes/MeasuredValue/+'
# Example output
ucl/by-unid/<UNID>/ep0/CarbonDioxide/Attributes/MeasuredValue/Desired { "value": <DESIRED_MEASURED_VALUE>}
ucl/by-unid/<UNID>/ep0/CarbonDioxide/Attributes/MeasuredValue/Reported { "value": <REPORTED_MEASURED_VALUE>}



CarbonDioxide/MinMeasuredValue Attribute

MQTT Topic Pattern:

[PREFIX]/CarbonDioxide/Attributes/MinMeasuredValue/Reported
[PREFIX]/CarbonDioxide/Attributes/MinMeasuredValue/Desired

MQTT Payload JSON Schema:

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CarbonDioxide Cluster MinMeasuredValue Attribute Properties",
"type": "object",
"properties": {
"value": {
"type": "number"
}
},
"required": [
"value"
]
}

Example Mosquitto CLI Tool Usage

To see desired/reported value for MinMeasuredValue attribute under the by-unid topic space:

mosquitto_sub -t 'ucl/by-unid/+/+/CarbonDioxide/Attributes/MinMeasuredValue/+'
# Example output
ucl/by-unid/<UNID>/ep0/CarbonDioxide/Attributes/MinMeasuredValue/Desired { "value": <DESIRED_MIN_MEASURED_VALUE>}
ucl/by-unid/<UNID>/ep0/CarbonDioxide/Attributes/MinMeasuredValue/Reported { "value": <REPORTED_MIN_MEASURED_VALUE>}



CarbonDioxide/MaxMeasuredValue Attribute

MQTT Topic Pattern:

[PREFIX]/CarbonDioxide/Attributes/MaxMeasuredValue/Reported
[PREFIX]/CarbonDioxide/Attributes/MaxMeasuredValue/Desired

MQTT Payload JSON Schema:

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CarbonDioxide Cluster MaxMeasuredValue Attribute Properties",
"type": "object",
"properties": {
"value": {
"type": "number"
}
},
"required": [
"value"
]
}

Example Mosquitto CLI Tool Usage

To see desired/reported value for MaxMeasuredValue attribute under the by-unid topic space:

mosquitto_sub -t 'ucl/by-unid/+/+/CarbonDioxide/Attributes/MaxMeasuredValue/+'
# Example output
ucl/by-unid/<UNID>/ep0/CarbonDioxide/Attributes/MaxMeasuredValue/Desired { "value": <DESIRED_MAX_MEASURED_VALUE>}
ucl/by-unid/<UNID>/ep0/CarbonDioxide/Attributes/MaxMeasuredValue/Reported { "value": <REPORTED_MAX_MEASURED_VALUE>}



CarbonDioxide/Tolerance Attribute

MQTT Topic Pattern:

[PREFIX]/CarbonDioxide/Attributes/Tolerance/Reported
[PREFIX]/CarbonDioxide/Attributes/Tolerance/Desired

MQTT Payload JSON Schema:

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CarbonDioxide Cluster Tolerance Attribute Properties",
"type": "object",
"properties": {
"value": {
"type": "number"
}
},
"required": [
"value"
]
}

Example Mosquitto CLI Tool Usage

To see desired/reported value for Tolerance attribute under the by-unid topic space:

mosquitto_sub -t 'ucl/by-unid/+/+/CarbonDioxide/Attributes/Tolerance/+'
# Example output
ucl/by-unid/<UNID>/ep0/CarbonDioxide/Attributes/Tolerance/Desired { "value": <DESIRED_TOLERANCE>}
ucl/by-unid/<UNID>/ep0/CarbonDioxide/Attributes/Tolerance/Reported { "value": <REPORTED_TOLERANCE>}



CarbonDioxide/ClusterRevision Attribute

MQTT Topic Pattern:

[PREFIX]/CarbonDioxide/Attributes/ClusterRevision/Reported
[PREFIX]/CarbonDioxide/Attributes/ClusterRevision/Desired

MQTT Payload JSON Schema:

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CarbonDioxide Cluster ClusterRevision Attribute Properties",
"type": "object",
"properties": {
"value": {
"type": "integer"
}
},
"required": [
"value"
]
}

Example Mosquitto CLI Tool Usage

To see desired/reported value for ClusterRevision attribute under the by-unid topic space:

mosquitto_sub -t 'ucl/by-unid/<UNID>/<EP>/CarbonDioxide/Attributes/ClusterRevision/+'
# Example output
ucl/by-unid/<UNID>/<EP>/CarbonDioxide/Attributes/ClusterRevision/Desired { "value": <DESIRED_CLUSTER_REVISION> }
ucl/by-unid/<UNID>/<EP>/CarbonDioxide/Attributes/ClusterRevision/Reported { "value": <REPORTED_CLUSTER_REVISION> }



CarbonDioxide Command Support

MQTT Topic Pattern:

[PREFIX]/CarbonDioxide/SupportedCommands
[PREFIX]/CarbonDioxide/SupportedGeneratedCommands

MQTT Payload JSON Schema:

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CarbonDioxide Command Support Properties",
"type": "object",
"properties": {
"value": {
"type": "array",
"items" : {
"type": "string",
"enum": [
]
}
}
}
},
"required": [
"value"
]
}

Example Mosquitto CLI Tool Usage

To see supported commands for CarbonDioxide cluster under the by-unid topic space:

mosquitto_sub -t 'ucl/by-unid/<UNID>/<EP>/CarbonDioxide/SupportedCommands'
# Example output
ucl/by-unid/<UNID>/<EP>/CarbonDioxide/SupportedCommands { "value": [] }

To see supported generated commands for CarbonDioxide cluster under the by-unid topic space:

mosquitto_sub -t 'ucl/by-unid/<UNID>/<EP>/CarbonDioxide/SupportedGeneratedCommands'
# Example output
ucl/by-unid/<UNID>/<EP>/CarbonDioxide/SupportedGeneratedCommands { "value": [] }



CarbonDioxide Commands



CarbonDioxide/WriteAttributes Command

MQTT Topic Pattern:

[PREFIX]/CarbonDioxide/Commands/WriteAttributes

MQTT Payload JSON Schema:

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CarbonDioxide Cluster WriteAttributes Command Properties",
"type": "object",
"properties": {
},
"required": [
"value"
]
}

Example Mosquitto CLI Tool Usage

To update all CarbonDioxide attributes under the by-unid topic space:

mosquitto_pub -t 'ucl/by-unid/<UNID>/<EP>/CarbonDioxide/Commands/WriteAttributes' -m '{ }'

‍NOTE: Specify only the list of attributes to write in this command. Unspecified attributes will not be updated.



CarbonDioxide/ForceReadAttributes Command

MQTT Topic Pattern:

[PREFIX]/CarbonDioxide/Commands/ForceReadAttributes

MQTT Payload JSON Schema:

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CarbonDioxide Cluster ForceReadAttributes Command Properties",
"type": "object",
"properties": {
"value": {
"type": "array"
"items": {
"type": "string",
"enum": [
"MeasuredValue",
"MinMeasuredValue",
"MaxMeasuredValue",
"Tolerance"
]
}
}
},
"required": [
"value"
]
}

Example Mosquitto CLI Tool Usage

To force read all CarbonDioxide attributes under the by-unid topic space (by sending an empty array):

mosquitto_pub -t 'ucl/by-unid/<UNID>/<EP>/CarbonDioxide/Commands/ForceReadAttributes' -m '{ "value": [] }'

To force read one of the CarbonDioxide attributes under the by-unid topic space:

mosquitto_pub -t 'ucl/by-unid/<UNID>/<EP>/CarbonDioxide/Commands/ForceReadAttributes' -m '{ "value": ["MeasuredValue"] }'