The metal contacts and screws from the original will have to be transplanted. While this has a common and simple internal layout, it may not match the one being replaced and might not work for you or might need modification.
Technical
I printed this with Raptor PLA, and it has been on the south-facing front of my friend's house for 2 years with whitening and little cracks just starting to show up.