emergency_stop
Send an immediate decoder emergency stop to a DCC locomotive using its address, for safety-critical situations like derailment risk or imminent collision. Cuts power abruptly, preventing damage or accidents.
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 |