@gee, I might need your engineer help here. Anyone else is obviously welcome to chime in...
We have an automated outdoor cat feeder. Amazingly, the racoons have never figured it out, but they still occasionally hear it go off and stop by. I'd love to come up with some sort of non-toxic spray that we can hit manually via an automation to scare them off. Nothing that would hurt them, and nothing that could be toxic to the cat food right there.
Y'all got any ideas? If it matters, we do have power right there.