set_signal
Ensure correct signal display: set a signal mast aspect and report the actually observed aspect.
Instructions
Set a signal mast's aspect, and report the aspect actually observed.
Args: name: Mast name (system name or userName) or unambiguous fragment. Case-insensitive. aspect: e.g. "Hp0"/"Hp1"/"Hp2" — signal-system-dependent, IS case-sensitive, NOT validated locally (rejection: "error"). Call list_signal_aspects(name) FIRST if unsure of spelling/case, e.g. when named by effect ("turn it red") — don't guess. "unlit"/"off" darkens the mast — prefer signal_off(name).
Writes to JMRI. "confirmed" false means re-read still doesn't match — report honestly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| aspect | Yes |