Skip to content

Instantly share code, notes, and snippets.

@gadget78
gadget78 / SonOff_dimmer_control.txt
Created Aug 23, 2020
Tasmota TX Dimmer control
View SonOff_dimmer_control.txt
# MASTER SWITCH
LedState 1
Setoption1 1
Setoption34 30
SwitchMode1 10
rule1
ON Switch1#state=3 DO add1 1 ENDON
ON var1#state==1 DO backlog delay 4; if (var1==1) power on; delay 2; power off; var1 0 ENDIF ENDON
View WiFi-Dimmer-Script.txt
>D
sw=0
tmp=0
cnt=0
tmr=0
hold=0
powert=0
slider=0
dim=""
shortprl=2 ;short press lo limit