Format number with comma seperator?

Any way to format the below card to include a comma thousands separator?

Thanks.

Is that an entity card? If so you should set your device locale

It is…where do I do that?

In the device app settings for your user profile.

Thanks it’s already set to auto.

I was able to use template-entity-row to get the comma separator per the below, I had to give it a unit though…doesn’t work with no unit value.

state: >-
  {{ "{:,}
  unit".format(states.sensor.ring_activity.attributes.data.total_calories)
  }}

then your language does not have that set. Change your numerical format to use the commas. No need for templates.

Also, add a unit_of_measurement to your sensor. It thinks it’s text.

The value is an attribute of the sensor, do I need to convert it to a number somehow? I added a unit but doesn’t change anything.

 - type: custom:template-entity-row
    name: Calories Burned
    state: >-
      {{ states.sensor.oura_ring_activity.attributes.data.total_calories}}
    entity: sensor.oura_ring_activity
    icon: mdi:fire
    unit: Cals

It’s because you’re using that custom template row. Make a template sensor instead then use that in the ui.

Gotcha…will do thanks