i have this quite complex series of cards using auto entities, state switch, and some template sensors. sometimes it works great, other times it stops working and a refresh is needed to get it working again (as seen in the video). what troubleshooting steps and I take to figure out what's happening here?
here's the yaml its certainly a mess https://dpaste.com/H3KT9EG8R