Comments (4)
You could try the github version from my fork: https://github.com/foxriver76/ioBroker.harmony
The normal behaviour is that it will try to connect again every time the hub is discovered again. But the discovery is implemented in another package. My fork uses newer dependencies, so maybe this bug is fixed.
from iobroker.harmony.
@foxriver76 Thanks. I think the relevant code is commented out in your fork so it might work better, but I still think that in some cases it might fail.
The reason why it breaks is that the hub stays discovered in my case. The relevent part is:
https://github.com/Pmant/ioBroker.harmony/blob/master/harmony.js#L297
It has a timeout of 5 seconds (I'm not sure what the default is in your fork as timeout is commented out but I assume that there still is a timeout). After that it fails (catched with "could not connect to ...") and just stops the client. The hub itself stays discovered in my case and so it won't try to reconnect at all. I think if the connection fails a setTimeout should start instead of just calling "clientStop", that tries to reconnect a few seconds later.
from iobroker.harmony.
Thanks for the explanation -- I will have a closer look at it and will try to fix the problem.
from iobroker.harmony.
If the issue still exists with 0.10.0 please reopen @WolfspiritM
from iobroker.harmony.
Related Issues (20)
- iobroker.harmony stopped working HOT 2
- Update stable version in repo from 1.2.2 to 1.3.0 HOT 1
- Please fix issues reported by adapter checker
- Harmony adapter does not react on actions (new entry) HOT 1
- Adapter does nothing HOT 4
- Auf einmal keine Funktion mehr und dann keine Geräte HOT 3
- Adapter not Working HOT 2
- Ein- und Ausschalten mit einer Steckdose HOT 2
- Harmony Hub disconnects randomly leaving me in a dark room ... HOT 4
- Button mit type number HOT 1
- Think about to fix the issues found by adapter checker HOT 1
- Compatibility check to js-controller 3.3 and Admin5 React UI HOT 1
- Compatibility check and testing for Node.js 14 and 16 HOT 1
- Buttons führen keine Aktion durch HOT 1
- Compatibility check to js-controller 4.0 HOT 1
- Harmony adapter does not react on actions HOT 5
- check host too on port check
- warn meldung HOT 2
- Finalize migration to iobroker-community-adapters
- Invalid pattern on subscribe HOT 1
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 iobroker.harmony.