list_lights
Discover all layout lights on the JMRI railroad. View each light's current ON/OFF state to identify lights before controlling them.
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 | |||