stop
Bring a DCC locomotive to a controlled halt by setting speed to 0%. Designed for normal stops at signals or end of run.
Instructions
Bring a locomotive to a controlled stop (speed 0%), like releasing the throttle.
Args: address: DCC address. Auto-acquires the throttle if needed.
For a panic/safety stop (derailment risk, collision course, "stop
it NOW") use emergency_stop instead — a distinct decoder command
(immediate motor power cut), not just "speed 0". Use this stop
for a normal, intentional halt (end of run, waiting at a signal).
Safe to call repeatedly, even when already stopped: JMRI silently ignores a redundant request, and a local speed cache (kept fresh by JMRI's own broadcasts from ANY client) still returns the correct current speed_percent without hanging.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |