-
Notifications
You must be signed in to change notification settings - Fork 14
Developer Scripts
All development scripts are located in the scripts/ directory and follow a consistent pattern.
Purpose: Initial development environment setup
./scripts/setupWhat it does:
- Installs Python development dependencies
- Sets up pre-commit hooks
- Validates environment
When to use:
- First time setting up the project
- After pulling major changes that update dependencies
- When pre-commit hooks need to be reinstalled
Purpose: Run Home Assistant with the integration loaded for testing
./scripts/developWhat it does:
- Creates
config/directory if not present - Sets
PYTHONPATHto includecustom_components/ - Starts Home Assistant with debug logging
- Uses
config/configuration.yamlfor test setup with mock entities
Features:
- Hot reload: Changes to Python files are reflected after restart
- Debug logging: Verbose output for troubleshooting
- Mock entities: Pre-configured test entities in
config/configuration.yaml
Access:
- Web UI: http://localhost:8123
- Default credentials: Created on first run
Tips:
- Keep the terminal open to see logs in real-time
- Press
Ctrl+Cto stop the server - Changes require a Home Assistant restart to take effect
Purpose: Run code quality checks and auto-fix issues
./scripts/lintWhat it does:
- Runs
ruff check . --fix- Linting with auto-fix - Runs
ruff format .- Code formatting
When to use:
- Before committing changes
- After writing new code
- When fixing linting errors
Note: Pre-commit hooks run this automatically on git commit
Purpose: Automate the entire release process
See the Developer Release Process page for detailed documentation.
π Home Β· β¨ Features Β· π° What's New
π Getting Started
- Installation
- Migrating from Custom Repository
- Migrating from Adaptive Cover
- First-Time Setup
- Cover Types
π§ Core Concepts
π Cover Types
βοΈ Configuration
- Sun Tracking
- Position
- Glare Zones
- Automation
- Custom Position
- Force Override
- Weather Safety
- Climate
- Blindspot
- Summary Screen
- Debug & Diagnostics
π Entities & Services
- Entities
- Proxy Cover Entity
- Position Verification
- My Position Support (Somfy RTS)
- Runtime Configuration Services
π οΈ Operations
π§ Advanced Use Cases
- Dynamic Temperature Thresholds
- Dynamic Tracking Window
- Bedroom Sleep Mode
- Handling Variable Cloud Cover
- Venetian Tilt-Only on Overcast Days
π¨ Dashboard
π§ͺ Testing & Simulation
π Reference
π©βπ» For Developers