lights_on
Turn on a locomotive's headlight by specifying its DCC address. This invokes function 0, the standard headlight function for DCC decoders.
Instructions
Turn on a locomotive's headlight(s): shortcut for set_function(address, 0, True).
F0 is almost universally the headlight function across DCC decoders (this is a very strong convention, not a JMRI/protocol guarantee), so this is the tool to reach for on a plain "turn the lights on" voice request without asking the user for a function number. Same auto-acquire and no-op-safe behavior as set_function.
This is the locomotive's own headlight, NOT layout/scenery lighting (depot, street lamps, signals) — for those, use set_light instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes |