Change Time to 12 hour

Is there a display option under the platform time_date that changes the time to 12 hour format instead of 24 hour?

1 Like

I’m currently searching for a way to do this also, default sensor.time is only 24 hours time i’ve tried a value template but it doesn’t updated automatically.

this should work

sensor:
  - platform: time_date
    display_options:
      - 'time'
      - 'date'
      - 'time_date'
      - 'time_utc'
      - 'beat'
  # 12 Hour Time Format
  - platform: template
    sensors:
      normaltime:
        entity_id: sensor.time_date
        value_template: >
          {{ (now().strftime('%I')|int)~now().strftime(':%M') }}
3 Likes