-
Notifications
You must be signed in to change notification settings - Fork 40
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
Garage periodically appears as unavailable in HA #34
Comments
Curious if you ever found a solution? I'm having the same issue and confirmed that the actual device has stayed connected to my router for ~100 hours. Edit: I reviewed my MQTT log as well and noticed that the client has exceeded a timeout before instantly reconnecting: 1593816048: Socket error on client GarHAge, disconnecting., Hope that helps the developers some. |
I am running the dev version and have never had a problem. Been running for a couple of years with zero intervention. |
Interesting, I was simply running the "master" branch. I will try the dev version - a bit painful to go and retrieve the device, but it looks like the dev version has OTA updates (master does not). It is worth a try, thank you - I'll report back if there are any results. Curious - what are you using for your MQTT broker? Could be some differences there as well. |
I don't think I ever found a proper solution/cause of the problem. After testing various things I decided to just leave it as is and wire it all up in the garage.
I guess that should be "offline", but changing it to any over value prevents it from reporting as |
Thanks for getting back to me with your results. I added to both void setup() and the reconnect() functions. I still occasionally get the instantaneous "unavailable" but much less frequently. Unfortunately it seems that a couple are still in the multiple minute range (consistently 10-15 minutes). When this occurs, you cannot command the doors to change state. |
I've set up a ESP8266 with a reed switch to simply monitor the status of the garage door (but not control it).
It seems to work well and the status in HA is responsive when I open/close the garage door.
The problem is several times per hour it shows the status as "unavailable" for what I assume only a split second before providing a "closed" status again. During this time the door is closed and power supply is fine. The constant switching between "unavailable" and "closed" just clogs up the HA logs and makes it look like the garage was recently open even if it's been shut for hours.
Things I've tried:
#define MQTT_KEEPALIVE 10
to match mosquitto keepaliveSo I don't think it is an issue with wifi signal or power.
In the Mosquitto log I see:
It often disconnects and reconnects within a second so am wondering if the
keepalive
values in the client or broker need to be adjusted?Thanks
The text was updated successfully, but these errors were encountered: