feature-requests icon indicating copy to clipboard operation
feature-requests copied to clipboard

ESPHome connecting to HA over the internet from remote location

Open Pro-Control opened this issue 3 years ago • 6 comments

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

Pro-Control avatar Mar 25 '22 11:03 Pro-Control

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.

nagyrobi avatar Mar 26 '22 18:03 nagyrobi

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

Pro-Control avatar Mar 27 '22 22:03 Pro-Control

You could test with wireguard PR https://github.com/esphome/esphome/pull/4256 installing wireguard in your HA.

droscy avatar Jul 05 '23 10:07 droscy

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.

h3ndrik avatar Aug 28 '23 14:08 h3ndrik

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?

bentolor avatar Jun 18 '25 18:06 bentolor

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.

droscy avatar Jun 20 '25 04:06 droscy