Skip to content

Commit

Permalink
Update Buttons-and-Switches.md
Browse files Browse the repository at this point in the history
Explicit mention of rules not working with SwitchMode 15/16.
  • Loading branch information
sfromis authored Oct 11, 2024
1 parent 57f6ecc commit c37a56d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Buttons-and-Switches.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ SwitchMode, as the name implies, applies _**ONLY**_ to GPIO configured in Tasmot
!!! tip "This mode is useful with [PIR sensors](PIR-Motion-Sensors)"

**`SwitchMode 15`**
: Send only MQTT message on switch change. This will stop the switch from controlling power outputs.
: Send only MQTT message on switch change. This will stop the switch from controlling power outputs, and you get no state values for rules.

```console
tele/tasmota/SENSOR = {"Time":"2021-01-01T00:00:00","Switch1":"OFF"}
tele/tasmota/SENSOR = {"Time":"2021-01-01T00:00:00","Switch1":"ON"}
```
**`SwitchMode 16`**
: Send only MQTT message on inverted switch change. This will stop the switch from controlling power outputs.
: Send only MQTT message on inverted switch change. This will stop the switch from controlling power outputs, and you get no state values for rules.

```console
tele/tasmota/SENSOR = {"Time":"2021-01-01T00:00:00","Switch1":"ON"}
Expand Down

0 comments on commit c37a56d

Please sign in to comment.