Jpaction wrote:I wanted to turn my nest off with applescript. I have figured out how to set different modes but can't figure out how to turn it off.
I assumed it would be
set HVAC Mode of Device "Nest" to Off
since I can do the following without a problem
set HVAC Mode of Device "Nest" to coolOn
&
set HVAC Mode of Device "Nest" to heatOn
Any help will be appreciated.
One thought is that the API is very sensitive to case. I hit that issue a few times over the weeks.
The modes in the API are: heat, cool, heat-cool and off. Any deviation like "Off" will be rejected. Are coolOn and heatOn variables you've defined?
I've learnt that you have to be very careful and follow the format for any field updates strictly. e.g. to turn the fan on you have to post true not True as a value for the fan_timer_active even thought its a boolean. That one took me a week to find
Let me know how you get on. I'll trial commands later tonight if that doesn't work. I like applescript
Mike