Setpoint schedule


#1

What are others using for creating a setpoint schedule? I would like to have a different temperature setting for day/night at very least.

I see some chatter about writing custom rules using OpenHab cron to achieve this, but would like some kind of UI if possible. Has anyone found an addon that works well for this, or some other strategy?


#2

A quick solution is to use cron rules in your default.rules file, I’ve been using this:

rule “WakeTime”
when
Time cron “0 0 7 1/1 * ? *”
then
postUpdate(TempSetpoint, 68);
end

rule “DayTime”
when
Time cron “0 0 8 1/1 * ? *”
then
postUpdate(TempSetpoint, 69);
end

rule “DayOff”
when
Time cron “0 30 9 1/1 * ? *”
then
HeatingMode.sendCommand(“OFF”);
end

rule “NightTime”
when
Time cron “0 0 17 1/1 * ? *”
then
HeatingMode.sendCommand(“ON”);
postUpdate(TempSetpoint, 70);
end

rule “BedTime”
when
Time cron “0 30 23 1/1 * ? *”
then
postUpdate(TempSetpoint, 67);
end