If you don’t want to compile with the IF logic
On stateA>10 do backlog var1 1; power1 %var2% endon
On stateA<=10 do backlog var1 0; power1 0 endon
On stateB<5 do backlog var2 1; power1 %var1% endon
On stateB>=5 do backlog var2 0; power1 0 endon
You could also use events
Sent from Mail for Windows 10
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/f4b8cc86-c122-4176-9c9e-fa2f880116a4n%40googlegroups.com.
Watch for your ‘off’ logic - with the rules you can put some ‘hysteresis’ into the system to stop the system ‘bouncing’ – not as easy with IF... AND
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/c1aa283d-9f9b-4f28-82a3-d5303affcc66n%40googlegroups.com.