This is the root topic for this device. The {hostname} and {mac} placeholders will be replaced by the device hostname and MAC address.<br/>
- <strong><root>/relay/#/set</strong> Send a 0 or a 1 as a payload to this topic to switch it on or off. You can also send a 2 to toggle its current state. Replace # with the switch ID (starting from 0). If the board has only one switch it will be 0.<br/>
<!-- removeIf(!light)-->
<spanclass="module module-color">- <strong><root>/rgb/set</strong> Set the color using this topic, your can either send an "#RRGGBB" value or "RRR,GGG,BBB" (0-255 each).<br/></span>
<spanclass="module module-color">- <strong><root>/hsv/set</strong> Set the color using hue (0-360), saturation (0-100) and value (0-100) values, comma separated.<br/></span>
<spanclass="module module-color">- <strong><root>/brightness/set</strong> Set the brighness (0-255).<br/></span>
<spanclass="module module-color">- <strong><root>/channel/#/set</strong> Set the value for a single color channel (0-255). Replace # with the channel ID (starting from 0 and up to 4 for RGBWC lights).<br/></span>
<spanclass="module module-color">- <strong><root>/mired/set</strong> Set the temperature color in mired.<br/></span>
<!-- endRemoveIf(!light)-->
- <strong><root>/status</strong> The device will report a 1 to this topic every few minutes. Upon MQTT disconnecting this will be set to 0.<br/>
- Other values reported (depending on the build) are: <strong>firmware</strong> and <strong>version</strong>, <strong>hostname</strong>, <strong>IP</strong>, <strong>MAC</strong>, signal strenth (<strong>RSSI</strong>), <strong>uptime</strong> (in seconds), <strong>free heap</strong> and <strong>power supply</strong>.
</div>
@ -844,7 +860,9 @@
<divid="dczRelays"></div>
<!-- removeIf(!sensor)-->
<divid="dczMagnitudes"></div>
<!-- endRemoveIf(!sensor)-->
</fieldset>
</div>
@ -872,7 +890,9 @@
<divclass="pure-u-0 pure-u-lg-1-4"></div>
<divclass="pure-u-1 pure-u-lg-3-4 hint">
Home Assistant auto-discovery feature. Enable and save to add the device to your HA console.
<!-- removeIf(!light)-->
When using a colour light you might want to disable CSS style so Home Assistant can parse the color.