Closed suprra closed 2 months ago
I have since bound the hub to matter and added the sensor and it seems fine now but still leaving this here for future searchers.
Turns out by disabling the hub I then lost my battery sensors for my switches Now I can't renenable due to some other error and key is open is still a problem, I guess because the t110 is connected but connected via matter. I guess the underlying issue of the t110 needs to be fixed else the tapo integration breaks entirely
`2024-06-14 11:55:21.078 ERROR (MainThread) [custom_components.tapo.config_flow] Failed to setup cannot connect Traceback (most recent call last): File "/config/custom_components/tapo/config_flow.py", line 317, in _async_get_device await device.update() File "/usr/local/lib/python3.12/site-packages/plugp100/new/tapodevice.py", line 79, in update await component.update(state) File "/usr/local/lib/python3.12/site-packages/plugp100/new/components/hub_children_component.py", line 47, in update await child_device.update() File "/usr/local/lib/python3.12/site-packages/plugp100/new/tapodevice.py", line 79, in update await component.update(state) File "/usr/local/lib/python3.12/site-packages/plugp100/new/components/smart_door_component.py", line 15, in update self.is_open = current_state["is_open"]
KeyError: 'is_open'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/tapo/config_flow.py", line 231, in async_step_discovery_auth_confirm
device = await self._async_get_device_from_discovered(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tapo/config_flow.py", line 295, in _async_get_device_from_discovered
return await self._async_get_device(config | {CONF_HOST: discovered.ip}, discovered)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tapo/config_flow.py", line 322, in _async_get_device
raise CannotConnect from error
custom_components.tapo.errors.CannotConnect`
I just tried adding a new H100 that had a T110 already paired and I had the same issue.
Failed to setup cannot connect Traceback (most recent call last): File "/config/custom_components/tapo/config_flow.py", line 317, in _async_get_device await device.update() File "/usr/local/lib/python3.12/site-packages/plugp100/new/tapodevice.py", line 79, in update await component.update(state) File "/usr/local/lib/python3.12/site-packages/plugp100/new/components/hub_children_component.py", line 47, in update await child_device.update() File "/usr/local/lib/python3.12/site-packages/plugp100/new/tapodevice.py", line 79, in update await component.update(state) File "/usr/local/lib/python3.12/site-packages/plugp100/new/components/smart_door_component.py", line 15, in update self.is_open = current_state["is_open"]
KeyError: 'is_open'
This is a duplicate of https://github.com/petretiandrea/home-assistant-tapo-p100/issues/759 and is fixed by pull request https://github.com/petretiandrea/plugp100/pull/189
Perfect.
I followed the instructions to edit the python file in issue 759 and it worked like a charm.
Thanks for your help.
Sorry I’m new to ha Does this mean I wait for the integration to update or am I meant to do something else?
thanks
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Version of the integration
3.1.2
Configuration
Tapo T110(US)_V1_1.9.0 Build 230704
Describe the bug
Viewing the integration via settings it shows failed setup will retry. When clicking on the integration itself it says Failed setup will retry 'is_open'. This only occurs if I have the t110 added to the tapo app. Just in case it's relevant, the switch is currently closed and advertised as such in the app. I had to remove it from the app again as my humidity sensor stopped reporting data,
Debug log