Help With HS100 Smart Plug and the tplinksmarthome binding

Hello, me and my friend tried our best at installing the TP-Link HS100 on OpenHAB 2.
We checked the documentation and copied & configured it. It still doesnt seem to work, could any of you give us a tip or the right source code?

tplinksmarthome:hs100:a [ ipAddress=“”, refresh=1 ]

Switch HS100_a { channel=tplinksmarthome:hs100:a:switch }


sitemap default label="Startseite"
Text label="-" icon="poweroutlet" {
		Frame label="-" {
			Text label="-"
			Switch label="No1" item=HS100_a icon="poweroutlet"

There are 2 errors in your files:

  1. in tplinksmarthome.things you have the wrong quotes, although hardly visible: but should be "
  2. in tplinksmarthome.items: you are missing te quotes: with the channel. It should be channel=“tplinksmarthome:hs100:a:switch”
1 Like

Thank you very much for the quick reply.

Now we would like to turn them on and off on different days of the week & the time. I know there’s a way to configure that in a .rules file, but the documentation doesn’t help too much with that.
Could you provide me with a guideline/explanation on how to do it?

If you have static requirements on when you want to switch on and off you probably want to use cron-style triggers as described here: The most complicated part is probably getting the proper cron expression, if you’ve never seen that before. In the end you get something like:

rule "switch on"
    // turn on every day 7:30
    Time cron "0 30 7 * * ?"

If you want to interactively set switching points you can look here: