TP-Link dimmer switch binding?

Oh,

Tried the 2.3 Snapshot you linked and it seems to be working!

Thanks!

I’ve updated the binding in the Eclipse Market Place. It contains the fix as well as fixes made after the binding I referred too. (For example the ability to set id as identification instead of ipAddress to handle ip changes better).

We tried the binding, it seems everything is working as expected.

Many thanks for your help :wink:

Thanks for this. I had no idea how to even use the eclipse marketplace :slight_smile: found this for others looking for a solution also.

Eclipse Market Place instructions

I see the binding in the marketplace “TP-Link Smart Home Binding (Beta) market:binding-3614612 - 1.0”.

Question is do I need to uninstall the original binding? If I do uninstall then will my device configurations stay?

@Tim_Harper: Follow the instructions about entering Market in the search field on the Binding tab and you will see the binding.

Yes if you want to install the market place binding you need to uninstall the installed binding. It uses the same namespace i.e. it will not install.

Yes. if your things were created some time ago (prior to 2.4 release) you might have to recreate them to have property to set the device id (this to handle changing ip addresses of the devices)

I’m new to openHAB, so I’m at a complete loss of understanding in respect to back-end operations.

Can someone explain, or point me to a resources that explains, how I would go about setting up said rules and then incorporating that into a button in the Panel UI?

Hi Jacob, I see that no one has responded here, so I thought I’d follow up (I’ve been away from the OH community for a few months and only came back to it this week).

I’m unclear on what you’re asking. Do you want to have a button that triggers a fade on the dimmer switch, and a separate button to trigger an immediate off state? Or do you want a switch that enables you to toggle between the different modes available on the TP-Link dimmer?

Personally, I just set the gentleoff mode using the TP-Link app, and left it at that.

Hello everyone,

I’m fairly new to OpenHAB (previously was experimenting with Home Assistant, although a few things didn’t quite work how I wanted there, so I thought I’d give OpenHAB a go.)

I have invested into the TP-Link Ecosystem and have swapped all the light switches in my house with HS200, HS210 and HS220 switches, and love the capability the Kasa app gives, where you can schedule the HS220 lights to fade on/off at certain times, specifically by sunset/sunrise.

I would love to be able to move that automation to OpenHAB instead of the Kasa app for the slow dimming functionality. I already have the Astro Binding installed to take care of the Civil Dawn/Civil Dusk times.

Has the slow fade on/off been incorporated in the tp-link binding, and if so, could someone point me in the right direction for the command to do a 10-20 minute fade-on via a rule?

Much appreciated!

–Edit–
I stumbled across the universaldimmer function, and implemented it successfully, which makes me incredibly happy, as I was unable to get any kind of automations working in Hass.io in regards to slowly fading a light over a set period of time, but this works a treat.
Progressive Dimmer Rules

My only issue is it doesn’t appear to work with my Magic Home Single-Color LED Controller, although it seems I can’t get the dimming function to work even manually with that through openHAB.

Will continue to tinker with it and see what I’m able to figure out.

You can configure a thing with the transitionPeriod. It’s not changeable dynamically, but maybe not needed. You can configure a thing specifically for this option, next to another thing with normal behavior:

1 Like

Thk Hilbrand for the good support over this binding. I’m currently experiencing a strange behaviour with an HS220 Dimmer.

  • When controlling the dimmer item from openhab, the dimmer value always return to 0 and the physical light stay closed
  • When starting the light manually (app of physical wall dimmer) the Value gets updated in openhab and I can Slide around in openhab without any issue (except if I slide it back to 0)
  • If I close the light manually (app of physical wall dimmer) the Value gets updated to 0 and same behavior, can’t restart it in openhab.

I’ve been trying to search around in the forum but aside from this post nothing showed up

My event log is pretty much the same thing

2020-12-30 19:37:32.186 [ome.event.ItemCommandEvent] - Item ‘lt_ss_mur’ received command 35
2020-12-30 19:37:32.198 [nt.ItemStatePredictedEvent] - lt_ss_mur predicted to become 35
2020-12-30 19:37:32.201 [vent.ItemStateChangedEvent] - lt_ss_mur changed from 0 to 35
2020-12-30 19:37:32.338 [vent.ItemStateChangedEvent] - lt_ss_mur changed from 35 to 0

I did delete my thing in paper UI and Manually add it back

Details:
Binding:
TP-Link Smart Home Binding (Beta) market:binding-3614612 - 1.0

Device (Remove identification info):

device name Wi-Fi Smart Dimmer
feature TIM
hardware version 2.0
model HS220(US)
sofware version 1.0.5 Build 201211 Rel.085320
type IOT.SMARTPLUGSWITCH

I’m missing what openHAB version you are using. Because only if you are on 2.4 there is a reason to use the marketplace version, and that version I’m not very actively updating. The 2.5 included binding contains all updates and also changes for hs220.

Thk for this super fast answer. I was running OH 2.4 but I’m currently setting up a newer version of OH 3.0. This should fix my issue

Thk again