list_lights
Discover all JMRI layout lights and their current ON/OFF state. Use this to see what lights exist before controlling them, without side effects.
Instructions
List every layout light known to JMRI, with its current ON/OFF state.
These are JMRI light objects wired to the layout/scenery itself
(depot lighting, street lamps, signal lamps, ...) — NOT a
locomotive's headlight (that's F0, via set_function/lights_on on a
DCC address). Use this to discover what lights exist before calling
get_light/set_light, or to answer "what lights are there?". No
side effects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||