Help Requested: Automation to notify me if my WAN IP changes

I just do this:

- id: 1a4dc408-76f5-41cf-8b68-c3ec3bcf3c59
  alias: 'IP Change'
  trigger:
    platform: state
    entity_id: sensor.myip
  action:
  - service: notify.telegram_system
    data:
      title: '⚠️ *Public IP changed*'
      message: "From {{ trigger.from_state.state }} to {{ trigger.to_state.state }}"