Hi everybody… my first post, so please let me know if I’ve made any mistakes.
I spent some time away from actively working on my Home Assistant setup… and getting back into it, I upgrade from v37 to current. I was surprised that most everything seemed to work without needing a tweak. The only thing that stopped working was two template binary sensors. I’m confident the problem is in my yaml indentation/format which is something I’ve never totally wrapped my head around. In the past, I would always just basically try different formats (with a dash, without a dash being the best examples) until it worked. But this time, I can’t seem to get the sensors to work using the format from the examples here:
Hopefully I’m using the code tags appropriately… it seems to just indent the text I have highlighted. But anyways, the binary sensors are at the bottom. Like I said, they had been working in v37. The front end shows this:
Failing that, try commenting out one of the sensors at a time to narrow down which one is giving you problems.
Also there is probably more error info in the homeassistant.log file.
As an aside, you can tidy up your code a little by changing some formatting :
The easy to access log in the newest version surely helped, as you suggested (I remember logs being a lot harder to use when I was developing last). It mentioned an invalid class for the sensor. It looks like “sensor_class” became “device_class” at some point. Fixing that put me back in business!
Thanks a lot for taking a look, I really appreciate it.