Hacker News new | past | comments | ask | show | jobs | submit login

> we have location-based automations set up in Home Assistant, and by default there's a geocoded location entity per tracked device, which I disabled, relying only on zone enter/leave events, carefully balancing privacy and convenience.

Did you set up location based events in home assistant using iOS devices? I tried to set it up, but it always says that I’m at home, which I think is because I use WireGuard to remain connected to my home network at all times. I tried setting up a separate iCloud integration for location tracking, but it bothered me every hour about entering a 2 factor code. I ended up disabling that integration. Wondering if you have faced this issue and potentially solved it.




Yes iOS.

I tried a similar setup with Tailscale but it disconnects too frequently for such a use case due to iOS VPN limitations, and that's not even considering the fact that it's userland and eats the battery 30% faster when on. Maybe an IPSEC VPN would fare better?

Similarly the iCloud integration suffers from the 2FA issue. There's another third party one that works better in that regard (able to handle refresh tokens or whatever) but these still have a month long lifetime or something and still require 2FA occasionally. Also both are pull instead of push so not too nice on the battery if you want a prompt reaction in zone change.

So I'm simply on the good old public facing dns/https/nginx/letsencrypt, with the phone triggering an internal zone change event to the app, and then the app pushing to the server, and that just works. Maybe I could have used a Tailscale funnel but by then it was just easier for me that way.

Fun fact, I have IPv6 and HASS is self-hosted at home with the AAAA record pointing to it, but my IPv4 is behind CGNAT, so I have a small Hetzner ARM VM, pointed the A record to that, and set up a nginx to hit home over IPv6. To solve the Let's Encrypt conundrum of HTTP challenge not being able to know which machine it'd be pointing to (the name would be resolved to either A or AAAA) I migrated to DNS challenge.

An alternative would be to simply use their Nabucasa cloud thing which serves exactly that purpose, costs money but it makes it super easy, plus IIUC it funds HASS development. I tried it, it just works, but I wanted to do all of the above on Nix as a learning project.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: