ESPHome connecting to HA over the internet from remote location
Describe the problem you have/What new integration you would like ESPHome connecting to HA over the internet.
Please describe your use case for this integration and alternatives you've tried: I have the office away from my home (HA-server ) I would like to ESPHome control an outlet, light, ETC in my office based on my home (HA-server ) .
Additional context I know we can do this via MQTT,, I'm looking for a native API like a local setup solution
Wouldn't do this on an open public internet connection...
Use some cloud based stuff like Tuya etc.
Or use a small openwrt-based mini-router to call in to your home site via a secured vpn, and then pipe the api over that.
I hope to find a way to do it like as an add-on in HA work as a host server for external ESPHome device @nagyrobi thanks for your advice I know these methods
You could test with wireguard PR https://github.com/esphome/esphome/pull/4256 installing wireguard in your HA.
I'd like to request this too. No idea why we shouldn't do this via the internet. I have sensors at my parent's home, would like something at my desk at work that'd connect home via the guest network etc. Maybe give some device to the neighbours. There are several valid use-cases. And secure and encrypted connections over the internet are well studied.
Currently that is possible via MQTT. But IPv6 support isn't there yet and everything is just a PITA.
The obvious choice is to expose things via a MQTT server. But I'd like to directly reuse the optimized Native HA API. So any what's the solution of choice for a KISS approach in 2025?
Don't you like WireGuard? Instead of exposing HA API endpoint you expose WG port from HA side, then ESPHome create the WG link and you can reach the device through that link.