Greatly appreciate the time and effort taken to develop this functionality, just purchased Tapo plugs and only checked after buying them 2 days ago whether they could be integrated!
I’ve successfully managed to implement this for one device, I’ve tried inputting multiple IP addresses of all the plugs I now own though it’ll only pick up the last one on the list. If I remove the rest and keep one address it’ll work with that one device.
Probably a silly question but is there a specific method for listing multiple addresses associated with various plugs?
Hi! While I was researching, I stumbled upon this thread…
My question for you all would be if it would be possible to port this code to Homebridge? I’m a complete noob when it comes to coding, so I have not a single idea how to do it myself
Thanks!
having same issues as above
plain password, with or without quotes (single /double) same error as above.
Does anyone have any suggestions (rebooting already been tryied )
Tried changing password, logging out of the app. Using quotes or not.
Hmmmn.
Error in log:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/PyP100/PyP100.py", line 155, in login
self.token = ast.literal_eval(decryptedResponse)["result"]["token"]
KeyError: 'result'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 197, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/tapo_p100_control/switch.py", line 41, in setup_platform
add_entities([P100Plug(p100)])
File "/config/custom_components/tapo_p100_control/switch.py", line 49, in __init__
self.update()
File "/config/custom_components/tapo_p100_control/switch.py", line 79, in update
self._p100.login()
File "/usr/local/lib/python3.8/site-packages/PyP100/PyP100.py", line 159, in login
raise Exception(f"Error Code: {errorCode}, {errorMessage}")
Exception: Error Code: -1501, Invalid Request or Credentials
This works fine for me. I have no quote surrounding either my username or password in the config. Worked on 0.117.2 and 0.117.4. Set up Tapo account and plug on iPhone X via iOS app.
Logged out of android
Logged in with IOS (ipad)
Trying restarting HASS host and machine same errors
also trying on 3 different IP adresses (I have 3 tapos)
My experiance so far is that you can only set one plug, if you add multiple lines to the config file HA picks the last one and runs with that. Hopefully @fishbigger has success his/her efforts to get multiple plugs working. Ill stay tuned.