Dry contact relay?

Depending on how quickly you need something, this LoraTap c/w wireless contact, is looking promising with @kkossev working on an integration/driver.

And there's also a version with wired contacts, they call a Sliding Gate Controller that might work with the same driver.