H200 always worked with tp-link binding. It stopped working on new revision where they now use the tapo cloud authentication (but does work locally when testing with python kasa).
I think what we need is a binding redo. We currently have Kasa and Tapo binding. The Kasa binding is dead, there’s no development for multiple years.
More and more device now require Tapo authentication like this binding require. Adding support for kasa device would be a very big plus.
I did try my hand at converting python-kasa to a binding but I can’t make head or tail about OpenHab way of doing things.
HA already have everything working for a while, the port from Python-Kasa to HA is very easy, and python-kasa is very actively updated
Very strange. I left it for a couple of days as I needed to look at other stuff. When I came back, the binding successfully to install itself. Thanks for sharing your experiences with this binding.
Can you increase logging for tapocontrol and do a scan for new devices, and attach the logs here. Looking at the binding code, if it’s a new device ID, it should be relatively easy to add.
Looking at some logs here, my kasa devices are detected, but not ‘supported’:
that would be the best. If we can have one binding that control both kasa and tapo devices (since they are moving more and more to the tapo authentication anyway), would solve many problem we have now.
Quick question, does your binding talk directly to the device using tapo authentication or you go though a cloud api?
If you need anything, log, python-kasa log, whatever. I currently have 89 devices connected in kasa with 2 camera on top in tapo. Some are old kasa and some are the new kasa that use tapo authentication. Like the new dual light switch dimmer + fan controller (KS240) that is using child device. I’m currently doing a contraption through home assistant with nodered to have it working in openhab.
It’s a hub Paul. Similar function to the H100 from the product description (different physical format, more sensors can be linked) but also allows cameras to be linked - though I don’t think cameras could be integrated with OH. No idea on the Comms, but I have a unit so, with clear guidance, would be more than happy to run any tests or generate any additional log data
It is available under HA so, if I understand some of the previous threads, integrating the Kasa-Python that HA employs into OH might simplify getting the H200 linked
Thanks - I don’t see how it would be possible to utilise a python library from within a java based app like OpenHAB. Best I can see is using the python-kasa code for inspiration. I’ll try find some time to look at the python code for the h200 auth and see how the existing openhab code could be modified to support it.
Thanks Paul - that’s why I said about clear guidance, things like the structural differences, limitations and functions between Python and Java are a complete mystery to me - give me Fortran and I’ve got a clue, beyond that….!
yes the old one use the kasa protocol. We would need to implement them like in the tplink binding. I tried to understand how openhab work with binding in the past and I can’t make head or tail. I do know java, but I think the concept elude me.
We could see how python-kasa do the check and implement it in the discovery binding. We could also add a 4th connection type which would be kasa (whatever the name) and skip the tapo cloud then.
I also saw that python kasa connect directly to device with the tapo cloud authentication. Unsure if the openhab binding connect to the cloud api or directly.
edit: As for python, we can call python script within java using jython. I know that we already have python scripting support in Openhab since Openhab 3 and it moved away from jython in 5.0. Maybe we can leverage that?
I added a new TAPO device S112 Smart Switch Module the tapocontrol binding. The device is a two channel relais switch, which has two modes, two seperate switches or motor control for blinds. I tested it in my productive environment and it works fine for me.
If you want to help me testing the binding you can download it from here.
Some important information upfront:
it only works on the newest 5.1 snapshot release (version issues on older versions)
as for other devices, you have to configure it in Tapo first. If it is running from there it should be detected from the binding (don’t forget to add the Cloud Cloud Login).
There are three channels where Output 1/2 are used if the device is configured as two seperate switches and the Rollershutter channel for the Rollo-Modus (maybe called blind-mode in english).
Use Switch Items for the switch channels and rollershutter item for the rollershutter channel
All my Tapo Socket P100 do not work since this morning. The Binding is not able to login and stays Offline. Maybe there was an update of the devices this night. It worked without any problems till yesterday. All my other Tapo devices (H100, L510, L920, P115, S210, S220, T110 and S112) work fine and are all Online.
Here are the logs:
My Versions:
openhab: 5.1 snapshot
tapocontrol binding: 5.1 snapshot
Tapo P100 Hardware Version: 2.0
Tapo P100 Firmwareversion 1.4.0 Build 250901 Rel 175625
What I have tried allready:
Restart openhab
Remove and Add the thing
Try it in my development environment
Somebody else out there with the same problem?
In the meanwhile I read in the IOBroker forum this morning that they have the same problem with this new FW of P100. I fear that this is only the first device with this new FW and a new Authentification and others will follow.
Hi folks, I found a magic botton in the Tapo APP. It is in the profile section and is called "Third-Party Compatibility (“Kopatibilität mit Drittanbietern” in german)”. If you switch that on everything works again. I don’t know now what this switch realy does but I think they keep the interace stable with this switch. We will see in the future. Thx to Test Adapter TP-Link Tapo forum.