wc: sterowanie wiatrakiem (wyłączanie na noc)

This commit is contained in:
root
2018-12-09 18:52:55 +01:00
parent 56b311c559
commit 46ede33359
4 changed files with 39 additions and 3 deletions

View File

@@ -24,3 +24,28 @@ then
end
rule "Wyłączaj wiatrak na noc"
when
Time cron "0 0 22 * * ?"
then
/* logInfo("Vacancy", "state {}", sHolidayVacancy.state)
if (sHolidayVacancy.state == ON) {
return;
}
*/
sSONOFF07.sendCommand(OFF)
end
rule "Włączaj wiatrak rano "
when
Time cron "0 30 6 * * ?"
then
/* logInfo("Vacancy", "state {}", sHolidayVacancy.state)
if (sHolidayVacancy.state == ON) {
return;
}
*/
sSONOFF07.sendCommand(ON)
end