[TapoControl] - Control Tapo Smart WiFi-Devices with Openhab - Official Support Thread

I did it one hour before your post and I wanted to post the solution here too.
I did it like you and all devices are running now!

Ok, now its also working for me.

I’ve done some additional stuff:
-Delete tmp&cache
-Update Openhab from 4.0.0 → 4.0.4
-Recreate tapo-cloud bridge without cloud discovery (only UDP) again

I was not sure, what exactly helped …but dave your post helps me, that this exactly issue is somehow fixable with this snapshot. :+1:

2 Likes

Where can I download the fixed version org.openhab.binding.tapocontrol-4.0.4-SNAPSHOT?

Can I use it for OH 4.1.0M3 as well?

Many thanks
Stefan

I managed to download org.openhab.binding.tapocontrol-4.1.0-20231127.032506-101.jar
from jfrog.

Unfortunately I still see the same behavior. Doesn’t this version contain the new Secured KLAP HTTP Protocol?
I don’t get the new “Advanced Options” provided in the UI - still see only the “Refresh Interval”.

I removed the previous Add-on 4.1.0M3 and copied the new .jar in the /addon folder.
I seems to be recognized well, as per bundle:list output.

Anything else I need to consider?

324 │ Active │  80 │ 4.1.0.202311270409     │ openHAB Add-ons :: Bundles :: TapoControl Binding
openhab>  
324 │ Active │  80 │ 4.1.0.202311270409     │ file:/openhab/addons/org.openhab.binding.tapocontrol-4.1.0-20231127.032506-101.jar
openhab>

Many thanks for any hints :slight_smile:

Just download the right jar from my “OH-Compiled-Addons” repository linked in the first entry of this thread.
I think the jfrog is the unmerged version.

2 Likes

thanks a lot Chris - I missed this linked :frowning:
Its working now :slight_smile:

Thanks a lot also from me to you, Chris

This issue with the new firmware and protocol style for Tapo bulbs troubled me for about three months by now.

The suggested solution works out of the box, but I had to remove the original Tapo binding first, then save the org.openhab.binding.tapocontrol-4.0.4-SNAPSHOT in the addons folder, restart the openhab service.
(I installed it on a Raspberry Pi 4, current version is 4.1.0.M3)

After reloading the bulbs can be controlled again from within OpenHab.

1 Like

Saving org.openhab.binding.tapocontrol-4.0.4-SNAPSHOT` in the addons folder and clearing cache and removing binding and restarting etc etc didn’t work for me. Still got errors 1111 and handshake error.
After removing the Tapo device (L510) in the official app Tapo and adding the same device again it worked.

Also for me still have the error :


2023-12-05 21:46:59.230 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'tapocontrol:P105:accountTapoCLoud:PresaTapo1' changed from OFFLINE (COMMUNICATION_ERROR): login failed (1111) to UNKNOWN: login failed (1111)

thanks

My Tapo P115 smart plugs finally reported yesterday that there was a firmware update available. I updated them and then changed the connection to use the KLAP protocol (using the latest snapshot binding for OH 4.0.4). They worked right away!

So maybe you can try to remove the Tapo device in the app Tapo. And then add it again. Worked for me.

I always get the same situation :

image

This error (api error -1) I got when I still had the market place addon installed. So could it be something went wrong installing the third party addon? I made mistake to save org.openhab.binding.tapocontrol-4.0.4-SNAPSHOT-sources.jar in the addon folder instead of org.openhab.binding.tapocontrol-4.0.4-SNAPSHOT.jar. After installing third party addon correctly I got error 1001 or handshake error. Then I removed the Tapo device in the Tapo app and added it again. Then in Openhab click disable and then enable the Tapo thing

So I ran into the same issues of course but I wanted to clarify what did work exactly for me, hoping it will help others.
I am using file base configuration and running OH 4.0.4.

1 - Remove the TapoControl Binding from the Binding interface
2 - Download the latest snapshot “org.openhab.binding.tapocontrol-4.0.4-SNAPSHOT.jar” from here oh3_compiled-addons/ at tapocontrol · wildcs/oh3_compiled-addons · GitHub
3 - Put that file /usr/share/openhab/addons/
4 - Set file permission : sudo chown openhab:openhab /usr/share/openhab/addons/org.openhab.binding.tapocontrol-4.0.4-SNAPSHOT.jar
5 - Stop openhab : sudo service openhab stop
6 - Clean cache (just in case) : sudo openhab-cli clean-cache
7 - Start openhab : sudo service openhab start
8 - Add the KLAP protocol in my configuration file (which is under advanced settings if not using files)
My configuration looks like this :
tapo.things (note that KLAP is all uppercase and it did not want to work with lowercase as seen in previous posts) :

Bridge tapocontrol:bridge:myTapoBridge “Cloud-Login” [ username=“xxxx”, password=“xxxx” ] {
Thing P110 p110SV06 “Sovol SV06” [ ipAddress=“192.168.0.9”, pollingInterval=30, protocol=“KLAP” ]
}

I had to update my tapo.items too as the channel changed (I had to add “myTapoBridge”) :

Switch TAPO_SV06 “Sovol SV06” {channel=“tapocontrol:P110:myTapoBridge:p110SV06:actuator#output”}
Number TAPO_SV06_Power “[%.2f W]” {channel=“tapocontrol:P110:myTapoBridge:p110SV06:energy#actualPower”}

I did get some error upon restarting but it did clear up automatically.
If your devices are not using the latest firmware you may have some issues too. Before doing this, I only had one device still working (the one not automatically updated). After that, it was the only one that failed. It did work immediately after a manual firmware update.

Hope it helps.

2 Likes

I have this response in log: ==> /var/log/openhab/openhab.log <==

2023-12-14 22:36:24.920 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘Tapo.things’

2023-12-14 22:36:24.926 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘Tapo.things’ has errors, therefore ignoring it: [5,159]: no viable alternative at input ‘“’

[5,160]: missing ‘]’ at ‘KLAP’

My Things file is this:

tapocontrol:P105:myTapoBridge:mySocket          "My-Socket"     (tapocontrol:bridge:myTapoBridge)   [ ipAddress="192.168.1.205", pollingInterval=30, protocol=“KLAP” ]

Youre quotation marks ‘’ are looking different than at ip-address?

on KLAP?

Hi There,

Newbee in here.

Running 4.0.4 on ubuntu 21.04

Just did exactly mentioned as above. But the addon does not show up on paper UI /things/+…

Am I missing something?

Thanks

Hi

Please can I check if the Smart Contact Sensor (T110) is supported by this binding?
I have one of these T110 sensors but I cannot get it to work (it has no IP address on my network and seems to communicate through the hub so is it expected to work with this binding?)

If I try to add a Thing manually it doesn’t seem to pick up the bridge…

Note I have a number of Tapo bulbs which are working well with this binding

Thanks
Steve

Will there be a fix so this whole workaround is not needed in the near future?