get_light
Retrieve the current ON or OFF status of a specific layout light by its system name or label. Intended for scenery lights, not locomotive headlights.
Instructions
Get the current ON/OFF state of one layout light.
Args: name: Light name (JMRI system name like "IL1", or its user-friendly label like "Depot Lighting") or an unambiguous fragment of the label. Case-insensitive.
This is a layout light (scenery), not a locomotive headlight — for "is the Autorail's headlight on", use get_locomotive_functions instead. No side effects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |