Skip to content

Switch Widget ​

Operate one or more channels on a device. The switch writes a SHARED attribute (channelN). The device confirms by writing the same key as a CLIENT attribute.

Behaviour ​

  1. Toggle sends SHARED channel{N} = 0 or 1.
  2. The card shows Desired (SHARED) and Device (CLIENT).
  3. Status: Sending → Awaiting device → Confirmed (or Mismatch).
  4. Popups: Sent after the SHARED write succeeds; Confirmed when CLIENT matches; Failed with the reason if the write fails.

On power cycle the device should request SHARED, re-apply the channel, and send CLIENT again. See Command and control.

Configuration ​

  • Alias / device
  • Items — label and channel number per switch
  • Columns, Compact, Confirm before toggle (operator dialog only — not device ack)

Defaults ​

  • One channel item, columns 1
  • Compact off

Source ​

  • SwitchWidgetConfig.tsx / SwitchWidget.tsx

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