{"action":"created","issue":{"url":"https://api.github.com/repos/tonesto7/nest-manager/issues/25","repository_url":"https://api.github.com/repos/tonesto7/nest-manager","labels_url":"https://api.github.com/repos/tonesto7/nest-manager/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/tonesto7/nest-manager/issues/25/comments","events_url":"https://api.github.com/repos/tonesto7/nest-manager/issues/25/events","html_url":"https://github.com/tonesto7/nest-manager/issues/25","id":141896525,"number":25,"title":"Add Support for Contact Sensors","user":{"login":"k6usy","id":17728661,"avatar_url":"https://avatars.githubusercontent.com/u/17728661?v=3","gravatar_id":"","url":"https://api.github.com/users/k6usy","html_url":"https://github.com/k6usy","followers_url":"https://api.github.com/users/k6usy/followers","following_url":"https://api.github.com/users/k6usy/following{/other_user}","gists_url":"https://api.github.com/users/k6usy/gists{/gist_id}","starred_url":"https://api.github.com/users/k6usy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k6usy/subscriptions","organizations_url":"https://api.github.com/users/k6usy/orgs","repos_url":"https://api.github.com/users/k6usy/repos","events_url":"https://api.github.com/users/k6usy/events{/privacy}","received_events_url":"https://api.github.com/users/k6usy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tonesto7/nest-manager/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"tonesto7","id":1835933,"avatar_url":"https://avatars.githubusercontent.com/u/1835933?v=3","gravatar_id":"","url":"https://api.github.com/users/tonesto7","html_url":"https://github.com/tonesto7","followers_url":"https://api.github.com/users/tonesto7/followers","following_url":"https://api.github.com/users/tonesto7/following{/other_user}","gists_url":"https://api.github.com/users/tonesto7/gists{/gist_id}","starred_url":"https://api.github.com/users/tonesto7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonesto7/subscriptions","organizations_url":"https://api.github.com/users/tonesto7/orgs","repos_url":"https://api.github.com/users/tonesto7/repos","events_url":"https://api.github.com/users/tonesto7/events{/privacy}","received_events_url":"https://api.github.com/users/tonesto7/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-03-18T15:21:15Z","updated_at":"2016-03-21T21:01:52Z","closed_at":null,"body":"Add support for contact sensors to turn off Nest Thermostat.\r\n\r\n## Verify the following before opening an issue:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] That _OAuth_ is Enabled for the SmartApp under the IDE.\r\n- [x] The SmartApp and Device are using the latest version.\r\n- [x] You have reviewed the Readme for potential fixes.\r\n- [x] That the Device Types have be _Published for You_.\r\n\r\n\r\n## About Your Setup:\r\n* How many Thermostats?: 1\r\n* How many Protects?: 2\r\n* Are you Using the Nest Presence Device?: Y\r\n* iOS or Android?: iOS\r\n* Mobile App Version: 2.1.0\r\n\r\n\r\n## Expected Behavior\r\nWhen one of the selected contact sensors has been open for X number of minutes, turn Nest Thermostat Off.  Once all selected contact sensors are closed again set Nest Thermostat back to previous mode (heat/cool/auto).\r\n\r\n## Current Behavior\r\nCurrently I have an other SmartApp that does this but when I switched to Nest Manager it stopped being able to put the Nest back into operation.  Opening any of my windows for more that 2 minutes will trigger the SmartApp to tell Nest Manager to set the Thermostat to Off but it does not do go back when I close all the windows.  I figured this is something that can just be included in the Nest Manager and I can eliminate the other SmartApp. \r\n\r\n## Context\r\nMy house has 14 windows, when I open one or all of them for more than 2 minutes I would like the Nest Thermostat to turn off automatically.  Once all my windows are closed I want the Nest to return to normal operation.  \r\n"},"comment":{"url":"https://api.github.com/repos/tonesto7/nest-manager/issues/comments/199483466","html_url":"https://github.com/tonesto7/nest-manager/issues/25#issuecomment-199483466","issue_url":"https://api.github.com/repos/tonesto7/nest-manager/issues/25","id":199483466,"user":{"login":"k6usy","id":17728661,"avatar_url":"https://avatars.githubusercontent.com/u/17728661?v=3","gravatar_id":"","url":"https://api.github.com/users/k6usy","html_url":"https://github.com/k6usy","followers_url":"https://api.github.com/users/k6usy/followers","following_url":"https://api.github.com/users/k6usy/following{/other_user}","gists_url":"https://api.github.com/users/k6usy/gists{/gist_id}","starred_url":"https://api.github.com/users/k6usy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k6usy/subscriptions","organizations_url":"https://api.github.com/users/k6usy/orgs","repos_url":"https://api.github.com/users/k6usy/repos","events_url":"https://api.github.com/users/k6usy/events{/privacy}","received_events_url":"https://api.github.com/users/k6usy/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T21:01:52Z","updated_at":"2016-03-21T21:01:52Z","body":"Ok cool, once the code is updated I can test it out when I get home."}}