esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
413 stars 26 forks source link

External / public / WAN IP sensor #1538

Open eisengrau opened 2 years ago

eisengrau commented 2 years ago

Describe the problem you have/What new integration you would like

External / public / WAN IP sensor. Either a request to a public server that returns the public IP as a text sensor value of the gateway behind which the Esphome device is connected

Please describe your use case for this integration and alternatives you've tried:

HTTP get request to various JSON REST APIs is cumbersome, requires specific lambda configs to use. It should be an easier way.

Additional context

Might be useful for deployments in remote networks where no Home Assistant infrastructure is available, or on a remote network where such Esphome device us used (also) as a standalone network monitoring device.

111lisu commented 8 months ago

I use ESPHome devices via IPSEC. I use double NAT for upgrade, but it is a very inconvenient solution. An IP WAN option would be useful to send the firmware to the OTA. It would be useful too keepalive