I have an OpenGarage device on my garage door. In carplay, it shows up as a “cover”. I am finding that closing the garage door when I leave home is extremely unreliable.
I don’t have my home assistant exposed to the internet - I have wireguard tunnel from my phone which connects immediately when my home wi-fi disconnects.
As leave my house, I pull my car out of the garage, then tap the close garage door “cover” in carplay. 9 times out of 10, the selection will go blue (indicating its selected) and then go no further - the garage doesn’t actually close. If I pull out my phone, open the HASS app and tap the shortcut to close the garage door, that works perfectly.
At first, I thought it was an issue to do with how my phone wi-fi is shaky in my garage area, so I actually disconnected my phone from wi-fi before leaving the garage. I found that the close cover button in carplay still wouldn’t work. But if I pull out my phone then hit the close garage button on the dashboard, that works.
However, when I return home from being away I can reliably open the garage door as I pull into my driveway (before wifi connects).
It seems like this is related to the connectivity between my ph and home assistant - my understanding of carplay is that carplay is just an extension of the iOS app – any ideas why the cover button works reliably from the iOS app, but so unreliably on the carplay app?
I open my automatic gates and garage with my android phone, and for this very reason you describe i have wifi disabled at all on my phone. But i have plenty of mobile data (>50GB) and good 4g connection so i don’t have to worry.
What happens if wifi is enabled is when i leave it takes some time for phone to “figure out” that my ha is no longer available via wifi and it should connect via mobile, and vice versa - when i come home phone detects wifi, tries to connect and again it takes time for HA to become available. On both occasions there’s a dead time when open/close is not possible.
This I could be caused by delay when switch WiFi to mobiledata. HA looks like it’s connected but still establishing connection. In all cases it does not show opening or closing but just shows button press.
My esphome device visually shows different icon for when door is moving up or down. Does yours not show this?
Yes that is correct - the issue definitely appears to be related to switching from wifi to wireguard. It’s offline for a second, but then comes back as wireguard is very quick to handshake.
If I have wifi off, it works well (as evidenced by the door opening properly when I get home from being out)
The issue is, even with turning wifi off right as I get in the car / pull out of the garage or waiting until I’m out of my driveway and down the road (20 ish sec) to allow wifi to disconnect, CarPlay still doesn’t work.
And, it works perfectly if I toggle the cover from the app on my phone itself even when the fault with CarPlay is “active”.
Basically, it’s only CarPlay that has this issue - the app is fine.
It seems it would be easier to come up with an alternative method of closing the garage door than trying to run this down