I saw here:
that you can use a simple open/close sensor to simulate the smoke alarm by connecting a relay to it. Is there any existing examples?
I got a $20 sensor: https://www.amazon.com/gp/product/B06XDJ3KYC/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1
and I am trying to learn to integrate it.
One quick question is, in the IDE, how do I create a special handler for this particular device that is different from the others? I want to keep on using the other sensors of the same type as normal door/window sensors.