emergency_stop
Immediately stop a locomotive using JMRI's decoder e-stop for safety-critical situations (derailment risk, imminent collision). Use only when an abrupt halt is needed, not for routine stops.
Instructions
Emergency-stop a locomotive immediately (JMRI's decoder e-stop command).
Args: address: DCC address. Auto-acquires the throttle if needed.
Use ONLY for safety-critical stops: derailment risk, imminent
collision, or any situation needing an immediate halt rather than
smooth deceleration. This is JMRI's actual decoder e-stop (speed
-1.0 on the wire, distinct from a normal speed command) — cuts
power abruptly, rougher on the mechanism, so don't use as a
synonym for routine stop.
Returns stopped: true once confirmed. Safe to call repeatedly:
a redundant e-stop is a silent no-op on JMRI's side, and a local
cache (kept fresh from JMRI's broadcasts from any client) reports
correct status instead of hanging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |