gazoodle / gecko-home-assistant

Home Assistant integration for spas equipped with Gecko Alliance in.touch2 modules
MIT License
67 stars 22 forks source link

Blocks HA launch when spa connection is down #72

Open relevante opened 1 year ago

relevante commented 1 year ago

My in.touch2 box is pretty far from my tub at the moment (waiting for the ground to thaw to continue construction, at which point there will be network out to a cabinet near the tub). It works most of the time but sometimes disconnects.

This morning I needed to restart HA and it happened that the tub connection was down. The Gecko integration seemed to totally block HA from finishing startup. I waited several minutes and it was still blocking startup. Unplugging the in.touch2 to take it offline temporarily solved the issue. Seems like perhaps there needs to be a timeout added somewhere in the initialization code.

Thanks for the great work!

stefanh12 commented 1 year ago

I've left my spa offline for 2 months without any issues to with HA, it does log that its taking a long time though but not stopping boot process.

relevante commented 1 year ago

Interesting. I wonder if it's something specific to a weak connection. E.g. it's able to begin the connection process in a way that doesn't happen if the spa is totally offline and then something doesn't timeout properly. Either way, I'm fine for now as I just moved the hub upstairs where it has a better connection.