Get human readable state of a sensor?

How, hwo to get a readable state, as example below:

{{states['sensor.roborock_qrevo_pro_status'].state}}

Gives “washing_the_mop”
But i want it more readable for frontend as shown in the history for example, like “Washing the mop”, how is HA getting this readable state?

{{ states('sensor.roborock_qrevo_pro_status') }}
{{ state_translated('sensor.roborock_qrevo_pro_status') }}
1 Like

Is there also another way to get this friendly state instead of using a translation?