This is the root topic for this device. The {identifier} placeholder will be replaces by the device hostname.<br/>
- <strong><root>/relay/#</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/>
- <strong><root>/led/#</strong>Send a 0 or a 1 as a payload to this topic to set the onboard LED to the given state, send a 3 to turn it back to WIFI indicator. Replace # with the LED ID (starting from 0). If the board has only one LED it will be 0.<br/>
- <strong><root>/button/#</strong>For each button in the board subscribe to this topic to know when it is pressed (payload 1) or released (payload 0).<br/>
- <strong><root>/ip</strong>The device will report to this topic its IP.<br/>
- <strong><root>/version</strong> The device will report to this topic its firmware version on boot.<br/>
- <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.
This is the root topic for this device. A trailing slash will be added if not preset. The {identifier} placeholder will be replaces by the device hostname.<br/>
- <strong><root/>relay/#</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/>
<spanclass="module module-color">- <strong><root>color</strong>The device will report the current color in #RRGGBB format to this topic. You can also set the color using this same topic.<br/></span>
- <strong><root/>led/#</strong>Send a 0 or a 1 as a payload to this topic to set the onboard LED to the given state, send a 3 to turn it back to WIFI indicator. Replace # with the LED ID (starting from 0). If the board has only one LED it will be 0.<br/>
- <strong><root/>button/#</strong>For each button in the board subscribe to this topic to know when it is pressed (payload 1) or released (payload 0).<br/>
- <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>.