Skip to main content

CLI for managing Huum sauna devices

Project description

Huum Sauna CLI

A command-line interface for managing Huum sauna devices remotely.

Features

  • 🔐 Secure Authentication - Store credentials safely in OS keyring
  • 🔥 Start Sessions - Remotely start your sauna heating
  • ⏹️ Stop Sessions - Turn off your sauna from the command line
  • 📊 Status Display - View current and target temperatures with Rich formatting
  • 🌡️ Custom Temperatures - Set target temperature (40-110°C)
  • 🎯 Auto-device Selection - Automatically selects device if you have only one
  • Fast & Reliable - Automatic retries with exponential backoff

Installation

Requires Python 3.11 or higher.

pip install huum-cli

Or with uv:

uv tool install huum-cli

Development Installation

# Clone the repository
git clone https://github.com/tomdyson/huum-cli
cd huum-cli

# Install dependencies
uv sync

# Install the CLI in editable mode
uv pip install -e .

Quick Start

1. Authenticate

huum auth login

You'll be prompted for your Huum account credentials. Your session will be stored securely in your system keyring.

2. Start Your Sauna

# Start with default temperature (85°C)
huum start

# Start with custom temperature
huum start --temperature 75

3. Stop Your Sauna

huum stop

Commands

Authentication

# Log in
huum auth login

# Log in with credentials
huum auth login --username user@example.com --password mypass

# Log out
huum auth logout

Sauna Control

# Check status
huum status

# Start sauna
huum start [DEVICE_ID] [--temperature 85]

# Stop sauna
huum stop [DEVICE_ID]

Device Management

If you have multiple devices, specify the device ID:

huum start my-sauna-id --temperature 80
huum stop my-sauna-id

Configuration

Credentials are stored securely using your operating system's keyring:

  • macOS: Keychain
  • Windows: Windows Credential Manager
  • Linux: GNOME Keyring/KWallet

API

This CLI uses the Huum API (v1.2) at https://sauna.huum.eu.

See the API documentation for more details.

Development

Built with:

  • Typer - CLI framework
  • httpx - HTTP client
  • Pydantic - Data validation
  • Rich - Terminal formatting
  • keyring - Secure credential storage

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

huum_cli-0.1.0.tar.gz (107.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huum_cli-0.1.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file huum_cli-0.1.0.tar.gz.

File metadata

  • Download URL: huum_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 107.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.24

File hashes

Hashes for huum_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 234ef6c8a7c531b965ec856930808368eb66400c9dceed78e4af92587069cb43
MD5 f23911d291a21e8944b21418675feb4c
BLAKE2b-256 b276790e1a48c32993e2088073b3faf7f5600a97034e48f99c2845c288bf6f5d

See more details on using hashes here.

File details

Details for the file huum_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: huum_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.24

File hashes

Hashes for huum_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ebadb1ec8b5a95a54bdae7962b3e15d6eadfe6d958edf3c109d800bbeb5f7a2
MD5 3e2869aac3c3bf705eadc37cd107c3c4
BLAKE2b-256 e00a9c55be4fc538946863e52db89f349f3744a22937b735bcbc0befdd678d1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page