dobranoc: obejście nie działającej chwilowo aleksy, wyłączanie wszystkiego

This commit is contained in:
2025-12-03 09:56:13 +01:00
parent 32ce4b9621
commit c36fea7e2d
3 changed files with 48 additions and 0 deletions

View File

@@ -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"
}

View 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

View File

@@ -2,6 +2,7 @@ sitemap pbrk label="Domek"
{ {
Frame { Frame {
Text item=dtSunset_Time Text item=dtSunset_Time
Switch item=sGoodnight
} }