mirror of https://github.com/arendst/Tasmota.git
Updated Buttons and Switches (markdown)
parent
bf4bed9584
commit
5891fb404d
|
@ -8,7 +8,7 @@ Additional buttons and switches can be [wired](Expanding-Sonoffs#connect-switch)
|
|||
It only sends commands directly to the corresponding relay or to an MQTT topic.
|
||||
|
||||
## Button vs. Switch
|
||||
A button (also called a push-button) is a momentary or non-latching switch which causes a temporary change in the state of an electrical circuit only while the switch is pressed. An automatic mechanism (i.e. a spring) returns the switch to its default position immediately afterwards, restoring the initial circuit condition.
|
||||
A button (also called a push-button) is a momentary or non-latching switch which causes a temporary change in the state of an electrical circuit only while the switch is pressed. An automatic mechanism (i.e. a spring) returns the switch to its default position immediately afterwards, restoring the initial circuit condition.
|
||||
|
||||
A switch (more precisely a latching switch), when activated by the user, remains in that state until activated again.
|
||||
Learn more about buttons and switches in [this video](https://www.youtube.com/watch?v=jNvCQVrEpDQ).
|
||||
|
@ -20,6 +20,8 @@ Tasmota `Button` is normally the button supplied on the device. In most cases it
|
|||
|
||||
By default a button toggles the corresponding relay. Every time the button gets pressed the relay changes `Power` state (ON or OFF).
|
||||
|
||||
A push-to-make button should use a `Button<x>` component while a push-to-break button should use `Button<x>i` (i.e., inverted).
|
||||
|
||||
Besides toggling the `Power` state, a button is also used to activate [multi press button functions](Button-usage#multi-press-functions).
|
||||
|
||||
See [Button-usage](Button-usage) on a detailed multi press function list, ButtonTopic options and changing default Button functionality.
|
||||
|
|
Loading…
Reference in New Issue