I’ve tried nest-manager (GitHub - tonesto7/nest-manager: NST Manager (SmartThings)) but at least for me it was very unreliable and slow so I decided to work on a different solution that works better for me.
I already run the MQTT-SmartThings bridge (GitHub - stjohnjohnson/smartthings-mqtt-bridge: Bridge between SmartThings and MQTT) successfully so I decided to leverage it and do something very similar to bridge Nest and MQTT. You can also use this to control/get information from your nest products, it doesn’t necessarily need SmartThings.
I’ve been testing is and is been working for me. I plan to improve it in the coming days, there’s a couple of bugs and I want to also implement the Protect smoke alarms and a full thermostat (I only have heating). I’m looking for other testers and feedback is anyone finds this useful.
To install it:
- You need an mqtt broker, I use Mosca.
- You need to install this: GitHub - stjohnjohnson/smartthings-mqtt-bridge: Bridge between SmartThings and MQTT and make sure you can get state from and control devices (light switches are easy to test) make sure this bridge is configured with:
# Preface for the topics $PREFACE/$DEVICE_NAME/$PROPERTY preface: smartthings # Suffix for the state topics $PREFACE/$DEVICE_NAME/$PROPERTY/$STATE_SUFFIX state_read_suffix: state state_write_suffix: set_state
- Clone my repo GitHub - gandazgul/nest-mqtt-bridge: A nodejs daemon to act as a bridge between mqtt topics and the Nest API. Supports Thermostat, Protect and Home modes and run yarn && yarn setup (you can use npm if you must)
- The setup will guide you through authenticating with Nest and will generate a .env file for the bridge to use. After that run yarn start to start the bridge. You should run this in a sever it can run together with mqtt and the smartthings bridge or you can run it using docker. I can provide a docker-compose file to run them all of you need, I run them on kubernetes.
- Install the device handler for the thermostat by using the github integration with my repo from the IDE or manually and create a device with it. Your device name HAS to match the device name from Nest, I can make this configurable later.
- You should see output from the bridge indicating that is sending output and/receiving messages. You should see the messages go though on SmartThings bridge as well and the device on SmartThings should be able to control the hvac mode and the heat setpoint as well as match the current temperature.
Looking forward to feedback and answering your questions.
cheers