Smart Home Part 2: Homebridge Nest Device Set Up



In this screencast tutorial I continue my look at Homebridge and add Nest Devices to Homebridge and Homekit. The beauty of Homebridge is that it allows for this type of integration. It is not perfect but it does give access to your Nest Devices to use in some of your automation set ups and allows you to use Homekit and Siri to control those devices based on what Nest makes available.

As always thanks for your support. If you find this video helpful please subscribe, like, favorite and share this video as it helps to get it out there.

35 Replies to “Smart Home Part 2: Homebridge Nest Device Set Up”

  1. JR B

    Cant get the token, I alway get the red error messages starting with:

    12/29/2018, 7:03:43 PM] Loaded config.json with 0 accessories and 1 platforms.
    [12/29/2018, 7:03:44 PM] —
    [12/29/2018, 7:03:44 PM] Loaded plugin: homebridge-nest
    [12/29/2018, 7:03:44 PM] Registering platform 'homebridge-nest.Nest'
    [12/29/2018, 7:03:44 PM] —
    [12/29/2018, 7:03:44 PM] Loading 1 platforms…
    [12/29/2018, 7:03:44 PM] [Nest] Initializing Nest platform…
    [12/29/2018, 7:03:44 PM] [Nest] Fetching Nest devices.
    [12/29/2018, 7:03:44 PM] Loading 0 accessories…
    [12/29/2018, 7:03:44 PM] [Nest] Error: If you are going to use {'clientId','clientSecret','code'} then you must specify all three, otherwise use {'token'}
    at /usr/local/lib/node_modules/homebridge-nest/index.js:188:14
    at Promise._execute (/usr/local/lib/node_modules/homebridge-nest/node_modules/bluebird/js/release/debuggability.js:313:9)
    at Promise._resolveFromExecutor (/usr/local/lib/node_modules/homebridge-nest/node_modules/bluebird/js/release/promise.js:483:18)
    at new Promise (/usr/local/lib/node_modules/homebridge-nest/node_modules/bluebird/js/release/promise.js:79:10)
    at setupConnection (/usr/local/lib/node_modules/homebridge-nest/index.js:172:10)
    at NestPlatform.accessories (/usr/local/lib/node_modules/homebridge-nest/index.js:256:5)
    at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:386:20)
    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:330:16)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:86:36)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:45:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
    Setup Payload:
    X-HM://0023ISYWYEO4M
    Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

  2. nomomrnyeguy

    Hi I was able to get my Nestcam working with Homebridge and it shows up in my Home.app, but whenever I click on it to view a bigger screen, it says that the Camera is not responsive, however it's showing fine under the main home.app view though. Any ideas? Also how can I get multiple nest products working such as the thermostat and nestcam? Would I need to add 2 platform entries into the config.json file?

  3. J. Alfonso Cañez

    Hi Todd Thanks for the great help with this videos. Im still having some errors after I change the code , this is what im gettin

    [11/5/2018, 6:37:06 PM] [Nest] Error: You did not specify {'token'} or {'clientId','clientSecret','code'}, one set of which is required for the new API
    at /usr/local/lib/node_modules/homebridge-nest/index.js:188:14
    at Promise._execute (/usr/local/lib/node_modules/homebridge-nest/node_modules/bluebird/js/release/debuggability.js:313:9)
    at Promise._resolveFromExecutor (/usr/local/lib/node_modules/homebridge-nest/node_modules/bluebird/js/release/promise.js:483:18)
    at new Promise (/usr/local/lib/node_modules/homebridge-nest/node_modules/bluebird/js/release/promise.js:79:10)
    at setupConnection (/usr/local/lib/node_modules/homebridge-nest/index.js:172:10)
    at NestPlatform.accessories (/usr/local/lib/node_modules/homebridge-nest/index.js:256:5)
    at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:386:20)
    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:330:16)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:86:36)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:45:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)

  4. BNK1283

    Hi Todd,
    Great videos! Could you offer any assistance on getting the nest cams to show video through the home app. I only see the cameras as motion sensors. Using a Mac to setup and run Homebridge. Any help would be greatly appreciated!

  5. GadgetPhreek

    I’ve got the homebridge running and it will add to my home app but once it’s added the home app does not see my nest. The homebridge sees my nest as I can see it’s name on initializing

  6. Jack Breiner

    How did you get the "Nest" platform information right at the beginning of the video into Atom? I understand some of those fields are populated by the information produced on the developer page, but what about that initial format to edit?

    Thanks!
    Jack

  7. Michael Bomar

    I have a couple quick questions. I watched both of your videos and they're great. What I'm a bit confused about is that I have 4 TP-Link H200 Smart Light Switches that I want to work with Homekit. I figured out that these are considered accessories since they have no bridge. However, do I need to add separate lines in the config file for each light? Or, do I do it once then in homekit the switch will show up in whatever room it's supposed to be in? I'm also confused how I tell the lights apart in homekit unless they're automatically in the room they're in. Also, Do I need to leave Terminal running on the computer that homebridge was set up or can I close the terminal?

  8. Avery Miller

    When I try to control the nest thermostat I get this message in terminal?
    It was working fine until I asked Siri to set the temperature.

    FIREBASE WARNING: set at /devices/thermostats/JUAx4O2TssHSDRklnI68g3iZVcayrATA/hvac_mode failed: blocked

  9. Michael

    Part 1 and 2 are great! My Wemos are running like a charm. Just one perhaps stupid question: after one has started Homebridge in a terminal window can you close the window and is there a command which would automatically restart home ridge if for example my MacServer restarts ?

  10. Chase Coates

    Thanks for the video! I have successfully configured Nest with Homebridge. I am trying to connect HarmonyHub and Kevo, but I am having trouble with these. Do you have any suggestions? I think I know how to write the config.json file, but I am having trouble installing the plugins.

  11. Marcello Gambino

    Hi Todd,
    Thanks for the great videos. Could you offer any assistance on getting the nest cams to show video through the home app. I only see the cameras as motion sensors. Using a Mac to setup and run Homebridge. Any help would be greatly appreciated!

  12. Lover D

    Thanks for this series. Managed to add the Nests to Homekit.
    Could you do a series on how to keep homebridge running/starting after reboot?
    I know it is possible but at the same time too technical for me or many other users…

  13. Sheldon Chong

    Hi Todd, can you offer any assistance? Keep getting the "unauthorized" code error in Terminal that you encountered (even on the first try). Recreated the pin code again but still seeing the same problem. Any thoughts? Also, where did the initial "token" come from?

  14. brandon cunningham

    I am trying to follow you from the first video….but where did the nest platform information come from? seems like you left a step out from the first video to the second in the Atom program….we erased everything under "accessories" and then "platform" in video 1 and in video #2 a bunch of code titled "Platform" : "nest" …….etc…etc…magically appeared. Where'd that come from?

Leave a Reply

Your email address will not be published. Required fields are marked *