Updated Buttons and Switches (markdown)

Michael Ingraham 2019-07-24 08:51:38 -04:00
parent bf4bed9584
commit 5891fb404d
1 changed files with 3 additions and 1 deletions

@ -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.