Guys I’ve a illuminance sensor: this way {{ states('sensor.balcony_light_sensor_illuminance_lux') }} return value like this: 9809. But, in original sensor value in HA looks like this: 9 809 or 28 756 and etc. If I add template sensor of this value, I don’t have a whitespace and only raw value, how to add a whitespace after the first digit or first two digits like in original sensor via template?
On the left is a template sensor - on the right is the original sensor:
The actual state is like you get from your template. The frontend formats numeric values from sensors based on your profile settings.
If you use a template it will return the actual state, without the formatting. If you want a space as thousands separator, you need to do that formatting in your template