TP-LINK HS100 Smart Plug (WiFi)?

@lipp_markus merging would be nice indeed :wink: Iā€™ve not tested if a re-install in needed on update, but that wouldnā€™t be helpful. If you want to manual install them you can always take the jar from the eclipse market place. The binding did get a major update internally, and you can set the led on/off.

1 Like

thanks Hilbrand, the voltage channel is fixed.

installed addon from marketplace today and it still works perfect with the HS200! keep up the good work @hilbrand. Thanks.

Hey, thanks for the binding, I followed your instructions and it was smooth as butter, but Iā€™m a total noon so I got them (2 HS200 switches) on the "things but I donā€™t know how to make them Items so I can use them :(.

Are you looking a manual configuration? something like this?

Switch TP_L_Switch ā€œSwitchā€ { channel=ā€œtplinksmarthome:hs200::switchā€ }

In this topic there is an extended manual configuration example. Itā€™s for plugs, but and has some more than needed here probably. But it might give an idea.

If want to use the switch to control some other device via openHAB you should create a rule. Is that hat youā€™re looking for?

I have them to work!!! you are the freaking master, just added the switches and now I have control of them perfectly, donā€™t know why they were created on a different sitemap but thatā€™s another issue.

thanks a lot.

oh no, Iā€™m creating the Item using Paper UI, and it seems like itĀ“s creating the item always on a different sitemap thatĀ“s called _default, the thing is that _default sitemap is not anywhere to find, and iā€™ve never created it. so IĀ“m chasing my tale on this one.

any ideas anyone?

@hilbrand I just recently picked up an HS200 and R270K and installed your binding. The HS200 is auto-detected and works great, but the R270K doesnā€™t auto-detect and when added manually its displays online but the switch control doesnā€™t work and shows a signal of 0 dMb.

I saw that you didnā€™t have a R270K to test with, so let me know if there is anything I can do to help you test it out.

Hi @Blair_Thompson

Nice to have someone with the real thing :wink: I didnā€™t have one as you correctly concluded. It was a bit of a stretch because these devices are fairly new and I couldnā€™t find any information online.

There are several options:

  1. Set the log level to trace. This will give you more information also what the device returns. This might give enough information for me to update the binding. Via the karaf console you can set it: log:set TRACE org.openhab.binding.tplinksmarthome.
  2. You could try to manually add the R270K as a lightbulb, by manually select configure a lb1xx using the ip address of the R270K. Lightbulbs use slightly different data format, and it might be the R270K uses the same. If itā€™s the same the rssi should work, and/or you should be able to switch it on/off.
  3. If all doesnā€™t work then the only option I can think of is to proxy with the devices and the kasa app and monitor network traffic with wireshark (there is a plugin that can decrypt the tp-link protocol so you get readable json).

If you have some useful data I can update the binding and add the data to the tests. You can send the data/logs in a private message or e-mail it to me via openhab@h72.nl

So what a I doing wrong?
Copied org.openhab.binding.tplinksmarthome-2.2.0-SNAPSHOT.jar into the usr/shared/openahb2/addons folder.
Did a reboot an re-start of the service,
added

tp-linksmarthome:hs110:home "TP-Link UPS Socket" [ipAddress="192.168.0.19", refresh=60]

to my thing file and

Switch BedroomHeater {channel="tp-linksmarthome:hs110:home:switch"}

in the Items, but nothing is showing in Bindings, Things or Items in paper ui or in Habmin

It should be ā€˜tplinksmarthomeā€™. Older versions did use the -, but I removed it to be more consistent with other bindings.

So removed the - from the things and items, but I still cant seen anything in Things or Bindings.
The Item is now showing in Paper UI.

What name should I be looking for in bindings, Iā€™m just assuming that it will show up as something like ā€˜TP-Linkā€™.

thereā€™s a black friday deal on this plug at amazon.co.uk, at Ā£19.95 (which is Ā£15 off).

Do the tp link devices still work if the internet goes out not the wifi just the Internet if they loose connection to tp link servers would openhab still be able to controll them while the Internet is down

And can you set them up from just using PaperUI

The answer to your first question: yes, you do NOT need a internet connection to operate these switches and they will work if you internet is down.
Your second question: if you use the binding from the marketplace, you should be able to do so; I have not verified it as I am exclusively using textual configuration.

You need the Kasa app to initial connect the devices to your local network, after that you can control them locally. Via PaperUI you can find them and configure them.

Ok thanks for the info Iā€™m thinking of using theses to turn sockets on and off instead of Sonoff (recently seen pictures of Sonoff devices that have set on fire) thinking these will be of better quality.

I have installed the tp link binding via PaperUI from the eclipse marketplace
I understand you need to join them to the network before you can set the, up with PaperUI sounds easy

Got 3 HS100 uk version plugs today from Argos 3 for Ā£40

Binding working prefect (Auto Discovery Didnā€™t work manually added them via IP address writhin binding)

Installed 3 HS200 switches. Two are for recessed lighting, one for a ceiling fan. All three switches detected right away and working perfectly.

Just some great news on the binding. The pull request has been merged into master and is available will be available in the snapshot builds and will be part of the next release of openHAB 2.2 !