Skip to content

Instantly share code, notes, and snippets.

@ccaum
Last active March 24, 2024 17:03
Show Gist options
  • Save ccaum/5ab72a035a7a8b8cf3155c46b2d67654 to your computer and use it in GitHub Desktop.
Save ccaum/5ab72a035a7a8b8cf3155c46b2d67654 to your computer and use it in GitHub Desktop.
This Tasmota rule will automatically turn on the switch if the humidity rises more than 65% and stay on a minimum of 20 minutes.
backlog switchmode 1; poweronstate 0; TelePeriod 10;
Rule1
on tele-SI7021#humidity>60 do backlog RuleTimer1 1200; power 1 endon
on power1#state do RuleTimer1 1200 endon
on Rules#Timer=1 do backlog RuleTimer1 0; power 0 endon
Rule1 1
@pgk83
Copy link

pgk83 commented Jul 3, 2023

Hey Carl, Where can i add this rule? Possible to paste to the ESP32 Tasmota Console and run like a code or i can upload like a file and add the rule to the booting proccess? Can i add a line like max time to run some electric motor doesn't like the 0-24 working. Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment