I’ve installed the DNS IP Integration. Actually, firstly, does anyone know what the update interval is (and whether/how it can be modified)?
I’d like my HA to send me a notification (in my case, via Twilio SMS), with the new IP address, if the IP address were to change. Such a feature would be particularly useful for those who access their HA via VPN. The DNS IP integration creates an entity called sensor.myip
. I am not yet acquainted with Node Red, so I think the best way to achieve my objective is to create an automation that takes a snapshot of the current IP address nightly (in my case, at midnight), and checks the IP address against that nightly snapshot throughout the next day (in my case, every hour).
So far this is my automation. I’m stuck on the part where the entity state at each hourly interval is compared to the midnight state. Is anyone willing to chime in?
alias: IP Address Change > Notify
description: ''
trigger:
- platform: time
at: '00:00:00'
id: Midnight Snapshot
- platform: time_pattern
id: Hourly Check
hours: /1
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: Midnight Snapshot
sequence:
- service: scene.create
data:
scene_id: ip_at_midnight
snapshot_entities: sensor.myip
- conditions:
- condition: trigger
id: Hourly Check
sequence:
default: []
mode: single