stjohnjohnson / smartthings-mqtt-bridge

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

Only listening on TCP6 localhost #149

Closed dennyreiter closed 6 years ago

dennyreiter commented 6 years ago

I've just started messing with MQTT, but I've followed the install instructions but not seeing anything hitting the MQTT server. I'm running the bridge under pm2. When I do a netstat I see this

netstat -an | grep 1883 tcp 0 0 0.0.0.0:1883 0.0.0.0: LISTEN tcp 0 0 127.0.0.1:55620 127.0.0.1:1883 ESTABLISHED tcp 0 0 192.168.0.77:1883 192.168.1.130:55008 ESTABLISHED tcp 0 0 127.0.0.1:1883 127.0.0.1:55620 ESTABLISHED tcp6 0 0 :::1883 ::: LISTEN netstat -an | grep 8082 tcp6 0 0 :::8082 :::* LISTEN denny@portal:~$

And here is my config.yml: mqtt:

host: mqtt://127.0.0.1
preface: smartthings
port: 8082

Not sure what I'm doing wrong, since I do see people have successfully used it?

dennyreiter commented 6 years ago

OK, so maybe my netstat is bogus. I can connect to port 8082 of 192.168.0.77 from a different machine. The SmartApp says "OK" and recently shows sending events to the bridge, but I don't see anything coming in to the MQTT broker. Any ideas how to troubleshoot it?