The Push Button Widget is designed to control a device by toggling a specific parameter between ON and OFF states, providing a simple and interactive way to manage device operations directly from the dashboard.
The Push Button Widget allows you to control a single device parameter with a single click. It visually represents the current state (ON or OFF) of the parameter and enables real-time interaction to toggle the state. The widget features a circular button with a power icon, making it intuitive for users to control devices such as switches, relays, or other binary-state components.

To configure the Push Button Widget:

The Push Button Widget offers several customization options to tailor its appearance:
Steps to Configure:

The Push Button Widget enables real-time control of a device parameter through MQTT communication:
Parameter Requirement: The selected parameter must have a boolean value (true or false), representing the ON (true) or OFF (false) state of the device.
Control Mechanism: When the button is clicked:
The widget sends the parameter name and its new state (e.g., true for ON, false for OFF) to the MQTT topic control/v1/topic.
This command instructs the device to toggle the parameter’s state.
Response Update: The device responds with the updated state via the MQTT topic data/v1/topic.
The widget fetches this response and updates the button’s appearance to reflect the new state ( ON or OFF).
For more information on adding widgets to your dashboard, refer to the Create Dashboard page.