MQTT Command
An MQTT command is used by the widgets in a dashboard to control devices by sending them commands over MQTT. It is the responsibility of the device to respond appropriately to the commands.
Access MQTT Commands
Section titled “Access MQTT Commands”- Go to the model editor for the desired model via the Models page.
- Click the
Commands section in the section selector.
Adding and Editing Commands
Section titled “Adding and Editing Commands”To add a command:
- Click the
Add Command button in the top left. - Specify the name of the command.
- This is what is used when searching for commands in the widget settings on a dashboard.
- Specify the topic of the command.
- This is the actual MQTT topic sent to the device.
Edit a command by pressing its
Using Commands in Dashboards
Section titled “Using Commands in Dashboards”- Open the dashboard settings by clicking the
button in the top right. - Click the
button on any pane. - Select a widget to add.
- Any widget under the Control section of the dialog for adding widgets, and some custom widgets, can send commands.
- Select a datasource for the
calculatedsetting. - Search for the desired command by name or find it in the list of signals and commands (commands are above the signals).
- Add the widget.