Custom Badge Color based on presence in Lovelace?

When I search I only see solutions in CustomUI. Is there a way in Lovelace to set badge color based on presence detection?