How to show sun coming status frontend

The entity sun have this attributes:

next_dawn: 2018-02-14T06:04:59+00:00
next_dusk: 2018-02-13T16:45:35+00:00
next_midnight: 2018-02-13T23:26:23+00:00
next_noon: 2018-02-13T11:26:25+00:00
next_rising: 2018-02-14T06:46:03+00:00
next_setting: 2018-02-13T16:04:21+00:00

How to show them in frontend with only time (24h)?

Make a Template Sensor

sensor:
  - platform: template
    sensors:
      day_sunrise:
        value_template: '{{ as_timestamp(states.sun.sun.attributes.next_rising) | timestamp_custom("%H:%M") }}'
1 Like