Device Tracker Custom State Names

Good day,

I was wondering if there was a way in a Lovelace card, to customize the name of the state? For example, I have my router setup as a device tracker, and instead of a laptop showing home/away, I’d like it to report online/offline.

Any ideas from the gurus?

TIA,
Steven