Files
openhab/rules/salon.dobranoc.rules

44 lines
712 B
Plaintext

rule "Dobranoc"
when
Item sGoodnight received update ON
then
/* quodlibet */
Mpd_quodlibet_StartStop.sendCommand(OFF)
Mpd_quodlibet_StartStop_expected.sendCommand(OFF)
/* balkon */
sSHELLY01.sendCommand(OFF)
Thread::sleep(300)
/* sufitowe */
sSONOFF05.sendCommand(OFF)
Thread::sleep(300)
/* lampki pod tv */
sOWFS01.sendCommand(OFF)
sOWFS01_expected.postUpdate(OFF)
Thread::sleep(300)
/* kanapowe */
sSONOFF09a.sendCommand(OFF)
sSONOFF09b.sendCommand(OFF)
Thread::sleep(300)
/* blat */
sD1MINI02MOS.sendCommand(OFF)
/* nad stołem */
sSHELLY02.sendCommand(OFF)
sSHELLY02_expected.sendCommand(OFF)
Thread::sleep(300)
/* przedpokój */
sSONOFF06.sendCommand(OFF)
end