How to get the value of a sensor in readable format?

Hey there,

I am trying to use the Moon integration (Moon - Home Assistant) inside of the Custom Compass Card (GitHub - tomvanswam/compass-card: A Lovelace card that shows a directional indicator on a compass for Home Assistant) to show the current phase of the moon.
However, I am getting the value of the sensor in the small caps with underscore format:
image

How should I do to get the phase in proper format (in the image example “Waning gibbous”) ? or even better, translate it to my language (spanish)?

Thanks!

You should consult the custom card developer to have them make use of sensor translations. Otherwise you’ll have to make a template sensor.