View SonOff_dimmer_control.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>D | |
sw=0 | |
tmp=0 | |
cnt=0 | |
tmr=0 | |
hold=0 | |
powert=0 | |
slider=0 | |
dim="" | |
shortprl=2 ;short press lo limit |