Setting up Garadget with Home Assistant

Video is courtesy of BRUH Automation:

First post here!

Let me start by saying that this product is really fantastic. I was able to retrofit my Linear garage with the outstanding support of Denis.

My question to you on integration with Hassio/Home Assistant:

I was able to successfully install and integrate Garadget with Hassio. Iā€™m getting a weird behaviour though: A sporadic ā€œgarage openā€ alert followed a few seconds afterwards by a ā€œgarage closedā€ one tends to happen every few hours. I know the garage is NOT opening because the main Garadget application is not triggering an alert. So clearly something generating a false signal in the Hassio implementation.

Anyone seeing this behaviour?

@Woody, thank you for your feedback.
The false alert is likely to do with the sensor and not specific to Hassio integration.
Please check out troubleshooting guide for false notifications.

1 Like

Hey Denis,

Thanks again for the prompt reply.

Would this be the case even if the main Garadget app is NOT triggering the same events?

Do you receive app notifications for the factual door events?

Yes. Everything is working perfectly well when the door opens and closes, I get the appā€™s alerts and 1-2 seconds later Hassioā€™s.

Those sporadic open/closed alerts only happen within Hassio and never appear in the Garadget app. They happen every few hours. Hence my assumption that itā€™s something that has to do with the hassio implementation.

Does hassio use the app configuration when it comes to various settings (reflection threshold, reads, etc?)

Yes, same settings are used for all communication channels.
BTW: do you connect to hassio via cloud or locally via MQTT?

Via cloud. Using the standard configuration.

When you have a moment, check out MQTT support, it works with hassio directly over the local network.

Iā€™m currently not using MQTT as I was reading that there were some issues, particularly with memory leaks with the internal Hassio implementation.

In any case, I noticed that the following error messages appear in Hassio when the Open/Closed alert is triggered:

Update for cover.garage_door fails
October 24, 2018, 9:05 PM components/cover/garadget.py (ERROR)
Update of cover.garage_door is taking over 10 seconds
October 24, 2018, 9:05 PM util/async_.py (WARNING)
Unable to connect to server: HTTPSConnectionPool(host=ā€˜api.particle.ioā€™, port=443): Max retries exceeded with url: /v1/devices/MASKED/doorStatus?access_token=MASKED (Caused by NewConnectionError(ā€˜<urllib3.connection.VerifiedHTTPSConnection object at 0x6f9feef0>: Failed to establish a new connection: [Errno -3] Try againā€™,))
October 24, 2018, 8:59 PM components/cover/garadget.py (ERROR)
Unable to connect to server: HTTPSConnectionPool(host=ā€˜api.particle.ioā€™, port=443): Max retries exceeded with url: /v1/devices/MASKED/doorStatus?access_token=MASKED (Caused by NewConnectionError(ā€˜<urllib3.connection.VerifiedHTTPSConnection object at 0x6f9585b0>: Failed to establish a new connection: [Errno -3] Try againā€™,))
October 24, 2018, 8:57 PM components/cover/garadget.py (ERROR)

Is there a way to limit the number of calls in Hassio or define some timeout via the configuration?

Thanks a lot for all your help, Denis!

This is something that Jason (the author of the integration) can probably comment on in the original post in Hassio community.

As for MQTT: if you have concerns about embedded broker, you can use a dedicated one like Mosquitto.

I just posted a summary in the original post and waiting for Jasonā€™s response.

Thanks a lot, Denis.

No response from Jason, unfortunately. @garadget, I did also notice that many people were having the same problem with particle API connection timeouts while I continued investigating my issue.

Iā€™ll try the MQTT approach now.

Same hereā€¦
Unable to connect to server: HTTPSConnectionPool(host=ā€˜api.particle.ioā€™, port=443): Max retries exceeded with url:ā€¦
On Garadget my device is shown as offline.

My setup did work flawless for weeksā€¦

Mine diedā€¦ this video no longer worksā€¦ nothing I try works. This sucks

If you experience issue not related to Home Assistant and need help, please submit a separate support request here or through the website providing more details about your situation.