Hey,
since I installed HA 2023.5.x my template sensor for correct time, sunset and sunrise with unit of measurement stopped working and showing only unknown
.
in my configuration.yaml
- platform: template
time_correct:
friendly_name: "Uhrzeit"
value_template: "{{ as_timestamp(now()) | timestamp_custom('%H:%M') }}"
icon_template: 'mdi:clock'
unit_of_measurement: 'Uhr'
- platform: template
time_correct:
friendly_name: "Uhrzeit"
value_template: "{{ as_timestamp(now()) | timestamp_custom('%H:%M') }}"
icon_template: 'mdi:clock'
# unit_of_measurement: 'Uhr'
So, is this a bug or did I need to change something? Is this a problem because the time is a string?