SmartThings Community

TP-LINK HS110 Smart Plug w/ Energy Monitoring, Wi-Fi Enabled

(James) #97

Hey Dave G. I don’t mean to hijack this thread but I’m having trouble with 1 step from your instructions @ GitHub.

Try to get HS-200 working with Smartthings hub v2

Step I’m having trouble with:
Running the “TP-LinkServer_v3.js”

I’m using Windows as my Server PC
From the Node.js command prompt version is v8.1.2 (I downloaded the MSI as per your instructions)
I was hoping to get the results in your instructions when I ran the test but instead I get "SyntaxError: Unexpected token <"
I was able to run another test with a “Hello World” js and it worked
I also tried your “GetdeviceIPs.js” and same error

I might be totally doing this wrong but please point me to the right path. Let me know if you need to full Syntaxerror msg and any other info.

Thanks in advance for your time.


(Mantas) #98

hello im just starter in smartthings. I need know or you crate Cloud-Based_TP-Link-to-SmartThings-Integration. because I do your metod but nothing happens. if is you crate this metod I need ask mi and I haw several questions .

(Dave Gutheinz) #99

Yes. Go to the below link and I will help.

In the meantime, assure that you have followed the published instructions explicitly. These are at the getHub site in a document “Cloud TP-Link to SmartThing Installation.pdf”. You might want to print these and mark the steps so you can be explicit on when / where the installation fails.

(Mantas) #100

I don’t find haw to write to you in email. becuose write here. what mi

what this red meens?

(Dave Gutheinz) #101

There is no error at the called line. However, there is something spurious on line 32 (indicated by the space between the two lines.

Usually done by not copying/pasting as text. I tested the app exactly as copied from GitHub this AM and it worked fine. Again, a copy / paste problem.

(Isriam) #102

i just used the cloud version of this and worked great.

1 Like
(Mantas) #103

to my now to works great. problem was a numbers by the code lines. everything delet and works program.

(Cyndi H) #104

I’m not into coding and I’m new to HA and I’m just trying to figure out if you can integrate these with the smartthings hub (no coding involved) Thanks

(Tyler Durden) #105

You don’t have to code anything, but you have to install custom code that’s already been developed. It’s not too difficult to do. (First time is the hardest.)

Here is a link to a thread that discusses the custom code that will integrate TPLink devices to SmartThings via the cloud.

This is a link that explains how to install custom code in general.

(Cyndi H) #106

Thank you :slight_smile:

1 Like

not sure if it has been already mentioned earlier but integrating them via IFTTT is quick, simple and requires no code at all. in ST just create a simulated switch, authorize that in IFTTT, authorize kasa to IFTTT and then create recipes to turn on and off.

i can look up for instructions and paste here if anyone is interested.

(Wyatt Smith) #108

Do you have a guide for this?


Sure mate. Gimme time till this weekend, will send with some screenshots.


ok, here is my take at a guide. [this is my first attempt so please bear with me]
pre-requisites: accounts and access to IDE, Kasa and IFTTT

Step 1: create a simulated switch in IDE. log in to > go to ‘my devices’ > new device > give it a name, network ID (it can be anything you like) > select ‘simulated switch’ under Type > select your location and other fields > click create

Step 2: give access to your smartthings and kasa in IFTTT quite straight forward. login to IFTTT and search for smartthings, and Kasa under services. both will require you to login to respective accounts and provide access to your devices.

Step 3: create applets in IFTTT go to my applets > new applet > If simulated switch turned on, then turn on your kasa plug.
Similarly create another applet with the rule that if simulated switch turned off then turn off your kasa plug.

That’s it! hope it helps.

regrettably, i couldn’t get down to doing it with screenshots.


Has anyone tried the TP-Link HS107 or HS300 power strip with Smartthings?

Would integration be a similar process?



There is a better ‘cloud based’ integration that works almost like a native integration… Try that… A simple search on forums should take you there

(Dave Gutheinz) #113

HS107 and HS300 do not currently work with the TP-Link/Kasa SmartThings integration. I am currently working on it and hope to have something soon. (It is currently working in my Hubitat environment except for capturing the device label, I have to use temporary and update the label.)

Testing is on the HS107 (I have one). I believe the HS300 is the same on/off command structure. For HS300, there will initially not be an Energy Monitor function.

Watch the link:

(Dave Gutheinz) #114

The integration I mentioned earlier has now been updated for the HS107 and HS300.


Awesome - thank you!


This is fantastic thank you very much for your efforts!

1 Like