Skip to content

Instantly share code, notes, and snippets.

@breyer
Last active December 31, 2019 12:08
Show Gist options
  • Save breyer/ffecaa13e3fe3eceb0d7e2ff63510bf8 to your computer and use it in GitHub Desktop.
Save breyer/ffecaa13e3fe3eceb0d7e2ff63510bf8 to your computer and use it in GitHub Desktop.
Tasmota Fenster Sonoff Dual Regeln / Tasmota Window Sonoff Dual Rules
# if Humidity is higher than 65, than POWER OFF everything, set POWER1 ON, open also front window, wait for 60 seconds until the window is opened, switch off power in the back and front
# if Humidity is lower than 59, than POWER OFF everything, set POWER2 ON, close also the windows in the back, wait for 60 seconds until the window is closed
rule1 on AM2301#Humidity>65 do backlog POWER1 OFF; POWER2 OFF; POWER1 ON; publish cmnd/Dachboden_vorne/POWER1 OFF; publish cmnd/Dachboden_vorne/POWER2 OFF; publish cmnd/Dachboden_vorne/POWER2 ON ; delay 600; POWER1 OFF; publish cmnd/Dachboden_vorne/POWER2 OFF endon on AM2301#Humidity<59 do backlog POWER1 OFF; POWER2 OFF; POWER2 ON; delay 600; publish cmnd/Dachboden_vorne/POWER1 OFF; publish cmnd/Dachboden_vorne/POWER2 OFF; publish cmnd/Dachboden_vorne/POWER1 ON; POWER1 OFF endon
# Enable Rule 1
rule1 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment