On Wed, 22 Mar 2017, Tobias wrote:
> GPIO14 is set up with 09 Switch1
>
> #define SWITCH_MODE PUSHBUTTON // [SwitchMode]
> TOGGLE, FOLLOW, FOLLOW_INV, PUSHBUTTON or PUSHBUTTON_INV (the wall switch
> state)
>
> 13:32:14 CMND: Switchmode1
> 13:32:14 MQTT: stat/sonoff/RESULT = {"SwitchMode1":1}
> 13:32:30 MQTT: stat/sonoff/RESULT = {"POWER":"OFF"}
> 13:32:30 MQTT: stat/sonoff/POWER = OFF
> 13:32:30 MQTT: stat/sonoff/RESULT = {"POWER":"ON"}
> 13:32:30 MQTT: stat/sonoff/POWER = ON
>
> AS you can see, when I push my impulse button, it goes back to ON as soon
> as the pulse is gone.
working as designed
https://github.com/arendst/Sonoff-Tasmota/wiki/Commands
SwitchMode<x> | | Show current external switch mode
SwitchMode<x> | 0 | (default) Set switch mode to TOGGLE
SwitchMode<x> | 1 | Set switch mode to FOLLOW (0 = Off, 1 = On)
SwitchMode<x> | 2 | Set switch mode to inverted FOLLOW (0 = On, 1
= Off)
SwitchMode<x> | 3 | Set switch mode to PUSHBUTTON (Normally 1, 0 =
toggle)
SwitchMode<x> | 4 | Set switch mode to inverted PUSHBUTTON
(Normally 0, 1 = toggle)
switchmode1 is follow, when the button is down, it's on, when it's up it's off
(for a normally open momentary switch)
try changing switchmode1 to one of the other values.