Show IP address rpi

Hi all.
Is any chance to show in interface LOVELACE ip address from controller Home Assistant Raspberry pi ?

sensor:
  - platform: command_line
    command: "ip route get 1 | awk '{print $NF;exit}'"

Then put it in lovelace like any other sensor. Choice of cards is up to you.

Thanks. Works perfect.