get_light
Check the current ON/OFF state of a layout light (e.g., 'IL1' or 'Depot Lighting') by name or label fragment. No side effects.
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 |