this post was submitted on 25 Jun 2023
4 points (100.0% liked)

homeassistant

11990 readers
19 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS
 

What’s the best way that people have found to get their public IP address into Home Assistant? It’d be useful to run an automation to send a notification when it changes.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago

sensor:

  • platform: dnsip

group: External IP: - sensor.dnsip

automation: alias: Notify when external ip changes initial_state: on trigger: platform: state entity_id: sensor.dnsip action: service: notify.YOU data_template: message: "New external IP address is {{ states('sensor.dnsip') }}"

Here you go.

Source: https://community.home-assistant.io/t/display-public-ip-notify-of-change/74655