Need help with tying location and time into thermostat piston


#1

1) Give a description of the problem
I like my very simple heating piston to use presence sensing, as well as schedule to set heating setpoints. I am having a hard time understanding how to basically say:

At X time, set heating setpoint to Y
If presence changes to AWAY
THEN set heating setpoint to Z

2) What is the expected behavior?
N/A

3) What is happening/not happening?
N/A

4) Post a Green Snapshot of the pistonimage
green_snapshot_heater|514x500

I’m trying to avoid a situation where TIME sets a heating setpoint, and then PRESENCE sets the setpoint, but when PRESENCE returns, the setpoint doesn’t re-set.

Make sense?


#2

Does it need to be something like:

IF time is X and location changes to HOME then set temp A
IF time is X and location changes to AWAY then set time B

?

I’m sorry, I’m not much of a natural coder.


#3

You can use presense changing as a trigger…

IF presense changes to AWAY
and
IF time is X
then do this do that

IF presense changes to HOME
and
IF time is Y
then do this do that

Edit : FYI presense sensors are not really 100% reliable. It can register late.