Smoke detector
Optical (photoelectric) smoke detector for enclosed rooms (LER, CCR, accommodation): white head with smoke entry vents on a mounting base and steel conduit back box, remote indicator LED, conduit and stopping plug. Origin on the ceiling; drop > 0 hangs it under steel on a beam clamp and rod.
Installation
Copies safety/smoke-detector.tsx and the shared lib/ into src/components/deck-twin/. Needs three, @react-three/fiber and @react-three/drei. See installation for the manual route.
Usage
import { Canvas } from '@react-three/fiber'
import { OrbitControls } from '@react-three/drei'
import { Stage } from './components/deck-twin/lib/stage'
import { SmokeDetector } from './components/deck-twin/safety/smoke-detector'
export default function Scene() {
return (
<Canvas shadows camera={{ position: [8, 5, 9], fov: 35 }}>
<Stage>
<SmokeDetector />
</Stage>
<OrbitControls makeDefault />
</Canvas>
)
}
Props
| Prop | Type | Default | Range |
|---|---|---|---|
drop | number (m) | null | 0 – 1.5 |
alarm | boolean | null | |
tag | string | null | |
...group | position, rotation, scale… |
P&ID
Circle (or square) with S or SD on the ceiling plan of enclosed rooms: LER, CCR, accommodation and HVAC ducts (duct detectors marked D).
Same family as the heat detector: read the letter. BS-style legends draw a smoke detector as a circle with S; NFPA-style may use a square or SD in a circle.
dropalarmtagTypical suppliers
Autronica · Apollo · Hochiki. The geometry is generic and sized from public standards. It is not vendor CAD.
For agents
Machine-readable entry with props, ranges, defaults and ports:
Or fetch /r/smoke-detector.json, or copy a ready-made instruction:
Add the Deck Twin "Smoke detector" component to this project. Run `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz add smoke-detector` (it copies the file and the shared lib into src/components/deck-twin/), then `npx -y https://decktwin.com/cli/deck-twin-0.2.2.tgz info smoke-detector` for its props, ranges and ports. Render <SmokeDetector /> inside a React Three Fiber <Canvas shadows>, wrapped in <Stage> from src/components/deck-twin/lib/stage. Set props from my data (metres, NPS in inches, ASME class) and leave the rest at defaults. Install three, @react-three/fiber, @react-three/drei and @types/three if they're missing. Full guide: https://decktwin.com/skill/SKILL.md