Lag is an issue because of how the sockets are handled currently. Good luck with the IFTTT system, as with the Alexa interface, I didn’t want my password in plain-text.
I use both to be honest. I love the DTH for the controllers (brilliant work on all), I use this mostly. I only use IFTTT for an easier way for Mrs to control them.
Although I’d be interested in the password part, which area is responsible for sending them in plain text? Just so I’m aware. Cheers.
Maybe I should consider changing the info here, I can’t quickly find the source of it, but I recall seeing a wireshark dump and reading an article that at least the Alexa integration sent your password in plaintext.
Hi, I have been reading thru this and wanted to ask a few questions before attempting this. I run all mac in my house. I have a mac mini i use a media server and to host home bridge. Can I run the brew installed tcptunnel in terminal to use with this? I have also seen some apps in the mac apps store for it. Do you have a recommendation? I don’t really change colors much, so my biggest concern is getting the on and off commands to work and reflect properly in the ST app.
My other question is will the light state stay in sync if the lights are turned on or off manually or the magic home app?
Thanks!
-Jason
Since a Mac is nix at the core, as long as you can build it, I’d expect that it would run. Due to the platform limitation currently, I can not read the data back from the device in order to sync with other control points but on / off, colors, and animations do work with this implementation.
is the a way to run on mac that you are familiar with and know works?
I don’t have access to a mac to verify, if you want to do a TeamViewer session we can check it out.
Ok, So I started over using a centos image. I have the tcptunnel service up and running. I have the device handler and the device added via the IDE. when I go to configure the device from the app, I can’t save my settings as its telling me I need to fill out all required fields. However, I am filling out all of the fields? Has anyone else ran into this issue?
EDIT: I had a similar issue before with another device type. I got my iPad out and it worked just fine. Something is wrong with the app when using Android. I’m all set up now. Thanks for this great solution.
I can confirm this. I don’t have an apple so i’m unable to set this up any further. It’s frustrating having build a debian box on my esxi host specifically for this, learned how to install all the required tools, run the man-in-the-middle app, and done the DTH and device setup to fall at this very last hurdle.
Thanks for all the work on this. I hope it’s not a difficult fix, as i’d love to get my external leds working with ST
got this working as it;s possible to change the settings directly on the device. However, in spite of the fact it all seems to work i’m still stuck with a problem i’ve had since day one.- i want white lights (which i can set manually using the IR or the magic home app, but within a couple of hours it loses connection to the wifi and goes into an R/G/B random flash mode. I don’t think my neighbours will be impressed that they’re still acting as christmas lights. However, that’s not the fault of this DTH, and so thank you. Looks like i may need a different controller.
Hi Mike, I’m glad you got it working, and now you have experience with another ClienOS in your VM Environment. Regarding the random flash mode, since you mention that the controller you are using also has IR, I’d suggest covering the IR receiver with electrical tape or something, it may be picking up some IR from a TV remote or similar even bouncing off walls to get there and turning on an animation with a high speed. It is otherwise not typical that a controller would change its output when it loses WiFi connection.
It appears I’m having the same issue with editing the device on my android device. When I try to edit the IP Address I get the message, “Please fill out all required fields”. It appears I have all the fields filled. How did you resolve this without an Apple device?
@ph4r I’ve gone through all of the steps and am running tcptunnel on a raspberry pi, however every time
I try to change the colours in the smartthings app, the light doesn’t change and the tcp tunnel shows “no route to host” in the terminal. What would you think to be going wrong?
Do you have a firewall in place, or is the device ip address that you listed in the tcptunnel parameters not routable on the same subnet as the Raspberry Pi is on? Those would be the first things I would check, such as pinging the device and double checking the IP Address is correct.
Hi, I’m travelling presently, but I did some quick research and I just updated the version on GitHub so that it should now work better on Android for the device settings.
Hello. Thanks so much for your combined efforts and advice. I have this working on a Pi Zero using the addition of the & at the end of the command to force it to work in the background, however I would love to be able to add a script to make it start on reboot of the Raspberry Pi.
I had a look at the Dexter Industries link provided, and am able to edit the rc.local file and add a script (in this case as per the example ‘sample.py’ However I do not know how to script the following…
I need the script to:
a) Find the tcptunnel directory and then
b) Run the following command - ./tcptunnel --local-port=5577 --remote-port=5577 --remote-host=LED IP ADDRESS --log --stay-alive &
I am fairly new to this and scripting is a bit beyond me at this stage. I tried modifying the example script on that post, but no joy and I am worried about knackering my rc.local file and ending up unable to boot!
Any advice would be so very much appreciated.
Cheers!
No need to put it into a Python script, you can either put the commands directly inside or do that in a shell script if it makes you feel more comfortable. I’m not sure which distro you are running so you need to review if yout top line should call bash or dash or something else, but then just cd to the folder you need and then run the command as you would in interactive mode. I don’t have one to play with personally, but if you get it working, I’d appreciate it if you shared back here since the question gets asked a bit (cheaper to leave one of those on than a server all day).
@ph4r Thanks for your help, I managed to get it working, one query though. The LED strips aren’t able to be controlled on the new smartthings app, only the old smartthings classic app, is this a problem on my end or does the device handler need to be coded differently for the new app?
I wish I knew more about that. My account has yet to be transferred to the new app. My guess is because I have a custom devices and they are still working on the required support elements for these to work in the new app.
I see, no worries. I ws under the impression that you could simply just log into the new app now? Ignore me if I’m wrong, but I was never sent an email or anything telling me to switch. In any case, thanks for creating such a stable solution!