emergency_stop_all
Stop all locomotives under your session's control with a single emergency command. Use this panic button for derailment or collision risk.
Instructions
Emergency-stop EVERY locomotive currently under this session's control at once.
No arguments — panic button for "stop everything NOW" (derailment, collision risk, no time to name individual locomotives). Call for "stop everything"/"stop all trains"/"arrête tout"/"arrête toutes les locos" — stop MOTION generically, no locomotive named. Sends the same decoder e-stop as emergency_stop(address) to every address this session has acquired.
NOT "cut the power"/"coupe le courant"/"coupe tout" — that means power_off_all (real power cut to every DCC system, reaching locomotives regardless of who's driving them). This only sends a throttle command, never touches track power.
LIMITATION: only reaches locomotives THIS session has acquired. A locomotive driven only from a JMRI panel or another session is NOT stopped, since only the connection holding a throttle can command it. For a guarantee covering everything regardless of driver, use power_off_all instead.
Returns {"stopped": [...addresses e-stopped...], "failed": [...]}. An address with no error is confirmed at emergency-stop speed either way (already-stopped locos are a safe no-op, not skipped silently without being reported).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||