Detecting Template Sensor Errors

For the second time an error in a single template binary sensor caused all of my template sensors to stop working. I had an extra ’ that didn’t belong. The problem is the sensors didn’t stop working for two days so I did all sorts of troubleshooting until I figured it out. Is there a log that will tell me there is an error at the time I create new template binary sensors? Thanks

That 's odd because when you reload the config HA tells you if it has syntax error like that.

After researching further I found a related HA post that said having comments in the template yaml file is not a good idea… I’ve removed them and my sensors have updated to the correct state. It doesn’t answer the question as to why there is no warning even after a restart and they continue to work for days then just stop. I was hoping there was a log file but I guess not or I’ve missed it.