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
Bedroom 1 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
Bedroom 1 Switches
(no changes to buttonmodes etc) -tasmo-ks811t-3680-bedrm1-2a is triple switch
tasmo-ks811t-3647-bedrm1-1a is triple switch
tasmo-ks811t-3680-bedrm1-2a
Rule1 on Power1#state do backlog WebSend [192.168.2.101] POWER1 %value%; WebSend [192.168.2.78] POWER1 %value% endon Rule2 on Power2#state do WebSend [192.168.2.78] POWER2 %value% endon
tasmo-ks811t-3647-bedrm1-1a
Rule1 on Power1#state do backlog WebSend [192.168.2.101] POWER1 %value%; WebSend [192.168.2.95] POWER1 %value% endon Rule2 on Power2#state do WebSend [192.168.2.95] POWER2 %value% endon
tasmo-ifan02-3793-bedrm1-1
Rule3 on Power1#state do backlog WebSend [192.168.2.78] POWER1 %value%; WebSend [192.168.2.95] POWER1 %value% endon
--
CategoryMicrocontrol
CategoryHomeAutomation
CategoryTasmota
CategoryTasmotaRules