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

TP-Link Deco Not reporting to HA that a device is on the network #276

Open
mikefrantz opened this issue Mar 29, 2024 · 10 comments
Open

TP-Link Deco Not reporting to HA that a device is on the network #276

mikefrantz opened this issue Mar 29, 2024 · 10 comments

Comments

@mikefrantz
Copy link

Problem

Not reporting to HA that a device is on the network. It is always not_home on my devices. I do know that TP-Link did an update on there app.

TP-Link Deco Version

3.6.0

Router Model

Deco X55

Debugging Information

not_home
icon: mdi:lan-disconnect
friendly_name: iPhone Mike
source_type: router
ip: 192.168.68.106
mac: 8E-18-51-37-67-12
connection_type: band2_4
device_type: client
interface: main
down_kilobytes_per_s: 0
up_kilobytes_per_s: 0
deco_device: Entryway
deco_mac: 9C-53-22-CC-34-48

@EboBH83
Copy link

EboBH83 commented Jan 1, 2025

I have the same issue, but clearly it's a deco issue and this integration can't fix it. The NMAP and Ping integrations are more reliable anyway in sensing Home/Away, but this one is still indispensable for sensing much more data.
I contacted TP-Link, and they sent an update file they said would fix the issue.

@mikefrantz
Copy link
Author

Did TP Link send you the fie to fix the issue and if they did, did it work? If it worked can you advise me on exactly what file to ask for and who you contacted please? Thanks for all your help. Have a great New Year.

@EboBH83
Copy link

EboBH83 commented Jan 1, 2025

I didn't install it, and opted to wait for an update that'd fix it automatically. That was a false hope, as the device received two or three updates that didn't fix nothing. I would send you the update file they sent me, but you most probably have a different device. Contact them via: https://community.tp-link.com/

@mikefrantz
Copy link
Author

I received a TP link update today for Home Assistant and it did not fix it. Thanks for all your help. I appreciate it.

@EboBH83
Copy link

EboBH83 commented Jan 2, 2025

I received a TP link update today for Home Assistant and it did not fix it. Thanks for all your help. I appreciate it.

So I shouldn't bother installing it either. Thanks for saving me that time.

@mikefrantz
Copy link
Author

mikefrantz commented Jan 2, 2025

Here is what it looks like after the update installed. I have to re load the tp-link integration about every 3 minutes to keep any kind of location services. Thanks
image

@EboBH83
Copy link

EboBH83 commented Jan 2, 2025

My issue is different. My Deco devices report the info it had when it first started and does change that, no even with a reload. Even the Deco app reports the same info. The only way to get around that is a restart of the Deco network.

@mikefrantz
Copy link
Author

That is good to know. Mine just goes unavailable continually and will never change states after that. I have to reload integration continually with an automation. Then if that doesn’t work, then I have to restart home assistance. Then if that doesn’t work, then I have to reboot the TP-Link unit itself.

@EboBH83
Copy link

EboBH83 commented Jan 2, 2025

tried this?
Untitled

@mikefrantz
Copy link
Author

Here is the latest error logs. Hope you can shed some light on this.

This error originated from a custom integration.

Logger: custom_components.tplink_deco.coordinator
Source: helpers/update_coordinator.py:379
integration: TP-Link Deco (documentation, issues)
First occurred: 7:08:08 AM (284 occurrences)
Last logged: 3:57:13 PM

Unexpected error fetching tplink_deco-decos data
Unexpected error fetching tplink_deco-clients data
Traceback (most recent call last):
File "/config/custom_components/tplink_deco/api.py", line 409, in _async_post
response = await self._session.post(
^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 730, in _request
await resp.start(conn)
File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1059, in start
message, payload = await protocol.read() # type: ignore[union-attr]
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/streams.py", line 671, in read
await self._waiter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/config/custom_components/tplink_deco/api.py", line 408, in _async_post
async with async_timeout.timeout(self._timeout_seconds):
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/async_timeout/init.py", line 141, in aexit
self._do_exit(exc_type)
~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/async_timeout/init.py", line 228, in _do_exit
raise asyncio.TimeoutError
TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_deco/coordinator.py", line 167, in _async_update_data
new_decos = await async_call_and_propagate_config_error(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self.api.async_list_devices
^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/config/custom_components/tplink_deco/coordinator.py", line 48, in async_call_and_propagate_config_error
return await func(*args)
^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_deco/api.py", line 166, in async_list_devices
return await self._async_call_with_retry(self._async_list_devices)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_deco/api.py", line 557, in _async_call_with_retry
raise err
File "/config/custom_components/tplink_deco/api.py", line 544, in _async_call_with_retry
return await func(*args)
^^^^^^^^^^^^^^^^^
File "/config/custom_components/tplink_deco/api.py", line 173, in _async_list_devices
response_json = await self._async_post(
^^^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
)
^
File "/config/custom_components/tplink_deco/api.py", line 445, in _async_post
raise TimeoutException from err
custom_components.tplink_deco.exceptions.TimeoutException: Timeout exception. If you get a lot of these see https://github.com/amosyuen/ha-tplink-deco#timeout-error.

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

2 participants