This is an alternative to our
Nest command collection posted here:
http://voxcommando.com/forum/index.php?topic=1965.0.
In this version, I decided to put the Python plugin to use so
you will need to have the Python plugin enabled.
The previously posted collection works great
and is probably fine for most users, but it has a few limitations that I wanted to try to address, including:
- improving how we refresh data from the Nest
- automatically determining system information such as whether a device is using Fahrenheit or Celsius, so that temps can be reported in that measurement system
- eliminating some of the complex & fallible regular expressions that were required to read the Nest data (because Python permits us to easily parse json)
The video tutorial in the other thread is still very helpful if you don't yet use Nest commands with VC.
You should watch it in order to understand the whole setup process. However, there are a few minor variations when setting up this Python-enabled variation.
1. Put the attached Nest.py in your VC root directory.
*2. Import attached command collection to your tree.
3. Edit the Nest authorization command with your user/pwd info.
--
4. Save & exit the command tree, and then open it up again.
--
5. Execute commands marked 1, then 2, then 3 -- in order.
6. Save & exit the command tree.
Test commands. (You'll probably want to "show help" to see the commands.)
---
* If you are a seasoned VC user, feel free to put this in your \PY subfolder and then edit the command that loads this file to point to the correct filepath.