A sensor/detector for connecting an alarm system to HA

Hi all,
I’m trying to find a way to connect an alarm system to HA. The alarm system has a 12V output that can be used to connect to other devices. The output is triggered when the alarm goes off.

I thought to put a sensor/detector on that output to be able to read its state with HA. The HA should only notify me that the alarm is triggered and nothing more.

Could you please recommend me what kind of sensor/detector this might be?

Thanks in advance.

If you’re up for a little soldering, it looks like you could build one using an ESP32 device, a DC sensor, and ESPHome.

I found this thread:

That mentions this sensor:

Attach that to the I2C bus of an ESP32, and you should be able build a YAML file for ESPHome that will get the device to report the state to Home Assistant.

I’m doing something similar with a different sensor to detect an AC current.

Hi Kyle,
Sorry for the slow reply, and thanks for sharing the thread and your suggestion with me! I’ve read it, it’s a very informative thread.

I think, using the Shelly Plus Uni relay would be a good solution for me as it requires less work around it.