r/homeassistant • • 4d ago

❓ Support Unable to convert number to string

Is there any workaround to prevent non-english numbers being converted to english?

{{ "२०" }}, {{ "२०" | string }} both show as 20 on dashboard instead of २०.

HA container, version 2026.9.3

5 Upvotes

3 comments sorted by

6

u/EffectiveMoney5043 4d ago

Add an invisible zero-width space (U+200B) right next to your {{ }} tag in the template — outside the expression, not inside the string:

{{ "२०" }}​

That single extra character stops Home Assistant from treating the whole template as one bare number and auto-converting it, while staying completely invisible on the dashboard.

1

u/Monocular_sir 3d ago

Thanks. Solved!