Connects Smartthings to an MQTT broker. I'm using this with Home Assistant. Inspired by smartthings-mqtt-bridge. It authenticates with Smartthings via oauth and Smartthings communicates back to Maquette using http basic auth. For this to be secure Maquette needs to run behind SSL. I'm using Caddy to reverse proxy to node. At the moment this is not very easy to setup. It should be able to read any device that Smartthings supports, but currently it only can control switches.
- an MQTT broker like Mosquitto
- a server with node installed
- Install the Maquette Smartapp on Smartthings and get the oauth client id and secret.
- Clone this project,
npm install
in the newly created folder - Update
config.json
./node_modules/.bin/sequelize db:migrate
npm run build
node .
- Make sure the app is externally accessible and navigate to
https://maquette.mydomain.com
- Authorize the Maquette
- Open the smartapp on your mobile device and set your host, user, and password