Skip to content

Commit

Permalink
changed namespace for device types and smartapps
Browse files Browse the repository at this point in the history
  • Loading branch information
sgupta999 committed Nov 22, 2019
1 parent 034a17f commit 892cb72
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 8 deletions.
33 changes: 32 additions & 1 deletion DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,35 @@ docker run -p:8080:8080 \
--name mbs-rpi
sgupta99/mqtt-bridge-smartthings:1.0.3-rpi
```
The RPI distro is about 768MB and Alpine is about 136MB - so I would still go for the alpine distro
The RPI distro is about 768MB and Alpine is about 136MB - so I would still go for the alpine distro

# Docker Compose

If you want to bundle everything together, you can use [Docker Compose](https://docs.docker.com/compose/). This will install and run both mosquitto and MBS - you still need to make sure mosquitto.com and mbs config files are in the right directories.

Just create a file called docker-compose.yml with these contents:
```
mqtt:
image: eclipse-mosquitto
container_name: mqtt
environment:
- TZ=America/Chicago
volumes:
- D:/data/docker/volumes/mosquitto/config:/mosquitto/config
- D:/data/docker/volumes/mosquitto/data:/mosquitto/data
- D:/data/docker/volumes/mosquitto/log:/mosquitto/log
ports:
- 1883:1883
- 9001:9001
mqttbridge:
image: sgupta99/mqtt-bridge-smartthings:1.0.3-alpine
container_name: mbs
environment:
- TZ=America/Chicago
volumes:
- D:/data/docker/volumes/mbs:/mbs/config
ports:
- 8080:8080
```

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import groovy.json.JsonSlurper
import groovy.json.JsonOutput

metadata {
definition (name: "MBS Bridge", namespace: "gupta", author: "Sandeep Gupta") {
definition (name: "MBS Bridge", namespace: "gupta/mqtt", author: "Sandeep Gupta") {
capability "Notification"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

metadata {

definition (name: "Tasmota Contact Sensor", namespace: "gupta", author: "Sandeep Gupta") {
definition (name: "Tasmota Contact Sensor", namespace: "gupta/mqtt", author: "Sandeep Gupta") {
capability "Contact Sensor"
capability "Actuator"
capability "Refresh"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

metadata {

definition (name: "Tasmota SensorSwitch", namespace: "gupta", author: "Sandeep Gupta") {
definition (name: "Tasmota SensorSwitch", namespace: "gupta/mqtt", author: "Sandeep Gupta") {
capability "Actuator"
capability "Contact Sensor"
capability "Switch"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

metadata {

definition (name: "Tasmota Switch", namespace: "gupta", author: "Sandeep Gupta") {
definition (name: "Tasmota Switch", namespace: "gupta/mqtt", author: "Sandeep Gupta") {
capability "Actuator"
capability "Switch"
capability "Refresh"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

metadata {

definition (name: "Tasmota SwitchSensor", namespace: "gupta", author: "Sandeep Gupta") {
definition (name: "Tasmota SwitchSensor", namespace: "gupta/mqtt", author: "Sandeep Gupta") {
capability "Actuator"
capability "Switch"
capability "Momentary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ import groovy.transform.Field

definition(
name: "MBS SmartApp Full",
namespace: "gupta",
namespace: "gupta/mqtt",
author: "Sandeep Gupta",
description: "An MQTT bridge to SmartThings [MBS-SmartApp-Full]",
category: "My Apps",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import groovy.transform.Field

definition(
name: "MBS SmartApp Lite",
namespace: "gupta",
namespace: "gupta/mqtt",
author: "Sandeep Gupta",
description: "An MQTT bridge to SmartThings [MBS-SmartApp-Lite]",
category: "My Apps",
Expand Down

0 comments on commit 892cb72

Please sign in to comment.