This is odd.
I’ve had the times of sunrise and sunset on my wall panel for over a year now. I create my entities with the following yaml@
template:
sensor:
- name: nextsunrise
icon: mdi:weather-sunset-up
unit_of_measurement: " "
state: >
{{as_timestamp(states.sun.sun.attributes.next_rising) | timestamp_custom('%H:%M')}}
- name: nextsunset
icon: mdi:weather-sunset-down
unit_of_measurement: " "
state: >
{{as_timestamp(states.sun.sun.attributes.next_setting) | timestamp_custom('%H:%M')}}
I’ve noticed that the entities are no longer available. I have lots of other entities in the template/sensor block that still work fine and the template itself still works fine in developer tools.
Have I missed a breaking change or something?
As an aside, I have recently installed Studio Code Server as an alternate file editor and the whole block of yaml for the template/sensors is marked as having a problem with the error
Incorrect type. Expected "array"
Like I said everything else appears to be working.