Appearance
Toggle Button Widget
Binary control over two-way RPC. The platform sends a command with a requestId. The device must reply on the RPC response topic.
Behaviour
- Press the button — command is published (
set_channel_stateorset_numeric_value). - Popup Sent when the platform accepted the send.
- Popup Confirmed when the device RPC reply arrives (same
requestId). - Popup Failed with the reason if the send fails or the device does not reply before the timeout.
This is not a retained setpoint. For values that must return after reboot, use a Switch or Slider (shared attributes). See Command and control.
Configuration
- Device, channel or key mode, ON/OFF labels and values
- Retries, Retry interval, RPC timeout
- Command lock (optional telemetry gate)
- Confirm before toggle (operator dialog)
Source
- ToggleButtonWidgetConfig.tsx / ToggleButtonWidget.tsx
