Comments (9)
Line 367 in 77a3728
0.5 seconds is default, I think.
from pai.
I do not remember if I made timeout configurable. Try to raise it.
from pai.
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.
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.
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.
IP150 module works very well in my case.
from pai.
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.
Thank you!
from pai.
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)
- Odd Issue HOT 1
- Payolad error, unable to parse date from SP4000 at boot HOT 4
- AuthenticationFailed - Invalid PC Password HOT 2
- Multiple PAI Instances IP150 HOT 1
- Siren never sound HOT 1
- Checksum errors HOT 3
- ESP32 Serial over IP together with PCS250 GSM module HOT 1
- Code for disarm not working HOT 5
- Add to root MQTT topic panel SN HOT 3
- MG5050 on OpenHAB - is it supported? HOT 3
- How to fix inverted status for sensors? HOT 3
- non-truncated message 5 PDU samples HOT 5
- Arm / disarm with user code HOT 3
- Missing Partition ID from MQTT topic? HOT 2
- Cannot get Pushover to work HOT 4
- Paradox serial comms output dump
- Latest update (after 3.4.0) breaks MQTT initialization HOT 4
- Timeout while connecting HOT 1
- HA addon issue HOT 4
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 pai.