Comments (9)
Timeout seconds and timeout retries config has been added as a mitigation in https://github.com/amosyuen/ha-tplink-deco/releases/tag/v3.3.0
from ha-tplink-deco.
Thank you for taking the time to answer me. I'll give your suggestion a try. I also have Deco M4 units, and a timeout is a likely cause. If this resolves my issue, I will create a PR to increase the default timeout value. Thanks again!
from ha-tplink-deco.
Hi I am also facing similar issues as the devices on my deco m5 are not home/not connected to my deco m5 are showing as 'unavailable' rather than 'away' or 'not_home'.
This is messing up my automations and they fail to trigger due to this.
Can this be please looked into ?
Thanks
from ha-tplink-deco.
Same issue, this also messes up the group property, because if one goes unknown/unavailable it will report the whole group as offline.
from ha-tplink-deco.
This would help resolve some issues for me too! I would love this as an option, especially to check which AP the client was connected to last (before being unavailable). I know this can be achieved with an SQL sensor, but having it as a feature would be great.
from ha-tplink-deco.
This would help resolve some issues for me too! I would love this as an option, especially to check which AP the client was connected to last (before being unavailable). I know this can be achieved with an SQL sensor, but having it as a feature would be great.
Hello, your issue really seems similar! After checking the logs, I noticed sometimes that my Deco M4 takes over 30 seconds to return the device list, sometimes even going as high as 50 seconds.
Try and change line 26 on the file api.py from 30 to 60 or higher.
TIMEOUT = 60
I made this change recently, I'm still testing, but it seems to have "fixed" my issues.
from ha-tplink-deco.
Thank you for taking the time to answer me. I'll give your suggestion a try. I also have Deco M4 units, and a timeout is a likely cause. If this resolves my issue, I will create a PR to increase the default timeout value. Thanks again!
I believe a PR that allows this value to be changed from the UI will be better.
I'm just testing over the weekend before making the PR. Let me know if this fixes it for you as well!
from ha-tplink-deco.
Unfortunately, so far, the results are not good:
I've increased to 90, but so far the results are still disappointing.
Logger: custom_components.tplink_deco
Source: custom_components/tplink_deco/api.py:215
Integration: TP-Link Deco ([documentation](https://github.com/amosyuen/ha-tplink-deco), [issues](https://github.com/amosyuen/ha-tplink-deco/issues))
First occurred: 15:31:18 (120 occurrences)
Last logged: 16:04:32
List Clients <snip> parse response error='result', data={'success': False, 'errorcode': 'timeout'}
List Clients <snip> parse response error='result', data={'success': False, 'errorcode': 'timeout'}
List Clients <snip> parse response error='result', data={'success': False, 'errorcode': 'timeout'}
List Clients <snip> parse response error='result', data={'success': False, 'errorcode': 'timeout'}
List Clients <snip> parse response error='result', data={'success': False, 'errorcode': 'timeout'}
from ha-tplink-deco.
Unfortunately, so far, the results are not good:
I've increased to 90, but so far the results are still disappointing.
Logger: custom_components.tplink_deco Source: custom_components/tplink_deco/api.py:215 Integration: TP-Link Deco ([documentation](https://github.com/amosyuen/ha-tplink-deco), [issues](https://github.com/amosyuen/ha-tplink-deco/issues)) First occurred: 15:31:18 (120 occurrences) Last logged: 16:04:32 List Clients <snip> parse response error='result', data={'success': False, 'errorcode': 'timeout'} List Clients <snip> parse response error='result', data={'success': False, 'errorcode': 'timeout'} List Clients <snip> parse response error='result', data={'success': False, 'errorcode': 'timeout'} List Clients <snip> parse response error='result', data={'success': False, 'errorcode': 'timeout'} List Clients <snip> parse response error='result', data={'success': False, 'errorcode': 'timeout'}
In that case you need to enable debug options and check out what's happening.
Mine had stuff like this:
Line 807: 2022-10-07 10:03:46.419 DEBUG (MainThread) [custom_components.tplink_deco] Finished fetching tplink_deco-clients data in 27.419 seconds (success: True)
Line 835: 2022-10-07 10:04:45.560 DEBUG (MainThread) [custom_components.tplink_deco] Finished fetching tplink_deco-clients data in 29.560 seconds (success: True)
Line 846: 2022-10-07 10:06:15.013 DEBUG (MainThread) [custom_components.tplink_deco] Finished fetching tplink_deco-clients data in 60.011 seconds (success: False)
Line 856: 2022-10-07 10:07:01.797 DEBUG (MainThread) [custom_components.tplink_deco] Finished fetching tplink_deco-clients data in 16.796 seconds (success: True)
from ha-tplink-deco.
Related Issues (20)
- M9 Plus and http -> https update HOT 4
- 타임아웃 발생 시 json에 다른 속성으로 응답이 올때가 있습니다. HOT 1
- Feature request: Total used data HOT 1
- device_tracker entities suddenly Unavailable HOT 3
- Integration stopped working with Deco X20 after firmware upgrade HOT 2
- Error setting up HOT 2
- Clearing of Old Client Devices after Inactive Timeout Period HOT 2
- Error Connecting to x20version2 units HOT 3
- SOURCE_TYPE_ROUTER deprecated HOT 1
- Is there anyway to detect that Guest Wifi is turning on or off? HOT 1
- The client prefix is added multiple times HOT 3
- TP-Link Deco Not reporting to HA that a device is on the network
- Deprecation Warning in HA 2024.4+ HOT 6
- Add KS240 integration HOT 1
- Configuration - Client name prefix and postfix seem to be ignored
- 'tplink_deco' calls `async_add_job`, which is deprecated and will be removed HOT 2
- async_add_job will be deprecated HOT 1
- Can’t install the intégration HOT 1
- Unexpected error fetching tplink_deco-clients data HOT 1
- Unable to reach host 502 error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-tplink-deco.