enter_exhibition_mode
Activate a restricted-safety mode for public exhibitions. Prevents power-on commands, limits locomotives to forward-only at fixed speed, and optionally restricts address access.
Instructions
Turn ON exhibition mode: a restricted-safety mode for public demos (exhibitions, kids trying voice control).
No arguments, no password needed — always freely callable, so this can be turned on quickly whenever the layout is about to be unsupervised or handed to the general public. Call for "mode exposition"/"exhibition mode"/"passe en mode démo"/"active la protection visiteurs" or similar.
While active: power_on_all/set_power(turn_on=True) are refused (power_off_all and set_power(turn_on=False) still work — cutting power for an emergency always stays available); every locomotive moves FORWARD ONLY at a fixed moderate speed no matter what speed/ direction is requested (the request is silently downgraded, not rejected — report that the loco is moving, not an error); and if an address allowlist was configured at install time, only those DCC addresses can be acquired or driven. Lights and functions (set_function/lights_on/lights_off/set_loco_lights) are NOT restricted — the exhibition can still show off lighting.
Exiting requires exit_exhibition_mode(password) — a password configured at install time (see that tool's docstring), NOT this one. This asymmetry is deliberate: turning the safety ON should never be gated, only turning it back OFF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||