GithubHelp home page GithubHelp logo

Comments (5)

jjmmss00 avatar jjmmss00 commented on July 19, 2024 1

Part 1.

Hi, I have having the same problem and have at this point achieved some but not total success. I would thank the code authors for some great work. However there does not seem like there is much in the way of diagnostics if things aren't working after a person follows direction in getting things installed. I am a newbie to Linex, SmartThings, Raspberry Pi, and Networking, which is also a problem

So here are some of approaches I used to trouble shoot. First, get the various pieces running on different computers. I installed Mosquito on my windows PC, along with a free Microsoft Networking Monitoring Tool. I installed Ubuntu Linux on an old laptop, and then the Docker Utility, and finally the Mqtt-Bridge itself. I also installed a free networking monitoring utility called Wireshark. Then I left the HomeAssistant running on the RPi.

After that I was able to work on the HA config and Mosquito config to verify that Mosquito was working and talking to HA. This took some trial and error, as getting the HA config file working was problematic for me. Note there is also several free iOS applications that I was able to download on my iPad to test out the MQTT itself. Finally it was instructive to watch the network traffic back and forth on the network monitor (Microsoft Network Monitor).

I will continue in part 2. After a break.

from smartthings-mqtt-bridge.

jjmmss00 avatar jjmmss00 commented on July 19, 2024 1

Part 2.

Per my count there are 5 significant software pieces to this system:

  1. HA on the RPi
  2. Mosquito MQTT Broker (temporarily running on a windows PC)
  3. MQTT-Bridge (temporarily running on an old laptop with UBantu)
  4. MQTT-Bridge and associated device (on the ST Hub)
  5. MQTT-Smart App (on the ST Hub)

I believe that it qualifies as a complex system.

I have renamed the ST hub pieces to reduce ambuiguity. The MQTT-Bridge I remamed the MQTT-Bridge-Driver, and the associated device that showed up in ST app I call the MQTT-Bridge-Device. The name for the smart app seems good but one can make some minor code edits to get this to show up in the ST web development pages.

Next I worked on getting the ST to MQTT interface working. For a while it seemed that the ST hub was not sending out messages. As I changed the IP address in ST to send test messages to my PC where I had the network monitor, and there weren't any received packets. Then I commented out the call to "hubAction" at the end of the driver code and experimented with my own test hubAction calls and finally got the hub to send out TCP messages.

At this point I installed the MQTT-Bridge on the old laptop with UBantu and found that the Bridge was sending back error messages to the ST hub. (I was now monitoring the network with the wireshark program). My substitute call to the hubAction routine was not sending out proper messages. I went back and tried the original code for hubAction and found it was now working and in fact everything was working. I don't know why things weren't working in the first place.

My next steps will be to try and integrate everything onto the RPi.

Note: one possible problem may be (not sure of this) that during the first call to set things up in Docker one needs to specify a port. Subsequently one also needs to specify a port in the MQTT-Bridge configuration file. I suspect that the docker port and the bridge port refer to different config values, however they must be the same for things to work. I changed the bridge port to 9090 because other software uses 8080. But the Docker startup value was still 8080 in the RPi setup. On the UBantu laptop I was careful to use 9090 in both places. Another potential problem is that the raspberry pi Docker file is different from the regular Docker file on gitHub. I am pretty sure I used the regular Docker file when I was first started out with the RPi. Later I tried the correct file, but still it was not working at that point.

So my purpose in writing this is not really to give information on installation points that may be wrong, but to suggest some tools that a person could use to do some trouble shooting.

Another note: sometimes the MQTT-Bridge was sending messages to the Docker website. I think this may have been when things weren't working. This is probably harmless, but may be a privacy concern to some.

from smartthings-mqtt-bridge.

TheCellMC avatar TheCellMC commented on July 19, 2024 1

I followed these instructions: https://github.com/gilhaz/HomeAssistant_SmarthThings_Homebridge

However, I recently stopped using SmartThings and got an Aeon Labs ZWave stick. I left Smartthings because of the fact that SmartApps can’t run locally. This created delays and meant that my Alarm wouldn’t work without and internet connection.

from smartthings-mqtt-bridge.

wkethman avatar wkethman commented on July 19, 2024

@TheCellMC Did you ever get this working? Figure out what you did wrong? I am having the same issue

from smartthings-mqtt-bridge.

jjmmss00 avatar jjmmss00 commented on July 19, 2024

Yes I did finally get it to work quite a while ago. I believe the secret is to get experience with the individual pieces so that you can troubleshoot the communication problems. I would recommend starting with the mosquitto MQTT. There are some utilities out there (some can run on my iPad) that can manually send and receive messages. Make sure your HA setup is sending out and receiving the verification messages when you switch something.

I would note that I have stopped using the raspberry pi as it started to have some reliability problems (especially with the flash). I now use an Intel nuc running UBuntu, and I have been much more happy with that.

from smartthings-mqtt-bridge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.