diff --git a/rules/sypialnia.dual.rules b/rules/sypialnia.dual.rules index 90bb135..b978c5e 100644 --- a/rules/sypialnia.dual.rules +++ b/rules/sypialnia.dual.rules @@ -29,19 +29,20 @@ when Item sSunset_Event received update ON then sSONOFF08a.sendCommand(ON) + Thread::sleep(1000) sSONOFF08b.sendCommand(ON) end rule "Zgaś gwiazdki w sypialni wieczorem" when - Time cron "0 00 22 * * ?" + Time cron "0 55 21 * * ?" then sSONOFF08b.sendCommand(OFF) end rule "Zgaś cottonballs w sypialni wieczorem" when - Time cron "0 18 22 * * ?" + Time cron "0 08 22 * * ?" then sSONOFF08a.sendCommand(OFF) end