Updated Buttons and Switches (markdown)

Casper 2018-12-23 17:19:29 +01:00
parent 3c32d0ffdc
commit 4a21453136
1 changed files with 12 additions and 0 deletions

@ -126,3 +126,15 @@ While `SwitchTopic=2` sends a command with a custom topic via MQTT. This will no
[Examples with Rules](https://github.com/arendst/Sonoff-Tasmota/wiki/Rules#16-using-an-external-button-with-single-press---double-press-and-hold)
### MQTT broker not available
When using `SwitchTopic=2` and the MQTT broker is not available, Tasmota falls back using `SwitchTopic=0`.
To prevent this, a rule like the following can be set:
```
rule1
rule1 on switch1#state=1 do publish YOUR-CUSTOM-SWITCH-TOPIC ON endon
rule1 on
```