set_turnout
Set a model railroad turnout to thrown or closed by name, then report the actual observed state and whether it was confirmed.
Instructions
Set a turnout CLOSED or THROWN, and report the state actually observed.
Args: name: Turnout name (JMRI system name like "IT100", or its user-friendly label like "Layout Turnout A") or an unambiguous fragment of the label. Case-insensitive. thrown: True to THROW the turnout, False to CLOSE it. JMRI/ PanelPro's own terminology — not "open"/"closed" track, which would be ambiguous about which direction is which.
This writes to JMRI (and moves a physical turnout motor on real hardware). The reported state is re-read after the command; if the observed state doesn't match the request, "confirmed" will be false and that should be reported honestly rather than assumed as success — some turnouts have feedback sensors that can fail to settle to the commanded position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| thrown | Yes |