Tyfy/OctoPrint-TapoSmartplug

How to install

Opened this issue · 11 comments

Hi, i tried 3 times to install this plug but still doesn't work...

Can someone explain step by step how to install this please ?

Thanks a lot.

Hello,

Can you give us more informations about your problem ?

Currently there is an issue during install process regarding PyP100 library.
You can use following workaround:

Download PyP100 0.0.10 archive from internet. For ex:
https://files.pythonhosted.org/packages/d2/cb/58b3913adfb7515bf04721f8c31f210925d74cd191d723d24ec785521e3e/PyP100-0.0.10.tar.gz
Put downloaded file on your desktop
Create a text file named "HISTORY.md" on your desktop . Be carefull to use .md as extension.
Open PyP100-0.0.10.tar.gz with 7zip and navigate to following path:
Desktop\PyP100-0.0.10.tar.gz\PyP100-0.0.10.tar\PyP100-0.0.10
Drop HISTORY.md file on 7zip view and confirm adding file to archive.
Connect to your Pi system via ssh and upload the updated tar.gz to pi home directory
Install PyP100 library manually with following command:
/home/pi/oprint/bin/python3 -m pip install /home/pi/PyP100-0.0.10.tar.gz
Finally, install Tapo plugin via Octprint GUI .
Hope it will help ;)

Hi,
I had the same problem and with the help of the cp2004 from octoprint discord server he managed to solve the problem with these steps:

- SSH to your octopi
- source ~/oprint/bin/activate
- pip install one
- python -m pip install --upgrade pip
- pip install pycryptodome==3.9.8 pkcs7==0.1.2
- pip install PyP100 --no-deps
- pip install https://github.com/Tyfy/OctoPrint-TapoSmartplug/archive/master.zip
- sudo reboot pi

The library has a dependency conflict with OctoPrint, so it counts back until it finds one that works. So this should work.

Hello i tried again.

No errors with all of your steps but still doesn't work on Octoprint UI.

In this screenshot, i wan't to be sure that login and password are the same as i use on the application TAPO on Android ???
Capture

Thanks for explanation.

Are you sure that IP is correct? I use it on android too usually the IP of tapo is something like 192.168.1.x. Try to use the app called NetworkScanner to determine the IP of the tapo plug more correctly. That would be a better starting point. Later make sure that you use your mail address as your username and for your password don't use symbols, uppercase letters for example catcat1. I know this is very vulnerable but unfortunately many users reported this issue. Also, don't forget to reset your tapo plug after your password change because some users also reported that their password didn't change after the password reset till they reset their plug. Currently, the library that was created for the tapo plug seems to be crap so we need to adjust our settings like this.

Hi cryptedwcoder , yes i'm very sure for IP with my hotspot phone it's 192.168.43.X and at home it's 192.168.1.X .

i'll try different password tomorrow ! i'ill answer to this post if it works.

Thanks for answering so fast ;)

FINALLY it works !!!!!!!!
Capture

I've reseted the plug and change password !!

Thanks a lot Crypted

You're welcome.

Meanwhile if one day the lightning icon starts to spin without stopping (at least it happened to me after a while), if you re-upload it with the zip file I added the link to, the problem goes away.

https://github.com/a0s/OctoPrint-TapoSmartplug/archive/refs/heads/master.zip

Hi, I had the same problem and with the help of the cp2004 from octoprint discord server he managed to solve the problem with these steps:

- SSH to your octopi
- source ~/oprint/bin/activate
- pip install one
- python -m pip install --upgrade pip
- pip install pycryptodome==3.9.8 pkcs7==0.1.2
- pip install PyP100 --no-deps
- pip install https://github.com/Tyfy/OctoPrint-TapoSmartplug/archive/master.zip
- sudo reboot pi

The library has a dependency conflict with OctoPrint, so it counts back until it finds one that works. So this should work.

Hey @cryptedwcoder just goign thorugh this
- pip install PyP100 --no-deps is where i got a little bit stuck.
i just get this error.
Error

I would love pointers / help on this on how to fix this ^-^

Can you please try to install it using this Zip File.

https://github.com/a0s/OctoPrint-TapoSmartplug/archive/refs/heads/master.zip

If it doesn't work I will try something else.

Can you please try to install it using this Zip File.

https://github.com/a0s/OctoPrint-TapoSmartplug/archive/refs/heads/master.zip

If it doesn't work I will try something else.

Nop, the installation doesn't work for me either
log.txt
.