mirror of https://github.com/arendst/Tasmota.git
Updated Buttons and Switches (markdown)
parent
5fa730f773
commit
1619bb8080
|
@ -50,9 +50,9 @@ To change the mode of a switch or button use the [`SwitchMode`](Commands#switchm
|
||||||
|
|
||||||
**`SwitchMode 0`**
|
**`SwitchMode 0`**
|
||||||
|
|
||||||
```Default Tasmota switch mode (0 = toggle, 1 = toggle)```
|
```Default Tasmota switch mode (toggle)```
|
||||||
|
|
||||||
Same behaviour as `SwitchMode 7`
|
Sends toggle command on switch press (closing the circuit).
|
||||||
|
|
||||||
**`SwitchMode 1`**
|
**`SwitchMode 1`**
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ When held for time set in `SetOption32` (default = 4s) sends HOLD message (Use S
|
||||||
|
|
||||||
The switch will send a toggle command when pressed and another toggle command when released.
|
The switch will send a toggle command when pressed and another toggle command when released.
|
||||||
|
|
||||||
>`SwitchMode 7` has the same behaviour as the default `SwitchMode 0`
|
>Not sure why you would use this one, but hey, its here when you need it.
|
||||||
|
|
||||||
## [SwitchTopic](Commands#switchtopic)
|
## [SwitchTopic](Commands#switchtopic)
|
||||||
SwitchTopic and ButtonTopic are almost identical in use. Read [ButtonTopic](Button-usage#ButtonTopic) for its guide.
|
SwitchTopic and ButtonTopic are almost identical in use. Read [ButtonTopic](Button-usage#ButtonTopic) for its guide.
|
||||||
|
|
Loading…
Reference in New Issue