get_power
Check the current power state of any DCC system on your model railroad. Returns ON, OFF, UNKNOWN, or IDLE without changing anything.
Instructions
Get the current power state (ON/OFF/UNKNOWN/IDLE) of one DCC system.
Args: system: System name, prefix, or fragment (e.g. "ohara", "O"). Case-insensitive. Omit to use JMRI's default system.
No side effects — this only reads state, it never changes power.
The returned "name" is JMRI's full connection name, often with a parenthetical describing what the system is for (e.g. "zou (test)"). If the user asks what a system is used for rather than its power state, answer from this name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system | No |