Nest On/Off with window Open/close


#1

I set up a piston to turn off my Nest thermostat when a certain window is open. This part works

What I would like to do is when I close the window, have the Nest return to its previous state. So if the A/C was on, it would come back on and vice versa for the heat

I wasn’t sure if there is a simple way to do this, or if I need to set up a schedule (months June-September turn on A/C, October to April turn on heat).

I am trying to avoid using the auto heating/cooling feature, but if that is my only option, so be it.

Any help ideas?


#2

You can try using the resumeProgram() command … that should be available for all thermostat devices.

IF
   your-window-device is closed
THEN
   WITH
      your-Nest-device
   DO
      resumeProgram()
   END WITH
END IF

#3

It doesn’t look like that is an option for the Nest, unless somehow I am missing it.


#4

Got a snapshot of your piston?


#5

Here is what I have…

I am sure I set the schedule up wrong, as I have no clue what I am doing with that…lol!

image|690x346


#6

Also, what device handler are you using for your Nest?


#7

Let me try the pic again. I am using what ever device managers that came with NST Manager.


#8

Ok, you need to heed the warning about using timers at the top-level only, otherwise you’re going to run into some event-related issues.

Anyway, I THINK you want this to run only in the months of October through March, since you’ve got every option checked off for only those months, LOL. Create a new piston (Restore a piston using a backup code) using the import code, below:

Substitute your contact sensor and the Nest for the devices in the piston. If the “resumeProgram()” statement in line 25 is still valid when you import this piston, it might work with the Nest and NST Manager … if not, you’ll need another method to return the Nest to the previous state (if possible.)

I don’t have a Nest thermostat to test this. You can include September in the months list to test it now.


#9

Awesome! Thank you! It worked!