Skip to content

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 ​

  1. Press the button — command is published (set_channel_state or set_numeric_value).
  2. Popup Sent when the platform accepted the send.
  3. Popup Confirmed when the device RPC reply arrives (same requestId).
  4. 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

support@autoconnecto.in · founder@autoconnecto.in · +91 92121 00555 · app.autoconnecto.in