Thursday, November 26, 2020

power on off rules for KMC smart switch using tasmota

 

These are just my notes on getting the rules to work for me on a KMC 70011 smart switch.  The documentation is good, but I wanted to show the steps I used that helped me become familiar with the commands.

https://tasmota.github.io/docs/Commands/


power1 on for 2 sec, then turn off.

backlog Power1 on; Delay 20; Power1 off


power1 on for 10sec, run 3x, then stop  (LED wont show status!)

backlog blinkcount 3; blinkTime 100; power blink


power1 on for 13sec, run 1x, then stop

backlog blinkcount 1; pulsetime 113; power1 ON

 

power1 on for 5sec, run 1x, then stop 

backlog blinkcount 1; pulsetime 105; power1 ON

disable pulsetime

pulsetime1 0


power1 on for 5 sec, run 1x (same as above but using rules)

rule1 on Power1#state=1 do ruleTimer1 5 endon on rules#timer=1 do power1 0 endon
rule1 on
power1 on
 
 

delete the rule and turn off power1

backlog rule1 0; rule1 ";power1 off

 

power1 on for 5 sec, power off for 15 sec, run forever

rule1 on Power1#state=1 do ruleTimer1 20 endon on rules#timer=1 do power1 1 endon
rule1 on


power1 on for 5 sec, power off for 15 sec, run forever (all in one command)

backlog rule1 on Power1#state=1 do ruleTimer1 20 endon on rules#timer=1 do power1 1 endon; rule1 on; pulsetime 105; power1 ON


delete the rule1 and turn off power1

backlog rule1 0; rule1 ";power1 off

 

power1 on for 50 sec, power off for 10 sec, run forever (all in one command)

backlog rule1 on Power1#state=1 do ruleTimer1 60 endon on rules#timer=1 do power 1 endon; rule1 on; pulsetime 150; power1 ON


using internal clock: every minute, turn on for 5 seconds

rule1 on Time#Minute|1 DO Backlog pulsetime 105; power1 on ENDON
rule1 on

 

delete the rule1, and turn off power1

backlog rule1 0; rule1 ";power1 off

 

using internal clock: every minute, turn on for 50 seconds.

rule1 on Time#Minute|1 DO Backlog pulsetime 150; power1 on ENDON
rule1 on

 

delete the rule1 and turn off power1

backlog rule1 0; rule1 ";power1 off

 

using internal clock: every 5 minutes, turn on for 60 seconds.

rule1 on Time#Minute|5 DO Backlog pulsetime 160; power1 on ENDON
rule1 on


delete the rule1 and turn off power1

backlog rule1 0; rule1 ";power1 off

No comments: