Coder Social home page Coder Social logo

Comments (9)

amosyuen avatar amosyuen commented on August 26, 2024 2

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.

freddieleeman avatar freddieleeman commented on August 26, 2024 1

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.

bachoo786 avatar bachoo786 commented on August 26, 2024

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.

Anonymoesje avatar Anonymoesje commented on August 26, 2024

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.

freddieleeman avatar freddieleeman commented on August 26, 2024

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.

image

from ha-tplink-deco.

cvroque avatar cvroque commented on August 26, 2024

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.

image

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.

image

from ha-tplink-deco.

cvroque avatar cvroque commented on August 26, 2024

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.

freddieleeman avatar freddieleeman commented on August 26, 2024

Unfortunately, so far, the results are not good:

image

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.

cvroque avatar cvroque commented on August 26, 2024

Unfortunately, so far, the results are not good:

image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.