FAQ: List of devices with dry contact input from external sources

Virtual devices! Thank you! You learn something new everyday. Lovely stuff

Somewhat late in replying but I use the guard line drivewaynsensor with an electromagnet driving a sonoff contact sensor.
I use it to trigger Alexa announcements via a virtual device

See here