Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation documentation #1

Open
gettevan opened this issue Jun 29, 2024 · 0 comments
Open

Installation documentation #1

gettevan opened this issue Jun 29, 2024 · 0 comments

Comments

@gettevan
Copy link

I struggled quite a bit to get the Tapo-P100 plugin working in an environment with python 3.9. The instruction as provided did not work for me and I need to do following:

  • When the Installation of the @petretiandrea plugp100 was done as non-root user, domoticz was not able the find the module locally. When i installed with 'sudo pip install plugp100', domoticz had no problem find the module
  • The 3rd bullet of 'How to install the Python v3.8 / v3.9 version' for plugp100-3.9 says download the ZIP file, and then follows a link the Domotiz Plugin. What you mean here is obviously the zip of the plugp100-3.9 archive instead. (took me some time to realise that)
  • Having done a root level install of plup100, I needed to copy the plugp-3.9 as 'sudo cp -a plugp100/ /usr/local/lib/python3.9/dist-packages/' of course.
  • For the plugin itself, domoticz could be no means locate the p100.py file, At some point I had maybe 5 or 6 copies of it in all possible paths for my shell. In the end I copied the file to my /home/pi/bin directory and modified the plugin hardcoded to that location, before domoticz was able to locate the file.

The issues I encountered may be related to my specific domoticz installation.

Getting things working, I see that any command to the plug takes extremely long (10-20 seconds).
When a command is entered manually with p100py, I see following on sterr:

Default protocol not working, fallback to KLAP ;)
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0xb572da30>

Is it possible that the delay is cause by the attempt to use the "Default" protocol?
If so, it could be worth to try configuring "KLAP" as default. If such a configuration would be possible in the plugin in or the p100.py script.

@gettevan gettevan changed the title Installatoin documentation Installation documentation Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant