mirror of https://github.com/arendst/Tasmota.git
Updated Buttons and Switches (markdown)
parent
b18091bbec
commit
a767a85d9a
|
@ -82,14 +82,14 @@ When connecting a [momentary switch](https://en.wikipedia.org/wiki/Switch#Biased
|
||||||
|
|
||||||
## [SwitchTopic](Commands#switchtopic)
|
## [SwitchTopic](Commands#switchtopic)
|
||||||
|
|
||||||
### `SwitchTopic 0`
|
**`SwitchTopic 0`**
|
||||||
|
|
||||||
> Disable use of MQTT switch topic
|
> 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.
|
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`
|
e.g.: `stat/sonoff01/POWER ON`
|
||||||
|
|
||||||
### `SwitchTopic 1`
|
**`SwitchTopic 1`**
|
||||||
|
|
||||||
> Set MQTT switch topic to Topic
|
> 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.
|
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.
|
Just like receiving the same command from any other MQTT source.
|
||||||
|
|
||||||
### `SwitchTopic 2`
|
**`SwitchTopic 2`**
|
||||||
|
|
||||||
> Set MQTT switch topic (32 chars max)
|
> Set MQTT switch topic (32 chars max)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue