Set/cancel an away temp for thermostat

I would like to be able to set or cancel a predetermined away temp for the thermostat. Something that would over ride the normally scheduled scenes.

Easiest way to do this is probably to install a virtual switch to indicate if you are at home or away. There is a virtual switch plugin available that should enable this.

You will then need to setup some logic so that your predefined schedules only run when you are at home. Take a look at the PLEG plugin that can be used to setup your schedules and conditions based on the status of your virtual switch.

you could alternatively manage your schedules with the virtual switch and a simple Lua script that will cancel the scene/schedule you use to modify the temperature based on Home/Away or vacation mode On/Off.

an example of that script. Your virtual switch’s device number would replace mine (66)

– this script cancels the change of the thermostat to the morning temperature if Vacation Mode is on (status=1)

local VacationStatus = luup.variable_get(“urn:upnp-org:serviceId:VSwitch1”, “Status”, 66)
if (VacationStatus == “1”) then
return false
end