Esp32 ip address

Is it possible in Esphome to get the dynamic IP through a sensor? and return the IP and connected status via display. Gratitude!

# Text Sensors.
text_sensor:
  - platform: wifi_info
    ip_address:
      name: DoorBell IP Address
      id: doorbell_ip_address
      icon: mdi:ip-network

image

Not sure how to show it on a display…(not using any :stuck_out_tongue: )

Take time to search on ESPHome site.

etc. etc.

The sensor itself knows it’s IP address. Not sure if that’s what OP wants, but I think @aceindy 's post is right on the money.