Getting Started¶
Prerequisites¶
- Python 3.14+
- uv (recommended) or pip
Installation¶
As a Home Assistant Integration (HACS)¶
- Open HACS in your Home Assistant instance
- Go to Integrations → Custom Repositories
- Add
mikejhill/home-assistant-rouvyas an Integration - Install the Rouvy integration
- Restart Home Assistant
- Navigate to Settings → Devices & Services → Add Integration
- Search for Rouvy and enter your credentials
As a CLI Tool¶
# Install from the repository
uv tool install .
# Or install in development mode
git clone https://github.com/mikejhill/home-assistant-rouvy.git
cd home-assistant-rouvy
uv sync
CLI Configuration¶
Create a .env file in the project root (or set environment variables):
First Commands¶
# View your profile (default command)
rouvy-api profile
# View training zones
rouvy-api zones
# Get JSON output for scripting
rouvy-api profile --json | jq .weight_kg
# Update your weight
rouvy-api set-weight --weight 86.5
# Enable debug logging
rouvy-api profile --verbose
Global Flags¶
All commands support these flags:
| Flag | Description |
|---|---|
--json |
Output as JSON instead of formatted text |
--verbose |
Enable debug logging |
--log-level LEVEL |
Set log level (DEBUG, INFO, WARNING, ERROR) |
Next Steps¶
- Browse the CLI Reference for all 23 commands
- See the Schema Reference for JSON output formats
- Read the Home Assistant Setup Guide for integration-specific configuration