Code: Alles auswählen
rule"Beamer einschalten"
...
Thread::sleep(1000) // 1 Sekunde
Airplay_Buero.sendCommand(OFF)
Thread::sleep(2000) // 2 Sekunden
Beamer_Status.postUpdate(ON)
Thread::sleep(8000) // 8 Sekunden
Beamer_ON.sendCommand(ON)
if (Nacht_Modus.state == OFF && RL_Buero.state < 75) RL_Buero.sendCommand(75)
Thread::sleep(5000) // 5 Sekunden
if (Lautsprecher_Buero.state == OFF) Lautsprecher_Buero.sendCommand(ON)
Thread::sleep(15000) // 15 Sekunden
Beamer_VolMin.sendCommand(ON)
Thread::sleep(5000) // 5 Sekunden
Beamer_MuteOnOff.sendCommand(ON)
...
Code: Alles auswählen
rule"Beamer einschalten"
...
createTimer(now.plusSeconds(1), [| Airplay_Buero.sendCommand(OFF) ])
createTimer(now.plusSeconds(3), [| Beamer_Status.postUpdate(ON) ])
createTimer(now.plusSeconds(11), [|
Beamer_Status.postUpdate(ON)
if (Nacht_Modus.state == OFF && RL_Buero.state < 75) RL_Buero.sendCommand(75)
])
createTimer(now.plusSeconds(16), [|
if (Lautsprecher_Buero.state == OFF) Lautsprecher_Buero.sendCommand(ON)
])
createTimer(now.plusSeconds(31), [| Beamer_VolMin.sendCommand(ON) ])
createTimer(now.plusSeconds(36), [| Beamer_MuteOnOff.sendCommand(ON) ])
...