emergency_stop
Stop a DCC locomotive immediately during safety-critical situations such as derailments or collisions. Uses JMRI's decoder e-stop to cut power abruptly for an emergency halt.
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 |