Broker Address
Port
Password
Client ID When left blank, the firmware will generate a Client ID based on the MAC address of the chip. The following placeholders are also supported: {hostname}, {mac}
Keep Alive (seconds)
Device settings Root Topic This is the root topic for this device. The following placeholders can be used: {hostname} and {mac} to dynamically set the value to the device hostname and MAC address respectively.- <root>/relay/#/set 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. - <root>/pulse/#/set Toggles the switch # and toggles it back after the specified time. Time is expected as TIME[<UNIT>].
Without the unit, time is interpreted as a number of seconds (floating point). Unit can either be h
for hours, m
for seconds and s
for seconds. Multiple time and unit pairs are allowed, for example 5h4m3s
. - <root>/cmd/set Send a command-line string to be executed. Multiple commands can be separated with \r\n
- <root>/rgb/set Set the color using this topic, your can either send an "#RRGGBB" value or "RRR,GGG,BBB" (0-255 each). - <root>/hsv/set Set the color using hue (0-360), saturation (0-100) and value (0-100) values, comma separated. - <root>/brightness/set Set the brighness (0-255). - <root>/channel/#/set 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). - <root>/mired/set Set the temperature color in mired. - <root>/status The device will report a 1 to this topic every few minutes. When MQTT broker detects that we disconnected, it will be set to 0. - Other values reported depend on the build options or the heartbeat settings (for example, firmware , version , hostname , IP , MAC , signal strenth (RSSI ), uptime (in seconds), free heap and etc.)
Default QoS 0: At most once 1: At least once 2: Exactly once Level of assurance for delivery of the outgoing messages. Notice that messages are not (currently) cached on the device, QoS levels >0 only guarantee delivery after the broker receives the message.
JSON Topic name JSON message will be sent to <root>/<name> topic (data by default).