The following commands and attributes are accepted as JSON payloads for the FlowMeasurement cluster.
FlowMeasurement Attributes
The following attribute topics are used to retrieve the FlowMeasurement cluster state.
FlowMeasurement/MeasuredValue Attribute
MQTT Topic Pattern:
[PREFIX]/FlowMeasurement/Attributes/MeasuredValue/Reported
[PREFIX]/FlowMeasurement/Attributes/MeasuredValue/Desired
MQTT Payload JSON Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "FlowMeasurement Cluster MeasuredValue Attribute Properties",
"type": "object",
"properties": {
"value": {
"type": "integer"
}
},
"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/+/+/FlowMeasurement/Attributes/MeasuredValue/+'
# Example output
ucl/by-unid/<UNID>/ep0/FlowMeasurement/Attributes/MeasuredValue/Desired { "value": <DESIRED_MEASURED_VALUE>}
ucl/by-unid/<UNID>/ep0/FlowMeasurement/Attributes/MeasuredValue/Reported { "value": <REPORTED_MEASURED_VALUE>}
FlowMeasurement/MinMeasuredValue Attribute
MQTT Topic Pattern:
[PREFIX]/FlowMeasurement/Attributes/MinMeasuredValue/Reported
[PREFIX]/FlowMeasurement/Attributes/MinMeasuredValue/Desired
MQTT Payload JSON Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "FlowMeasurement Cluster MinMeasuredValue Attribute Properties",
"type": "object",
"properties": {
"value": {
"type": "integer"
}
},
"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/+/+/FlowMeasurement/Attributes/MinMeasuredValue/+'
# Example output
ucl/by-unid/<UNID>/ep0/FlowMeasurement/Attributes/MinMeasuredValue/Desired { "value": <DESIRED_MIN_MEASURED_VALUE>}
ucl/by-unid/<UNID>/ep0/FlowMeasurement/Attributes/MinMeasuredValue/Reported { "value": <REPORTED_MIN_MEASURED_VALUE>}
FlowMeasurement/MaxMeasuredValue Attribute
MQTT Topic Pattern:
[PREFIX]/FlowMeasurement/Attributes/MaxMeasuredValue/Reported
[PREFIX]/FlowMeasurement/Attributes/MaxMeasuredValue/Desired
MQTT Payload JSON Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "FlowMeasurement Cluster MaxMeasuredValue Attribute Properties",
"type": "object",
"properties": {
"value": {
"type": "integer"
}
},
"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/+/+/FlowMeasurement/Attributes/MaxMeasuredValue/+'
# Example output
ucl/by-unid/<UNID>/ep0/FlowMeasurement/Attributes/MaxMeasuredValue/Desired { "value": <DESIRED_MAX_MEASURED_VALUE>}
ucl/by-unid/<UNID>/ep0/FlowMeasurement/Attributes/MaxMeasuredValue/Reported { "value": <REPORTED_MAX_MEASURED_VALUE>}
FlowMeasurement/Tolerance Attribute
MQTT Topic Pattern:
[PREFIX]/FlowMeasurement/Attributes/Tolerance/Reported
[PREFIX]/FlowMeasurement/Attributes/Tolerance/Desired
MQTT Payload JSON Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "FlowMeasurement Cluster Tolerance Attribute Properties",
"type": "object",
"properties": {
"value": {
"type": "integer"
}
},
"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/+/+/FlowMeasurement/Attributes/Tolerance/+'
# Example output
ucl/by-unid/<UNID>/ep0/FlowMeasurement/Attributes/Tolerance/Desired { "value": <DESIRED_TOLERANCE>}
ucl/by-unid/<UNID>/ep0/FlowMeasurement/Attributes/Tolerance/Reported { "value": <REPORTED_TOLERANCE>}
FlowMeasurement/ClusterRevision Attribute
MQTT Topic Pattern:
[PREFIX]/FlowMeasurement/Attributes/ClusterRevision/Reported
[PREFIX]/FlowMeasurement/Attributes/ClusterRevision/Desired
MQTT Payload JSON Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "FlowMeasurement 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>/FlowMeasurement/Attributes/ClusterRevision/+'
# Example output
ucl/by-unid/<UNID>/<EP>/FlowMeasurement/Attributes/ClusterRevision/Desired { "value": <DESIRED_CLUSTER_REVISION> }
ucl/by-unid/<UNID>/<EP>/FlowMeasurement/Attributes/ClusterRevision/Reported { "value": <REPORTED_CLUSTER_REVISION> }
FlowMeasurement Command Support
MQTT Topic Pattern:
[PREFIX]/FlowMeasurement/SupportedCommands
[PREFIX]/FlowMeasurement/SupportedGeneratedCommands
MQTT Payload JSON Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "FlowMeasurement 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 FlowMeasurement cluster under the by-unid topic space:
mosquitto_sub -t 'ucl/by-unid/<UNID>/<EP>/FlowMeasurement/SupportedCommands'
# Example output
ucl/by-unid/<UNID>/<EP>/FlowMeasurement/SupportedCommands { "value": [] }
To see supported generated commands for FlowMeasurement cluster under the by-unid topic space:
mosquitto_sub -t 'ucl/by-unid/<UNID>/<EP>/FlowMeasurement/SupportedGeneratedCommands'
# Example output
ucl/by-unid/<UNID>/<EP>/FlowMeasurement/SupportedGeneratedCommands { "value": [] }
FlowMeasurement Commands
FlowMeasurement/WriteAttributes Command
MQTT Topic Pattern:
[PREFIX]/FlowMeasurement/Commands/WriteAttributes
MQTT Payload JSON Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "FlowMeasurement Cluster WriteAttributes Command Properties",
"type": "object",
"properties": {
},
"required": [
"value"
]
}
Example Mosquitto CLI Tool Usage
To update all FlowMeasurement attributes under the by-unid topic space:
mosquitto_pub -t 'ucl/by-unid/<UNID>/<EP>/FlowMeasurement/Commands/WriteAttributes' -m '{ }'
NOTE: Specify only the list of attributes to write in this command. Unspecified attributes will not be updated.
FlowMeasurement/ForceReadAttributes Command
MQTT Topic Pattern:
[PREFIX]/FlowMeasurement/Commands/ForceReadAttributes
MQTT Payload JSON Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "FlowMeasurement 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 FlowMeasurement attributes under the by-unid topic space (by sending an empty array):
mosquitto_pub -t 'ucl/by-unid/<UNID>/<EP>/FlowMeasurement/Commands/ForceReadAttributes' -m '{ "value": [] }'
To force read one of the FlowMeasurement attributes under the by-unid topic space:
mosquitto_pub -t 'ucl/by-unid/<UNID>/<EP>/FlowMeasurement/Commands/ForceReadAttributes' -m '{ "value": ["MeasuredValue"] }'