I have been using this code for some time. It no longer seems to load the binary sensor. Could someone else please test to see if this works in their configuration? I am running the most current 2022.9.7.
binary_sensor:
- platform: tod
name: Night
after: sunset
before: sunrise
There is nothing in my logs to indicate any problem.