Skip to content

Commit

Permalink
Create TurnOffExhaustBathroom
Browse files Browse the repository at this point in the history
  • Loading branch information
Gelezako committed Nov 7, 2020
1 parent 072e598 commit 7eb7f5f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Class Bathroom/TurnOffExhaustBathroom
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Добавить код в метод statusUpdated вытяжки
// автоматическое выключение вытяжки в ванной через 30 мин, если забыли выключить. Добавить продление по датчику газа и влажности.
if(gg("Relay11.status") == 1){
ClearTimeOut("TurnOffExhaustBathroom");
SetTimeOut("TurnOffExhaustBathroom","sg('Relay11.status',0);",1800);
say("выключаю вытяжку в ванной",2);
}

0 comments on commit 7eb7f5f

Please sign in to comment.