From 7932a70b1b7f39d47a8f3fc5e2ff065116267df6 Mon Sep 17 00:00:00 2001 From: Richard Genoud Date: Tue, 3 Mar 2020 17:30:35 +0100 Subject: [PATCH] thermostat: show force off in zones when holiday mode is on --- soft/thermostat/src/zoneitem.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/soft/thermostat/src/zoneitem.cpp b/soft/thermostat/src/zoneitem.cpp index 02aa684..130e16a 100644 --- a/soft/thermostat/src/zoneitem.cpp +++ b/soft/thermostat/src/zoneitem.cpp @@ -80,6 +80,10 @@ void ZoneItem::refresh(void) break; } + if (s->m_end_holiday > QDateTime::currentDateTime()) { + m_target_temperature = FORCE_OFF; + } + /* Zone name */ text += QString("
") + m_name + QString("
");