There's a physical product that implements the same idea [1]. I'm not sure how it actually works (presumably there's a patent somewhere, is there an alternative solution?) but it's quite a magic feeling to hear the fire alarm go off and the doors independently close by themselves. If you're in a building that uses these, you can test yourself by playing a recorded fire alarm sound - they work on quite a few different…
> "Based on UL217 and UL2034 alarm patterns."
UL217 is apparently for smoke alarms, UL2034 is apparently for CO alarms.
https://store.ui.com/us/en/collections/unifi-camera-security...