Git Product home page Git Product logo

Comments (9)

yozik04 avatar yozik04 commented on May 28, 2024 1

async def send_wait(

0.5 seconds is default, I think.

from pai.

yozik04 avatar yozik04 commented on May 28, 2024

I do not remember if I made timeout configurable. Try to raise it.

from pai.

drzoidberg33 avatar drzoidberg33 commented on May 28, 2024

I do not remember if I made timeout configurable. Try to raise it.

Is this the timeout you're referring to? https://github.com/ParadoxAlarmInterface/pai/blob/77a372863f2321bc3dd9698d7055e785e8ff4a0f/paradox/lib/handlers.py#L93C15-L93C34

I can play around with it and see if it makes any difference.

from pai.

drzoidberg33 avatar drzoidberg33 commented on May 28, 2024

Thanks, now that I have it debugging locally I can disable those unknown event errors and see what's being logged.

I am seeing a lot of retries, e.g:

2024-03-01 10:33:29,215 - DEBUG    - MainThread - PAI.paradox.paradox - Request retry (attempt 3/5)
2024-03-01 10:33:33,218 - DEBUG    - MainThread - PAI.paradox.paradox - Request retry (attempt 4/5)

And I see if this goes over 5 then it restarts, which would explain the reconnecting issue I'm seeing in Home Assistant.

Increasing the timeout to 2 I still see retries but it doesn't seem to get to the point where it exceeds the retries, so it's not restarting anymore (from my brief time testing it).

I'll open a PR to make this timeout configurable, thanks for your help!

from pai.

drzoidberg33 avatar drzoidberg33 commented on May 28, 2024

Okay after some more testing I don't think changing the timeout will really help. The problem does in fact appear to be that the Olarm Pro device that I'm connecting through is what's causing the problem. If I connect directly to the MG5050 serial pins I don't get any errors.

Now I need to decide whether to ditch the Olarm or risk getting a MG5050+ board and hope it has the older firmware without the serial encryption.

Going to close this issue now, thanks for the help!

from pai.

yozik04 avatar yozik04 commented on May 28, 2024

IP150 module works very well in my case.

from pai.

drzoidberg33 avatar drzoidberg33 commented on May 28, 2024

I had my MG5050+ panel installed today, after first locking it up due to too many incorrect PC password attempts I was able to get it working with the help of point 3 here: https://github.com/ParadoxAlarmInterface/pai/wiki/FAQ#authentication-failed-wrong-password

I wasn't able to see how long the code lockout lasted as I had my security company restart the panel and unlock it (it already had been over 4 hours being locked out, so my guess it would have been 24 hours).

Updated the compatibility list with notes:
https://github.com/ParadoxAlarmInterface/pai/wiki/Compatibility/_compare/5d0504f63594fcbf04aef66464013bef8873e3b4...08d895b28f1ed1cd2774c072133feeffe0c42ec5

from pai.

yozik04 avatar yozik04 commented on May 28, 2024

Thank you!

from pai.

yozik04 avatar yozik04 commented on May 28, 2024

Thanks, now that I have it debugging locally I can disable those unknown event errors and see what's being logged.

I am seeing a lot of retries, e.g:

2024-03-01 10:33:29,215 - DEBUG    - MainThread - PAI.paradox.paradox - Request retry (attempt 3/5)
2024-03-01 10:33:33,218 - DEBUG    - MainThread - PAI.paradox.paradox - Request retry (attempt 4/5)

And I see if this goes over 5 then it restarts, which would explain the reconnecting issue I'm seeing in Home Assistant.

Increasing the timeout to 2 I still see retries but it doesn't seem to get to the point where it exceeds the retries, so it's not restarting anymore (from my brief time testing it).

I'll open a PR to make this timeout configurable, thanks for your help!

I have added IO_TIMEOUT setting.

from pai.

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.