I’ve flashed some Sonoff MINI2 relays with Tasmota and my intention is to control them using momentary switches. Does anyone have any experience on how to change the switching method in Tasmota? At the moment my light only stays on as long as a press the button switch in, when I release it turns off.
I’d like it so that pressing and releasing the switch toggles the light just once.
1 Like
Set your switch up as a button, and add some rules.
Look into Tasmota’s SwitchModes: Buttons and Switches - Tasmota
It seems that you need SwitchMode 4:
SwitchMode 4
Set push-button mode (
0 = TOGGLE
,1 = ON
(default))Tasmota will send a
TOGGLE
command when the button is released (opening the circuit). When pressing the button (closing the circuit) nothing will happen. Default state is ON and when pressed it’s OFF. (This trigger is known as falling-edge)
Thanks for the responses! will gives this a try…