Appearance
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
- Toggle sends SHARED
channel{N}= 0 or 1. - The card shows Desired (SHARED) and Device (CLIENT).
- Status: Sending → Awaiting device → Confirmed (or Mismatch).
- 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
