Skip to content

Instantly share code, notes, and snippets.

@guntiss
Last active October 27, 2021 18:44
Show Gist options
  • Save guntiss/4d8f4118090bd9230a5d5679ae209a83 to your computer and use it in GitHub Desktop.
Save guntiss/4d8f4118090bd9230a5d5679ae209a83 to your computer and use it in GitHub Desktop.
Tasmota Timer for electric Airwick air freshener

This timer is used for Airwick electric air freshener. It starts working at 8:30 every day, powers on for 15min then powers off for 30min and repeats until 22:00 in evening.

Auto off after 15min

Rule1 on Power1#State=1 do backlog PowerOnState 3; PulseTime 900; endon
Rule1 1

Auto on after 30min

Rule2 on Power1#State=0 do backlog PowerOnState 5; PulseTime 1800; endon
Rule2 1

Enable in Morning

Timer1 {"Enable":1,"Mode":0,"Time":"08:30","Days":"1111111","Repeat":1,"Action":3}

Disable in Evening

Timer2 {"Enable":1,"Mode":0,"Time":"22:00","Days":"1111111","Repeat":1,"Action":3}

Morning/evening trigger to enable/disable "auto on" rule

Rule3 ON Clock#Timer=1 DO Backlog Rule2 1; Power1 1; endon ON Clock#Timer=2 DO Backlog Rule2 0; Power1 0; ENDON
Rule3 1
Timers 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment