petretiandrea / home-assistant-tapo-p100

A custom integration to control Tapo devices from home assistant.
MIT License
816 stars 102 forks source link

TAPO Hub not connecting #431

Closed jonathanoakley closed 1 year ago

jonathanoakley commented 1 year ago

Bug

Following the update to 2.0.1 (Tapo integration), the Tapo Hub was reporting as not configured and further will not reinstall even when deleted and with a clean install

Log

Logger: homeassistant.config_entries Source: custom_components/tapo/utils.py:15 Integration: Tapo Controller (documentation, issues) First occurred: 21:21:49 (5 occurrences) Last logged: 22:03:55

Error setting up entry Tapo Hub for tapo Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/tapo/init.py", line 48, in async_setup_entry raise error File "/config/custom_components/tapo/init.py", line 37, in async_setup_entry coordinator = value_or_raise( ^^^^^^^^^^^^^^^ File "/config/custom_components/tapo/utils.py", line 15, in value_or_raise raise value_or_error custom_components.tapo.common_setup.DeviceNotSupported: Device 192.168.68.70 not supported!

patfelst commented 1 year ago

I have the same issue on 3 tapo devices which now won't set up. I think this integration broke after the 2023.7.0 update.

image

here is what I see in the logs:

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/tapo/utils.py:15
Integration: tapo_p100 (documentation, issues)
First occurred: 8:38:28 AM (4 occurrences)
Last logged: 8:40:56 AM

Error setting up entry Spare Tapo Smart Plug for tapo
Error setting up entry Washing machine for tapo
Error setting up entry Pool pump for tapo
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 390, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tapo/__init__.py", line 48, in async_setup_entry
    raise error
  File "/config/custom_components/tapo/__init__.py", line 37, in async_setup_entry
    coordinator = value_or_raise(
                  ^^^^^^^^^^^^^^^
  File "/config/custom_components/tapo/utils.py", line 15, in value_or_raise
    raise value_or_error
custom_components.tapo.common_setup.DeviceNotSupported: Device 192.168.20.202 not supported!

thanks for your support.

patfelst commented 1 year ago

Never mind, I deleted the integration, then re-installed (v2.0.1), re-added my switches, and everything is working ok again now.

Stevehans commented 1 year ago

Same issue here, any idea what the underlying cause is?

I'll take a look at the code and see why that exception is thrown

petretiandrea commented 1 year ago

As integration says: custom_components.tapo.common_setup.DeviceNotSupported: Device 192.168.20.202 not supported!. Actually the hub is not supported, I will work on it.

Stevehans commented 1 year ago

My issue is different, I've got two p100 that were fine and now aren't, I'll open a new issue.

jonathanoakley commented 1 year ago

@Stevehans yeah it was the same for me - they were supported prior to the update but then seem not to be now

Stevehans commented 1 year ago

Wonder if the issue is elsewhere, as following a core update, but not an update (I believe) of the Tapo component, my p100's are now recognised again?