-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hub constistenly getting lost #68
Comments
yesterday i had several problems with my hubs too. |
EDIT: Back down again, the same issue continues for me You may well be right, funny timing that I decided to get it running and test it yesterday...I've been running for a couple of hours this morning without issue which I wasn't able to do yesterday |
Having the same issue here since a week or so: Hub will get lost after a while after which harmony-api has to be restarted to bring it back. |
I`m having the same issues :-( |
Same boat, it's like its stuck on updating state |
Has anybody found a solution for this? It keeps loosing the hub |
I'm using the api with node-red - for whatever its worth, I solved (okay, well, wrote around) this issue by periodically polling the activity. If the response contains "No" (As in ""No hubs available") the flow runs It also does the same if it gets "ECONNREFUSED" like if the api crashed. It's been pretty rock solid that way for months. |
I think I found a very simple solution to this issue. The underlying XMPP client seems to disconnect after about 62 seconds. All that's needed is to set |
Hey mate, Could you share your flow for this? Never tinkered with node-red so not really sure where to start. Thanks |
I was about to comment "wow, I did the same thing" and realized - that was my comment from 6 years ago. So with the caveat that this is janky work I did years ago, but the note that - I'm still using it exactly like this just fine - this is my "harmony probe" subflow. I'm using it in a flow that connects custom control panels with illuminated status indicators to their relevant appliances. This subflow is polled whenver a panel requests the current system status, and it returns some weirdly named parameters that something later interprets what light to turn on, and if it doesn't detect the hub, or connection is refused, it kills the process and respawns it. I think, this might not be the right way to do this because I So - strictly as a starting point here's my subflow, you'll need to specify the api IP and hub name of your setup.
|
Thanks the reply! The Length of your reply scared me abit haha, so had one more go at a “simpler” solution. Ended up finding a way for a Siri shortcut to be constantly running/checking the status of the hub and then running a command via terminal if it detects it not running. Much like your setup. This is the Siri shortcut if anyone is curious, it possibly could be optimised. |
I just installed harmony-api on a raspberry pi, amazing work...thank you.
My raspberry pi is connected via WIFI, my harmony hub never seems to have any issues, but it seems to be dropped pretty regularly from harmony-api, at which point harmony-api stops updating.
I don't see anyone else having this issue, any idea what might be going on and how I can fix it?
An example of the log:
The text was updated successfully, but these errors were encountered: