After stumbling across this thread, I realized that I had the same error, but my solution was different.
For anyone with this same error after adding automations, I added hide_entity: False, but I also didn’t realize that the state automation can’t just look for on for a binary sensor. It absolutely requires both the from: off and to: on options.
This is not clear from documentation and I struggled (because it’s home-assistant, of course I struggled) to find this out and wanted to save others from my pain.