Try a different approach. When the window is open change heating setpoint to 50 and cooling to 85
1 Like
bamarayne
(Jason "The Enabler" as deemed so by @Smart)
3
Try this…
Condition - any window open
Rule - any window open
Actions for true - delay 5 minutes, cancellable: set nest to off
Actions for false - set nest mode auto.
I think this is as close as you’re going to get with this one.
I don’t see a way g for the system to know the last state of the device.
I do not have a nest thermostat so I’m not sure how it looks in rule machine.
Hmmmm… If I open and close a contact quickly it seems like the state recorded remains off. I am going to do some more testing to see if I can determine why and maybe supply a fix
If I open the contact, wait for the heat to turn off and then close the contact it works perfectly.
So if you have it set for lets say, five min. delay to turn off the thermostat. It turns it off. Then when you close the window it turns it back on to the the original state?
After installing the app it wasn’t getting the thermostat state until after a successful mode change on the thermostat. I’ll test it a bit more and then send the information to smartThings to see if they can update their app.
The app will send push notifications when the first window is opened and the thermostat is turned off. Then when closing the window contact you’ll get a push if any windows are left open. The push notification will contain the names of the sensors still open.
If someone turns the thermostat on before all contacts are closed, the thermostat will be turned back off and a push notification will be sent telling you which windows are still open.
Ok. I think I have all of the bugs worked out. Go ahead and install the app from git hub. You can either do it through smartThings or paste the code from here:
Yes. It was the base code but I corrected the issue where it doesn’t set the state back. I also cleaned it up a bit and added a few things.
For instance you can now turn the thermostat on and if any windows are open it will turn off again and let you know which windows are open.
It also checks to see if Windows are open on initializing and turns the thermostat off
Additionally it sends a push notification as you close Windows if all of them haven’t been closed. The notification sends a list of opened Windows.
This was my first attempt at app development in SmartThings, so let me know if you see bugs or room for improvement.