Revision [5373]

This is an old revision of TasmotaRules made by ZorrUno on 2020-04-27 00:12:54.

 

Various Tasmota Rules



Rule to republish STATUS10 every 5 seconds (otherwise you can't read it over time)
rule1 on system#boot do ruletimer1 5 endon on rules#timer=1 do backlog status 10; ruletimer1 5 endon


Rule to turn an additional sonoff device on & off on press
rule2 on Power2#state do WebSend [192.168.2.71] POWER2 %value% endon


Rules for downstairs lounge switch. Turn other light switch on, and hold to turn everything off
Rule1 on button1#state=2 do WebSend [192.168.2.83,admin:sonoffviewnels] Power1 toggle endon

Rule2 on button1#state=3 do backlog WebSend [192.168.2.83,admin:sonoffviewnels] Power1 off;WebSend [192.168.2.83,admin:sonoffviewnels] Power2 off;WebSend [192.168.2.83,admin:sonoffviewnels] Power1 off; WebSend [192.168.2.83,admin:sonoffviewnels] Power2 off;WebSend [192.168.2.76,admin:sonoffviewnels] Power1 off; WebSend [192.168.2.76,admin:sonoffviewnels] Power2 off;WebSend [192.168.2.75,admin:sonoffviewnels] Power1 off  endon


Rule to increase fan speed on button press
rule2 on Switch2#state=1 do WebSend [192.168.2.103] FanSpeed + endon



Bedroom1 ifan02
rule1 off
on Fanspeed#Data=0 do backlog WebSend [192.168.2.91] power2 off; WebSend [192.168.2.91] power3 off; WebSend [192.168.2.91] power4 off endon on Fanspeed#Data=1 do WebSend [192.168.2.91] power2 on endon on Fanspeed#Data=2 do WebSend [192.168.2.91] power3 on endon on Fanspeed#Data=3 do WebSend [192.168.2.91] power4 on endon

rule 2 off
ON System#Boot DO Subscribe RoomFanspeed, stat/tasmo-ifan02-3793-bedrm1-1/fanspeed ENDON


--
CategoryMicrocontrol
CategoryHomeAutomation
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki