dobranoc: obejście nie działającej chwilowo aleksy, wyłączanie wszystkiego
This commit is contained in:
@@ -5,3 +5,7 @@ Switch sHolidayVacancy "Jesteśmy poza domem"
|
|||||||
/* target przełączają bcache (writeback/writethrough), amdgpu (auto/low), cpu governor (schedutil, powersave) */
|
/* target przełączają bcache (writeback/writethrough), amdgpu (auto/low), cpu governor (schedutil, powersave) */
|
||||||
Switch sHighPerformance "Komputer w trybie wydajnym" { exec=">[ON:systemctl start power-balance.target] >[OFF:systemctl start power-conserve.target]" }
|
Switch sHighPerformance "Komputer w trybie wydajnym" { exec=">[ON:systemctl start power-balance.target] >[OFF:systemctl start power-conserve.target]" }
|
||||||
|
|
||||||
|
Switch sGoodnight "Dobranoc" <bedroom> {
|
||||||
|
expire="4s,command=OFF"
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
43
rules/salon.dobranoc.rules
Normal file
43
rules/salon.dobranoc.rules
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
|
||||||
|
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
|
||||||
@@ -2,6 +2,7 @@ sitemap pbrk label="Domek"
|
|||||||
{
|
{
|
||||||
Frame {
|
Frame {
|
||||||
Text item=dtSunset_Time
|
Text item=dtSunset_Time
|
||||||
|
Switch item=sGoodnight
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user