różne zebrane fixy, głównie w timerach
This commit is contained in:
@@ -42,14 +42,16 @@ end
|
|||||||
|
|
||||||
rule "Przedpokój: zapal rano"
|
rule "Przedpokój: zapal rano"
|
||||||
when
|
when
|
||||||
Time cron "0 50 5 ? * MON-FRI *"
|
Time cron "0 48 5 ? * MON-FRI *" /*or
|
||||||
|
Time cron "0 44 6 ? * MON-FRI *" */
|
||||||
then
|
then
|
||||||
sSONOFF06.sendCommand(ON)
|
sSONOFF06.sendCommand(ON)
|
||||||
end
|
end
|
||||||
|
|
||||||
rule "Przedpokój: zgaś rano"
|
rule "Przedpokój: zgaś rano"
|
||||||
when
|
when
|
||||||
Time cron "0 50 6 ? * MON-FRI *"
|
/*Time cron "0 50 6 ? * MON-FRI *"*/
|
||||||
|
Time cron "0 50 7 ? * MON-FRI *"
|
||||||
then
|
then
|
||||||
sSONOFF06.sendCommand(OFF)
|
sSONOFF06.sendCommand(OFF)
|
||||||
end
|
end
|
||||||
@@ -74,3 +76,10 @@ end
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/* special smart: 3x szybkie przełączenie zapala wszystko w domu;
|
||||||
|
if last przelaczenie time < 1 sekunde temu, licznik++
|
||||||
|
else licznik = 1
|
||||||
|
if licznik = 3, zapal wszystko
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,9 @@ when
|
|||||||
Time cron "0 35 6 * * ?"
|
Time cron "0 35 6 * * ?"
|
||||||
then
|
then
|
||||||
sOWFS01.sendCommand(OFF)
|
sOWFS01.sendCommand(OFF)
|
||||||
sD1MINI02MOS.sendCommand(OFF)
|
sOWFS01_expected.postUpdate(OFF)
|
||||||
|
/* commented out during stay-at-home
|
||||||
|
sD1MINI02MOS.sendCommand(OFF) */
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@@ -26,17 +28,24 @@ then
|
|||||||
sOWFS01_expected.postUpdate(ON)
|
sOWFS01_expected.postUpdate(ON)
|
||||||
|
|
||||||
/* HOLIDAY */
|
/* HOLIDAY */
|
||||||
|
|
||||||
sD1MINI02MOS.sendCommand(ON)
|
sD1MINI02MOS.sendCommand(ON)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
/* niech czeka na "goodnight" */
|
||||||
|
/*
|
||||||
rule "Zgaś cottonballsy wieczorem"
|
rule "Zgaś cottonballsy wieczorem"
|
||||||
when
|
when
|
||||||
Time cron "0 20 22 * * ?"
|
Time cron "0 20 22 * * ?"
|
||||||
then
|
then
|
||||||
sOWFS01.sendCommand(OFF)
|
sOWFS01.sendCommand(OFF)
|
||||||
sOWFS01_expected.postUpdate(OFF)
|
sOWFS01_expected.postUpdate(OFF)
|
||||||
end
|
|
||||||
|
|
||||||
|
/* balkon */
|
||||||
|
sSHELLY01.sendCommand(OFF)
|
||||||
|
end
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ then
|
|||||||
/* cottonballs */
|
/* cottonballs */
|
||||||
sOWFS01.sendCommand(OFF)
|
sOWFS01.sendCommand(OFF)
|
||||||
/* prawe kanapowe */
|
/* prawe kanapowe */
|
||||||
|
sSONOFF09b_expected.postUpdate(sSONOFF09b.state)
|
||||||
sSONOFF09b.sendCommand(OFF)
|
sSONOFF09b.sendCommand(OFF)
|
||||||
|
|
||||||
Mpd_quodlibet_StartStop_expected.postUpdate(Mpd_quodlibet_StartStop.state)
|
Mpd_quodlibet_StartStop_expected.postUpdate(Mpd_quodlibet_StartStop.state)
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ when
|
|||||||
then
|
then
|
||||||
/* HOLIDAY */
|
/* HOLIDAY */
|
||||||
|
|
||||||
|
/* drobna przerwa bo cottonballs tez sie zapalaja teraz */
|
||||||
|
Thread::sleep(1000)
|
||||||
sSONOFF05.sendCommand(ON)
|
sSONOFF05.sendCommand(ON)
|
||||||
|
|
||||||
/* balkon */
|
/* balkon */
|
||||||
@@ -120,9 +122,13 @@ then
|
|||||||
sSONOFF02_expected.postUpdate(OFF)
|
sSONOFF02_expected.postUpdate(OFF)
|
||||||
dSONOFF02LED.sendCommand(1023)
|
dSONOFF02LED.sendCommand(1023)
|
||||||
|
|
||||||
/* sufitowe gasimy tylko jak nikogo nie ma w domu */
|
/* sufitowe gasimy tylko jak nikogo nie ma w domu,
|
||||||
|
cottonbalsy tez, bo nie ma kto powiedziec goodnight */
|
||||||
if (sHolidayVacancy.state == ON) {
|
if (sHolidayVacancy.state == ON) {
|
||||||
|
/* kanapa */
|
||||||
sSONOFF05.sendCommand(OFF)
|
sSONOFF05.sendCommand(OFF)
|
||||||
|
/* cottonballs / krzak */
|
||||||
|
sOWFS01.sendCommand(OFF)
|
||||||
}
|
}
|
||||||
Thread::sleep(2000)
|
Thread::sleep(2000)
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
rule "Zapal lampkę i cottonballs rano"
|
rule "Zapal lampkę i cottonballs rano"
|
||||||
when
|
when
|
||||||
Time cron "0 42 5 ? * MON-FRI *"
|
Time cron "0 48 5 ? * MON-FRI *"
|
||||||
|
/* Time cron "0 39 6 ? * MON-FRI *" */
|
||||||
then
|
then
|
||||||
sOWFS02.sendCommand(ON)
|
sOWFS02.sendCommand(ON)
|
||||||
sSONOFF08a.sendCommand(ON)
|
sSONOFF08a.sendCommand(ON)
|
||||||
@@ -11,7 +12,8 @@ end
|
|||||||
|
|
||||||
rule "Zgaś lampkę i cottonballs rano"
|
rule "Zgaś lampkę i cottonballs rano"
|
||||||
when
|
when
|
||||||
Time cron "0 30 6 * * ?"
|
/* Time cron "0 30 6 * * ?" */
|
||||||
|
Time cron "0 30 7 * * ?"
|
||||||
then
|
then
|
||||||
sOWFS02.sendCommand(OFF)
|
sOWFS02.sendCommand(OFF)
|
||||||
sSONOFF08a.sendCommand(OFF)
|
sSONOFF08a.sendCommand(OFF)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ sitemap pbrk label="Szczegóły techniczne"
|
|||||||
|
|
||||||
Group label="Łączność" {
|
Group label="Łączność" {
|
||||||
Frame label="Połączenie (LWT)" {
|
Frame label="Połączenie (LWT)" {
|
||||||
Switch item=rSONOFF01
|
/* Switch item=rSONOFF01 */
|
||||||
Switch item=rSONOFF02
|
Switch item=rSONOFF02
|
||||||
Switch item=rSONOFF03
|
Switch item=rSONOFF03
|
||||||
Switch item=rSONOFF05
|
Switch item=rSONOFF05
|
||||||
|
|||||||
Reference in New Issue
Block a user