-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot get home assistant to control ST outlet thru MQTT bridge #54
Comments
Hey @bdudle1, which MAC address did you use? It should be the MAC address of the host, not the docker container. Can you give me an output of |
@stjohnjohnson Thank you so much for the response. I've tried the mac of my linux VM running Ubuntu (and mqtt), the docker container, and the host machine that runs the VM. Here's a screenshot of my current device config in ST IDE. By the way, do you know why it goes to "inactive" for me after a day? Here's ifconfig from my ubuntu machine (running hass, mqtt, and mqtt-bridge in docker containers):
|
Interesting, I haven't tested VMs. So the problem is that SmartThings ignores all messages from IP/Mac addresses it doesn't recognize. Can you show me the contents of |
Is there any log on the Hub or ST that shows incoming/dropped messages? It's pretty slim because i deleted it recently. The last couple events are from me trying to turn off the switch using hass:
|
Click the save button in the Smart App, it will update the device. What do the logs in SmartThings say about the device/smartapp? |
I can see events for the device in the IDE side:
|
The only thing that could be causing this is SmartThings throwing away the messages because the MAC address that the message comes from does not match what you saved. But I don't know what your computer is sending. :( |
Is there any way to see what it is sending? Could I do some sort of packet capture somehow? |
Also... is it only verifying by MAC address? Or is it also verifying on IP address? |
I bet you could perform a tcpdump between your VM and the ST Hub. It's all HTTP so it should be easy |
ben@hass:~/hass/hass-config/scripts$ sudo tcpdump dst host 10.10.10.70 -v -e -i eth0 |
Hi, just wanted to chime in with a Home Assistant config that works for me, with this I can control and check status of an ST outlet (the one in the current kit):
Might help you troubleshoot some more. |
Thanks. My problem doesn't appear to be HASS config related. It seems that my hub is just ignoring the request. I even did manual requests with mosquitto as well as just straight HTTP posts to the hub and it doesn't do anything. I'm going to try to send the messages from the host machine and see if that works. If it does, then I should just need to put the host's mac into the settings (but I doubt it will work). The VM must be adding something to the post that ST doesn't like. @stjohnjohnson Is there any documentation on what the ST hub should be expecting? (I know I could probably find it...) |
just FYI, i had a spare laptop laying around... i setup HASS, MQTT, and MQTT-bridge on it and everything works as expected... So, it's definitely not something I'm doing wrong :) Ideally, I can figure out how to get this to work on the VM. Any thoughts on how to troubleshoot further? ST doesn't like the request coming from the bridge, but I don't know how to figure out why. |
Honestly, the documentation for this interaction is missing and/or terrible. I pieced all of this together from forum posts and the tiny amount of docs. As far as I'm aware, the hub doesn't respond to messages from a mac address not listed as a device. |
Thanks. I really appreciate you trying to help me. I'll keep playing with it and see if I can find anything out. I'm curious if anyone else is doing this with a VM and having success. If there's an issue, it might be worth mentioning in the project somewhere. |
For what it's worth... I did finally get this working... The only thing I did differently was to restart all 3 components after updating the MAC and IP address on the device in the ST IDE. It is working fine now on my VM. |
I need help :(
I cannot get home assistant to control my ST outlet (the only ST device I have). HASS does accurately show the state of the switch (on/off) when I control it through ST. However, when I try to turn it off or on thru HASS, it never makes it to ST.
I followed the guide here. I used Docker for all things and I'm running them individually. I verified that the network ID and MAC address match in the ST IDE. What else am I missing? What can I look at to troubleshoot the issue?
The text was updated successfully, but these errors were encountered: