mirror of https://github.com/arendst/Tasmota.git
Updated Buttons and Switches (markdown)
parent
3c32d0ffdc
commit
4a21453136
|
@ -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)
|
[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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue