Skip to content
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

hass HA bridge idle problem #501

Closed
erroldee opened this issue Feb 25, 2017 · 8 comments
Closed

hass HA bridge idle problem #501

erroldee opened this issue Feb 25, 2017 · 8 comments

Comments

@erroldee
Copy link

the latest code release has almost fixed the hass and ha bridge connection. although there is still a minor problem happening when the connection is idle.

when given a command after a period of idle time the first command will always fail. any succeeding command after that will be successful. give it another few minutes of idle time and it repeats, failing the first command after idle then succeeding commands will be successful. around 2-3 minutes of idle time for me.

@jbardi
Copy link

jbardi commented Feb 25, 2017

Weird, I have not experienced this issue since my update. I am now able to use it with Home Assistant without any issues so far. Although, all of my Home Assistant calls are using Home Assistant's direct RESTapi rather than the Home Assistant helper, so not sure if this is just in issue when using the helper? Just thought it might help for them to pinpoint the problem you are having so they can find a fix. I'm going to let it run for 24 hours and see if I have any issues. So far, it looks like the hanging issues I was having previously that made it appear as if habridge was locking up has now been fixed, but again, I'll give it 24 hours to see if I have any problems, as I would normally not have been able to go a couple hours before it started having trouble.

@erroldee
Copy link
Author

am using the same. rest API for better control. am using http device type on ha bridge. will also monitor for 24 hours and report back if this improves or worsens but as of writing this i am still encountering the issue

@erroldee
Copy link
Author

here are some screenshots of the error i am seeing when this happens

screenshot_20170226-051328

screenshot_20170226-051259

@bwssytems
Copy link
Owner

i could put in a retry if the timeout is receiced

@erroldee
Copy link
Author

that could work. still seeing the same issue as of writing. have tried rebooting pi multiple times.

@erroldee
Copy link
Author

still occurring so i implemented the retry work around when receiving 504 status code and it worked great! thanks!

@bwssytems
Copy link
Owner

I will put the retry in the code

@bwssytems bwssytems reopened this Feb 26, 2017
@bwssytems bwssytems added this to the V4.2.1 milestone Mar 3, 2017
@brandoncorry
Copy link

brandoncorry commented Apr 1, 2017

@bwssytems - may need to re-open this one...

I'm still seeing these issues with 4.3.1. Pretty much every morning I have a scene I turn on, "turn on the morning" and it will always fail, and I have to do it again. I can see it retrying, but it retries and then says the call fails. When I try again it works as expected.. not sure if this is a HA-Bridge problem or a Home Assistant problem... but thought I'd add to this issue to see if others are experiencing it so we can figure it out..

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants