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
  • 📈 Statistics & Graphs - View historical temperature data as a table or graph
  • 🌡️ 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]

Statistics

View historical temperature data. By default, it shows data for the last 24 hours.

# Show statistics for the last 24 hours
huum statistics

# Show all available data for the current month
huum statistics --all

# Display the data as a graph
huum statistics --graph

# Combine flags
huum statistics --all --graph

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

Publishing a New Version

The project uses GitHub Actions to automatically publish to PyPI when you push a version tag.

Prerequisites

  1. Add your PyPI API token to GitHub repository secrets:

Release Process

  1. Update version in pyproject.toml:

    # Edit pyproject.toml and change version = "0.1.0" to new version
    
  2. Commit the version change:

    git add pyproject.toml
    git commit -m "Bump version to 0.2.0"
    git push
    
  3. Create and push a git tag:

    git tag v0.2.0
    git push origin v0.2.0
    
  4. GitHub Action runs automatically:

Version Numbering

Follow semantic versioning (MAJOR.MINOR.PATCH):

  • MAJOR: Breaking changes (e.g., 1.0.0 → 2.0.0)
  • MINOR: New features, backwards compatible (e.g., 0.1.0 → 0.2.0)
  • PATCH: Bug fixes, backwards compatible (e.g., 0.1.0 → 0.1.1)

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.2.0.tar.gz (111.7 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.2.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: huum_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 111.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for huum_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5ea37586be5fb4c180c756046c243a3eb1707b94c10474593feabc29251bedae
MD5 1b7269d0e2a9e89a4867713ac462c471
BLAKE2b-256 3697cfc49cd02d82994190bd5d7a1b83bd4811704103cf1a519ad5f32768a2ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: huum_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for huum_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9335e64e68aabd029dbf3312a9233a85b65df762ccdc7080e42bd058fa4450f5
MD5 a8a060fda6db309d2159c1f6026fa83d
BLAKE2b-256 d0cf47d93f572937a727ab96104b6fcd86c0c3a985033f76a1f0cd19150e4f80

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