mirror of https://github.com/arendst/Tasmota.git
Small cleanup ... :)
parent
28f90dc397
commit
7330f2e9eb
|
@ -1,6 +1,6 @@
|
||||||
The standard Sonoff device has a relay to turn on/off an external device and a button to toggle the state of the relay.
|
The standard Sonoff device has a relay to turn on/off an external device and a button to toggle the state of the relay.
|
||||||
|
|
||||||
By default the confuguration for the button looks like this:
|
By default the configuration for the button looks like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
SwitchMode=0 (Set switch mode to TOGGLE)
|
SwitchMode=0 (Set switch mode to TOGGLE)
|
||||||
|
@ -14,8 +14,8 @@ Instead the relay will be controlled directly. Once the relay changes its state
|
||||||
e.g.: `stat/sonoff01/POWER ON`
|
e.g.: `stat/sonoff01/POWER ON`
|
||||||
|
|
||||||
**Important**:
|
**Important**:
|
||||||
The Sonoff-Tasmota firmware does not publich the state of the switch in any way!
|
The Sonoff-Tasmota firmware does not publish the state of the switch in any way!
|
||||||
It only send commands (directly to the corrosponding relay or via MQTT to a topic).
|
It only send commands (directly to the corresponding relay or via MQTT to a topic).
|
||||||
|
|
||||||
|
|
||||||
# SwitchMode
|
# SwitchMode
|
||||||
|
@ -28,14 +28,14 @@ You can change the mode for a switch by executing a [command](Commands) in the w
|
||||||
|
|
||||||
> Set switch mode to FOLLOW (0 = Off, 1 = On)
|
> Set switch mode to FOLLOW (0 = Off, 1 = On)
|
||||||
|
|
||||||
While pressing the button/switch (closeing the circuit) the button will send `ON` (directly or via MQTT depending on SwitchTopic) and `OFF` wehen released (open circuit).
|
While pressing the button/switch (closing the circuit) the button will send `ON` (directly or via MQTT depending on SwitchTopic) and `OFF` when released (open circuit).
|
||||||
|
|
||||||
|
|
||||||
**SwitchMode 2**
|
**SwitchMode 2**
|
||||||
|
|
||||||
> Set switch mode to inverted FOLLOW (0 = On, 1 = Off)
|
> Set switch mode to inverted FOLLOW (0 = On, 1 = Off)
|
||||||
|
|
||||||
The opposit of Mode 1.
|
The opposite of Mode 1.
|
||||||
|
|
||||||
### Conclusion
|
### Conclusion
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ If the real switch is in the "on" position, the state of the software switch is
|
||||||
|
|
||||||
> Set switch mode to PUSHBUTTON (Normally 1, 0 = toggle)
|
> Set switch mode to PUSHBUTTON (Normally 1, 0 = toggle)
|
||||||
|
|
||||||
The switch will send a command (directly or via MQTT) when the switch openes the circuit (`OFF`). When the closing the circuit (`ON`), nothing will happen.
|
The switch will send a command (directly or via MQTT) when the switch opens the circuit (`OFF`). When closing the circuit (`ON`), nothing will happen.
|
||||||
|
|
||||||
**SwitchMode 4**
|
**SwitchMode 4**
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ The switch will send a command when changing to `ON`. Nothing happens when chang
|
||||||
### Conclusion
|
### Conclusion
|
||||||
|
|
||||||
When connecting a [momentary switch](https://en.wikipedia.org/wiki/Switch#Biased_switches) (a push button) you want to use `SwitchMode=3` or `4`.
|
When connecting a [momentary switch](https://en.wikipedia.org/wiki/Switch#Biased_switches) (a push button) you want to use `SwitchMode=3` or `4`.
|
||||||
`SwitchMode=4` is the same as the default behaviour (`SwitchMode=0`) for Sonoff devices.
|
`SwitchMode=4` is the same as the default behavior (`SwitchMode=0`) for Sonoff devices.
|
||||||
|
|
||||||
# SwitchTopic
|
# SwitchTopic
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue