This is exactly what im doing right now(although plexiglass not glass but same thing) Ive had no issues and have gotten a lock each time ive paired them. The one thing i do since i leave a light on in the snake room during the day is remove the hides and cover the front of the tank they are both in when paired so they feel a little more secure. Good luck.
Sent from my SM-G935V using Tapatalk