log_dest stderr
log_type all
connection_messages true
log_timestamp true```
so I look at stderr, you can change that to an actuall log file like ```/etc/mosquitto/mosquitto.log```
my bridge logs to a error.log, events.log, and access.log file in my config directory.
Hmm not really seeing anything in there. I only have an events.log and it’s pretty empty.
Having trouble finding the mosquitto logs but sudo systemctl status mosquitto.service -l has stuff like
Jul 14 18:20:04 hassbian mosquitto[6755]: 1500056404: Sending PUBLISH to home-assistant-1 (d0, q0, r0, m0, ‘smartthings/Bed Fan Light/switch’, … (2 bytes))
Got mosquitto.log file working… Just restarted mosquitto and it logged this
1500058655: mosquitto version 1.4.12 (build date Thu, 25 May 2017 22:38:16 +0100) starting
1500058655: Config loaded from /etc/mosquitto/mosquitto.conf.
1500058655: Opening ipv4 listen socket on port 1883.
1500058655: Opening ipv6 listen socket on port 1883.
1500058655: Opening websockets listen socket on port 8883.
1500058656: New connection from 192.168.0.200 on port 1883.
1500058657: Socket error on client , disconnecting.
1500058657: New connection from 192.168.0.200 on port 1883.
1500058657: New client connected from 192.168.0.200 as home-assistant-1 (c1, k60, u’myUsername’).
1500058657: Sending CONNACK to home-assistant-1 (0, 0)
1500058657: Received SUBSCRIBE from home-assistant-1
1500058657: smartthings/Car Charger/switch (QoS 0)
Could that socket error be all the problem? How can I figure out what the actual error is?
It also has things like
1500058855: Received PUBLISH from home-assistant-1 (d0, q0, r0, m0, ‘smartthings/Bed Fan Light/switch’, … (2 bytes))
1500058858: Received PUBLISH from home-assistant-1 (d0, q0, r0, m0, ‘smartthings/Bed Fan Light/switch’, … (2 bytes))
1500058867: Received PUBLISH from home-assistant-1 (d0, q0, r0, m0, ‘smartthings/Bed Fan Light/switch’, … (2 bytes))
1500058898: Received PINGREQ from home-assistant-1
1500058898: Sending PINGRESP to home-assistant-1
1500058958: Received PINGREQ from home-assistant-1
Looks like HA is connecting, but I don’t see your bridge. Did your Bridge get setup on the SmartApp to indicate where the SmartApp should send updates? If so, did you try rebooting ST?
Appears so from your earlier screenshot. I notice you have it setup for certain modes… are you in one of those right now? Try removing the modes from the smartapp.
It looks like one of my switches is working now! But for some reason the ‘Bed Fan Light’ one doesn’t work. In HA the switch is in the off position even though it is actually on, and when I toggle it to on it just switches back over.
Edit: Never mind it all seems to be working now! Thank you so much for all your help. I’m not exactly sure what fixed it but it works. haha
Just wanted to post and say I’ve been trying to get this working for about 3 weeks now and finally got it going today. All of you have been a great help. The simplest thing did it for me and that was just restarting my ST hub. life is funny.
Anyhow, I’m now trying to set up a zigbee button and zigbee dimmable lightbulbs connected to my st hub. Does anyone have an example of what that should look like in configuration.yaml?
I tried that but it didn’t seem to work for the button. Do i need to use “smartthings/iris smart button/button”? Also, would I put all my devices under the -platform mqtt header or do I need to separate them somehow?
I solved my problem just in case anyone comes across this. I wasn’t able to add the button to my main UI but i can monitor it and create actions based off of it through an automation like so
I had the same issue! After a bunch of installs and uninstalls of different versions, this command seemed to be the one that finally got me the 0.12 version: Unfortunately I am having trouble finding the post that got me there, but going back through my command router commands here is the order, after uninstall:
Can someone help me with this issue I’m having. I’ve been trying to get this bridge set up the past few days and can’t quite get it. Getting close thanks to this thread though!
My issue is that I can control my GE lights through the SmartThings app, and it shows up on my HA homepage, AND I am seeing the messages coming across the cmd sceen when I do “pm2 logs smartthings-mqtt-bridge” (image below). But, when I try to control from HA screen or sending a mosquitto_pub message it does not work. Also, when I control on the webpage, it doesn’t work but it self switches its display back to match the actual light state. So I feel like I’m so close!
Another weird thing is that when I do the HA switch using “on” message, it reports “Passing level instead of switch on”
note: I used the hassbian all in one installer… Alosm I had to do some weird node uninstalls and installs to get the 0.12 node version in order to install pm2 and smartthings-mqtt-bridge. So hopefully that didn’t screw with anything.