Skip to content

Instantly share code, notes, and snippets.

@techwithjake
Last active February 21, 2018 15:19
Show Gist options
  • Save techwithjake/a40c9b73b9aa5dc6b6b8dbe121fbbc6c to your computer and use it in GitHub Desktop.
Save techwithjake/a40c9b73b9aa5dc6b6b8dbe121fbbc6c to your computer and use it in GitHub Desktop.
config.yml for smartthings-mqtt-bridge
---
mqtt:
# Specify your MQTT Broker's hostname or IP address here
host: mqtt://lo.cal.ip.add:1883
# Preface for the topics $PREFACE/$DEVICE_NAME/$PROPERTY
preface: smartthings
# The write and read suffixes need to be different to be able to differentiate when state comes from SmartThings or whe$
# Suffix for the topics that receive state from SmartThings $PREFACE/$DEVICE_NAME/$PROPERTY/$STATE_READ_SUFFIX
# Your physical device or application should subscribe to this topic to get updated status from SmartThings
# state_read_suffix: state
# Suffix for the topics to send state back to SmartThings $PREFACE/$DEVICE_NAME/$PROPERTY/$STATE_WRITE_SUFFIX
# your physical device or application should write to this topic to update the state of SmartThings devices that suppor$
# state_write_suffix: set_state
# Suffix for the command topics $PREFACE/$DEVICE_NAME/$PROPERTY/$COMMAND_SUFFIX
# command_suffix: cmd
# Other optional settings from https://www.npmjs.com/package/mqtt#mqttclientstreambuilder-options
username: myuser
password: mypassword
# Port number to listen on
port: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment