Thanks for the updated script. For some reason I still can get it to toggle between home/away. Does the variable have to be a 'state' or an 'integer'? Currently I have it as a state with the variable ID of 8. I updated "if VarNum == "8":" as directed. When I toggle the variable between 0 and 1 nothing happens to the state of the Nest (and yes in-between toggles I wait a minimum of 5 mins).
Looking at the log it appears everything is communicating ok. I'm getting a constant stream of Insteon.command and Insteon.heartbeat from the ISY, and I get the "Login to Nest Successful" entry. Also when I change the variable I get "Insteon.Command 'VAR 2 8:1'" or "Insteon.Command 'VAR 2 8:0'" depending if its a 1 or 0.
In the Nest plugin settings I have the 'device' set to 0 by default. Do I need to set it to something else? I only have 1 Nest.
Any help would be much appreciated... I feel like I'm getting close!