Hi,
I am using Openweathermap integration and also wrote a template for cosmetic changes as follows:
sensor sunevent:
- platform: template
sensors:
sunrise:
friendly_name: "Next Sunrise"
#unit_of_measurement: "AM"
value_template: >
{{ as_timestamp(state_attr("sun.sun", "next_rising"))
|timestamp_custom("%I:%M:%S %p") }}
sunset:
friendly_name: "Next Sunset"
#unit_of_measurement: "PM"
value_template: >
{{ as_timestamp(state_attr("sun.sun", "next_setting"))
|timestamp_custom("%I:%M:%S %p") }}
Off lately the UI has started showing “Exceptional” but everything else seems to work fine. I am not sure if this is precursor of things about to break or if there is a way to get rid of this.
Any pointers will be appreciated!