Switch
A toggle for boolean state. The whole tile is clickable. When one user flips it, every other open browser updates.
Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
label |
string | Switch |
Title |
description |
string | Secondary line. Shows On/Off when empty | |
icon |
string | Lucide icon in a chip that lights up when on | |
topic |
string | msg.topic of the output |
|
passthru |
boolean | false |
Forward input messages to the output |
msg.payload = true; // also accepts 1, "on", "true"Setting the state from a flow does not emit an output unless passthru is enabled, which avoids feedback loops.
Output
Section titled “Output”{ "payload": true, "topic": "pump", "_client": { "id": "c3-lq0z1" } }