Great suggestion! I was going to suggest exactly the same idea (save a
device's state to variable and restore it), but I'd like to do this with
my Nest thermostat. I'd like to create a "cool me off" routine that
lowers the temperature on the thermost...