Updated Buttons and Switches (markdown)

Michael Ingraham 2019-02-24 10:57:57 -05:00
parent b18091bbec
commit a767a85d9a
1 changed files with 3 additions and 3 deletions

@ -82,14 +82,14 @@ When connecting a [momentary switch](https://en.wikipedia.org/wiki/Switch#Biased
## [SwitchTopic](Commands#switchtopic)
### `SwitchTopic 0`
**`SwitchTopic 0`**
> Disable use of MQTT switch topic
No MQTT message will be published on account of the new switch state. The message you see in MQTT is the new state of the relay that gets changed, like explained above.
e.g.: `stat/sonoff01/POWER ON`
### `SwitchTopic 1`
**`SwitchTopic 1`**
> Set MQTT switch topic to Topic
@ -99,7 +99,7 @@ e.g.: `cmnd/sonoff01/POWER ON` (Notice the `cmnd` instead of the `stat` at the b
This command will be received by the device itself and the relay will be set to the defined state.
Just like receiving the same command from any other MQTT source.
### `SwitchTopic 2`
**`SwitchTopic 2`**
> Set MQTT switch topic (32 chars max)