set_signal
Set a signal mast aspect on your DCC layout via JMRI. Send a valid aspect name and receive confirmation of the actual observed aspect, including hardware feedback.
Instructions
Set a signal mast's aspect, and report the aspect actually observed.
Args: name: Signal mast name (JMRI system name or user-friendly label) or an unambiguous fragment. Case-insensitive. aspect: The aspect to request, e.g. "Hp0" (stop), "Hp1" (proceed), "Hp2" (proceed reduced speed) for a German DB-HV-1969 mast — valid names depend on this mast's configured signal system and are NOT validated locally (JMRI doesn't expose a valid-aspect list); JMRI validates server-side and this tool reports rejection as an error. If unsure, call get_signal/list_signals first to see the current aspect as a naming-style example, or ask the user rather than guessing.
Writes to JMRI, and on masts driven by external hardware (DCC accessory decoder, microcontroller) changes the real physical signal. An unknown aspect is reported as an "error". A valid aspect is re-read after the command; if the observed aspect still doesn't match, "confirmed" is false — report that honestly, not as success, since unresponsive hardware can cause this even when JMRI itself accepted the change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| aspect | Yes |