Fix Nest not responding when it has been set to away mode manually #150
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #75
If I try and change the temperature by the slider, it seems to set it, get no response back, and then seems to set it back to what it was before:
[9/16/2016, 6:09:57 PM] Target temperature for Living Room Thermostat is: 30 C
[9/16/2016, 6:09:57 PM] Target temperature for Living Room Thermostat is: 19 C
This only happened when it was set to away.
The issue here is that the Nest will only allow you to change temperature when it's not in away mode, so we have to make sure it is not.
This only used to be done when it was set to auto-away, but since I (and others) set the away mode through the API or manually set the device to away, this breaks controlling the Nest through homekit.