.conf), JSON, or YAML syntax. Settings can also be overridden at runtime using environment variables.
Config file formats
PAI supports three file formats.| Format | Extensions | Notes |
|---|---|---|
| Python | .conf, .py | Evaluated with exec(). Supports expressions like 15 * 60. |
| JSON | .json | Standard JSON. No comments or expressions. |
| YAML | .yaml | Requires the YAML extra (pip install "paradox-alarm-interface[YAML]"). |
Config file search order
When no explicit path is given, PAI searches for a config file in these locations, in order:
The first matching file found is used. If no file is found, PAI exits with an error.
Environment variable overrides
Any configuration key can be overridden by an environment variable prefixed withPAI_. PAI strips the prefix and matches the remainder against known config keys.
Environment variables are applied after the config file is read, so they take precedence over file-based settings.
Config file examples
In JSON and YAML files, logging levels must be specified as integers. The Python
logging module values are: DEBUG=10, INFO=20, WARNING=30, ERROR=40, CRITICAL=50.Next steps
General settings
Connection, logging, panel behavior, and timing options.
Resource limits
Restrict which zones, partitions, outputs, and users PAI monitors.