get_light
Check whether a layout light is on or off by specifying its JMRI system name or user label. Returns the current ON/OFF state of any scenery light.
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 |