Skip to content

Commit 892cb72

Browse files
committed
changed namespace for device types and smartapps
1 parent 034a17f commit 892cb72

10 files changed

+39
-8
lines changed

DOCKER.md

+32-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,35 @@ docker run -p:8080:8080 \
6565
--name mbs-rpi
6666
sgupta99/mqtt-bridge-smartthings:1.0.3-rpi
6767
```
68-
The RPI distro is about 768MB and Alpine is about 136MB - so I would still go for the alpine distro
68+
The RPI distro is about 768MB and Alpine is about 136MB - so I would still go for the alpine distro
69+
70+
# Docker Compose
71+
72+
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.
73+
74+
Just create a file called docker-compose.yml with these contents:
75+
```
76+
mqtt:
77+
image: eclipse-mosquitto
78+
container_name: mqtt
79+
environment:
80+
- TZ=America/Chicago
81+
volumes:
82+
- D:/data/docker/volumes/mosquitto/config:/mosquitto/config
83+
- D:/data/docker/volumes/mosquitto/data:/mosquitto/data
84+
- D:/data/docker/volumes/mosquitto/log:/mosquitto/log
85+
ports:
86+
- 1883:1883
87+
- 9001:9001
88+
89+
mqttbridge:
90+
image: sgupta99/mqtt-bridge-smartthings:1.0.3-alpine
91+
container_name: mbs
92+
environment:
93+
- TZ=America/Chicago
94+
volumes:
95+
- D:/data/docker/volumes/mbs:/mbs/config
96+
ports:
97+
- 8080:8080
98+
```
99+

devicetypes/gupta/mbs-bridge.src/mbs-bridge.groovy devicetypes/gupta/mqtt/mbs-bridge.src/mbs-bridge.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import groovy.json.JsonSlurper
2626
import groovy.json.JsonOutput
2727

2828
metadata {
29-
definition (name: "MBS Bridge", namespace: "gupta", author: "Sandeep Gupta") {
29+
definition (name: "MBS Bridge", namespace: "gupta/mqtt", author: "Sandeep Gupta") {
3030
capability "Notification"
3131
}
3232

devicetypes/gupta/tasmota.src/TasmotaContactSensor.groovy devicetypes/gupta/mqtt/tasmota.src/TasmotaContactSensor.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
metadata {
2222

23-
definition (name: "Tasmota Contact Sensor", namespace: "gupta", author: "Sandeep Gupta") {
23+
definition (name: "Tasmota Contact Sensor", namespace: "gupta/mqtt", author: "Sandeep Gupta") {
2424
capability "Contact Sensor"
2525
capability "Actuator"
2626
capability "Refresh"

devicetypes/gupta/tasmota.src/TasmotaSensorSwitch.groovy devicetypes/gupta/mqtt/tasmota.src/TasmotaSensorSwitch.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
metadata {
2222

23-
definition (name: "Tasmota SensorSwitch", namespace: "gupta", author: "Sandeep Gupta") {
23+
definition (name: "Tasmota SensorSwitch", namespace: "gupta/mqtt", author: "Sandeep Gupta") {
2424
capability "Actuator"
2525
capability "Contact Sensor"
2626
capability "Switch"

devicetypes/gupta/tasmota.src/TasmotaSwitch.groovy devicetypes/gupta/mqtt/tasmota.src/TasmotaSwitch.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
metadata {
2222

23-
definition (name: "Tasmota Switch", namespace: "gupta", author: "Sandeep Gupta") {
23+
definition (name: "Tasmota Switch", namespace: "gupta/mqtt", author: "Sandeep Gupta") {
2424
capability "Actuator"
2525
capability "Switch"
2626
capability "Refresh"

devicetypes/gupta/tasmota.src/TasmotaSwitchSensor.groovy devicetypes/gupta/mqtt/tasmota.src/TasmotaSwitchSensor.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
metadata {
2222

23-
definition (name: "Tasmota SwitchSensor", namespace: "gupta", author: "Sandeep Gupta") {
23+
definition (name: "Tasmota SwitchSensor", namespace: "gupta/mqtt", author: "Sandeep Gupta") {
2424
capability "Actuator"
2525
capability "Switch"
2626
capability "Momentary"

smartapps/gupta/mbs-smartapp.src/mbs-smartapp-full.groovy smartapps/gupta/mqtt/mbs-smartapp.src/mbs-smartapp-full.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ import groovy.transform.Field
467467

468468
definition(
469469
name: "MBS SmartApp Full",
470-
namespace: "gupta",
470+
namespace: "gupta/mqtt",
471471
author: "Sandeep Gupta",
472472
description: "An MQTT bridge to SmartThings [MBS-SmartApp-Full]",
473473
category: "My Apps",

smartapps/gupta/mbs-smartapp.src/mbs-smartapp-lite.groovy smartapps/gupta/mqtt/mbs-smartapp.src/mbs-smartapp-lite.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ import groovy.transform.Field
9696

9797
definition(
9898
name: "MBS SmartApp Lite",
99-
namespace: "gupta",
99+
namespace: "gupta/mqtt",
100100
author: "Sandeep Gupta",
101101
description: "An MQTT bridge to SmartThings [MBS-SmartApp-Lite]",
102102
category: "My Apps",

0 commit comments

Comments
 (0)