I’m interested in having a few of these switches around the house as a “panic button” to trigger the home alarm via HA. Anyone have any ideas how to incorporate this into HA? I’m thinking that there must be a way to use a smart plug or ESP8266 in order to make this work.
If you want to DIY then it would be very simple using an ESPhome gpio binary sensor, https://esphome.io/components/binary_sensor/gpio.html
Otherwise you could connect the switch to any zwave, zigbee, 433MHz RF, or wifi door/window sensor.
Tasmota on any esp8266 boards is another solution that would be trivial. If you want it to run on batteries then the 433MHz or zigbee door/window sensor is probably the way to go though. The WiFi stuff tends to be a lot more power hungry. Those guarded toggle switches are just a set of contacts like any other switch, anything that can send a signal to HA in response to a contact closure will do the job. If you use a wireless sensor just make sure it’s one that sends different messages for both close and open, some of them only send a message on open.
Did it work. Can you tell me how you did it exactly?