stjohnjohnson / smartthings-mqtt-bridge

Bridge between SmartThings and MQTT
https://hub.docker.com/r/stjohnjohnson/smartthings-mqtt-bridge/
MIT License
363 stars 242 forks source link

MQTT on different port #211

Open kisspandur opened 4 years ago

kisspandur commented 4 years ago

I have my own running mqtt-server inside an other docker image, sitting on port 1183 (instead the default 1883). Is that possibile to set the configuration to work with that? (Right now there an option to set the ip address. Or should we use it like ip:port? )

kisspandur commented 4 years ago

Oh, a million pardon...

... Example from CloudMQTT ... host: mqtt:///m10.cloudmqtt.com:19427

craxo commented 4 years ago

Where did you find this setting? I have the same issue. Did you change the mqtt-bridge in docker to another port, or did you use the standard 8080?

kisspandur commented 4 years ago

I only changed the mqtt-server port to 1183. If you do it, you can do it two different way. You can change only the mqtt port in the config, and you can leave it, as you connect it trough local docker IP. Or you can make it public, via docker port-forward. (I did it both.) So, locally and "publicly" I use the same non-default port, 1183. Then when I configured this smartthings-mqtt-bridge, I also had to change the port in the url above. (I hope, I get what you want to know.) (My problem is with that whole smarttings things. I really dont get it trough. Smartapps, and so on...)

craxo commented 4 years ago

I realized I have to read more up on how the computer communicates with the Docker containers as I have never used it before. Are your events listed in the live log on the smartthings page?