How caronc/ultrasync works
UltraSync is a Python CLI and library for reading and controlling compatible local-network alarm panels. The user supplies panel credentials/configuration and requests a scene change, status snapshot, live watch, or diagnostic dump; the CLI loads configuration, invokes the UltraSync client, and reports results. The client maintains an HTTP session and implements panel-specific status parsing and controls. Major README capabilities are represented, but several internal links are necessarily omitted: the main client excerpt is partial, so its unsampled method-level calls cannot be verified.
Main entry points: cli.py Command CLI · main.py UltraSync client · config.py Panel configuration · logger.py Logging
Components 17
User Interface
- Command CLI
ultrasync/cli.py - Logging
ultrasync/logger.py
Configuration
- Panel configuration
ultrasync/config.py
Panel Client
- UltraSync client
ultrasync/main.py - HTTP session
ultrasync/main.py
Alarm Domain
- Panel constants
ultrasync/common.py - Status snapshots
ultrasync/main.py - Area state parsing
ultrasync/main.py - Zone state parsing
ultrasync/main.py - Scene control
ultrasync/main.py - Zone bypass
ultrasync/main.py - Output control
ultrasync/main.py
Results
- Live watch
ultrasync/cli.py - JSON details
ultrasync/cli.py - Diagnostic dump
ultrasync/main.py
Other components
- CLI user
- Alarm panel
Connections 17
- CLI user → Command CLI: requests actions
README.md - Command CLI → Panel configuration: loads settings
ultrasync/cli.py - Command CLI → UltraSync client: creates client
ultrasync/cli.py - UltraSync client → HTTP session: creates session
ultrasync/main.py - HTTP session → Alarm panel: sends HTTP requests
ultrasync/main.py - Command CLI → Scene control: requests scene
ultrasync/cli.py - Command CLI → Status snapshots: requests details
ultrasync/cli.py - Command CLI → Zone bypass: requests bypass
ultrasync/cli.py - Command CLI → Output control: requests switching
ultrasync/cli.py - Command CLI → Diagnostic dump: requests dump
ultrasync/cli.py - Command CLI → Live watch: starts monitoring
ultrasync/cli.py - Live watch → Status snapshots: polls details
ultrasync/cli.py - Live watch → Zone state parsing: reads zone changes
ultrasync/cli.py - Status snapshots → JSON details: prints JSON
ultrasync/cli.py - Command CLI → Logging: configures logging
ultrasync/cli.py - UltraSync client → Panel configuration: uses settings
ultrasync/main.py - UltraSync client → Panel constants: uses panel constants
ultrasync/main.py