Check out these thermostat apps some of them are based on modes, others based on time/schedules and you combine them using modes to create virtually any setup you need and also use remote temperature sensors and motion sensors.
[RELEASE] Motion Sensor Thermostat with Remote temperature sensors, Presence detection and Schedules