Skip to main content

Python interface for waterfurnace geothermal systems

Project description

waterfurnace

python package status build status Python versions

Python interface for WaterFurnace and GeoStar geothermal systems.

This provides basic sensor readings for WaterFurnace geothermal systems by using the websocket interface that exists for the Symphony website. This is not a documented or stable interface, so don't use this for critical systems. However, it is useful to record historical usage of your WaterFurnace system.

Installation

pip install waterfurnace

Quick Start

   from waterfurnace.waterfurnace import WaterFurnace
   wf = WaterFurnace(user, pass)
   wf.login()
   data = wf.read()

The waterfurnace symphony service websocket monitors it's usage, so you need to do a data reading at least every 30 seconds otherwise the websocket is closed on the server side for resource constraints. The symphony website does a poll on the websocket every 5 seconds.

The software now supports a CLI. For details, use waterfurnace --help

CLI Usage

The CLI uses subcommands. Common options (-u, -p, -v, etc.) go after the subcommand.

Reading sensor data

# One-shot sensor reading (password prompted if not provided)
waterfurnace read -u user@example.com -p password

# Read specific sensors
waterfurnace read -u user@example.com -p password -s enteringwatertemp,leavingairtemp

# Read all available sensors
waterfurnace read -u user@example.com -p password -s all

# Continuous monitoring (reads every 15 seconds)
waterfurnace read -u user@example.com -p password --continuous

Energy data

# Get hourly energy data for a date range
waterfurnace read -u user@example.com -p password --energy \
  --start 2024-01-01 --end 2024-01-31

# Daily energy data in a specific timezone
waterfurnace read -u user@example.com -p password --energy \
  --start 2024-01-01 --end 2024-01-31 --freq 1D --timezone America/Chicago

# 15-minute resolution energy data
waterfurnace read -u user@example.com -p password --energy \
  --start 2024-01-01 --end 2024-01-07 --freq 15min

Controlling the thermostat

# Set thermostat mode (off, auto, cool, heat, eheat)
waterfurnace set-mode -u user@example.com -p password auto

# Set cooling setpoint (60-90F)
waterfurnace set-cooling-temp -u user@example.com -p password 74

# Set heating setpoint (40-80F)
waterfurnace set-heating-temp -u user@example.com -p password 68

Multi-device and vendor options

# GeoStar systems (--vendor accepts "waterfurnace" or "geostar")
waterfurnace read -u user@example.com -p password --vendor geostar

# Select a specific device in a multi-device system (0-indexed)
waterfurnace read -u user@example.com -p password -D 1

# Select a specific location in a multi-location system (0-indexed)
waterfurnace read -u user@example.com -p password -l 1

Environment variables

# Set credentials via environment variables to avoid repeating them
export WF_USERNAME=user@example.com
export WF_PASSWORD=your_password

waterfurnace read
waterfurnace set-mode auto

# Reuse an existing session ID
export WF_SESSIONID=your_session_id

Development

Setting Up Development Environment

# Clone the repository
git clone https://github.com/sdague/waterfurnace.git
cd waterfurnace

# Install in development mode with all dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run tests with coverage
pytest --cov=waterfurnace --cov-report=term-missing

# Format code
black waterfurnace tests

# Run all tests across Python versions
tox

Building and Publishing

# Build package
python -m build

# Check package
twine check dist/*

Known Issues / Limitations

  • The python websocket code goes into a blocked state after long periods of usage (always takes at least days if not weeks or months to get to this state). I've yet to discover why. Help welcome.

License

  • Free software: Apache Software License 2.0

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

waterfurnace-1.8.0.tar.gz (27.7 kB view details)

Uploaded Source

Built Distributions

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

waterfurnace-1.8.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

waterfurnace-1.8.0-py2.py3-none-any.whl (14.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file waterfurnace-1.8.0.tar.gz.

File metadata

  • Download URL: waterfurnace-1.8.0.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for waterfurnace-1.8.0.tar.gz
Algorithm Hash digest
SHA256 58aa83ac366b2eeb0fd92194270225316fac667cf59ee9423e088ee67bcfea25
MD5 867675c8b67ba270407d8bc7a7c4dccf
BLAKE2b-256 33013d0e06079968061b659a94bea6a3c33b01946c22fd6e3b9c9450d8cd139b

See more details on using hashes here.

Provenance

The following attestation bundles were made for waterfurnace-1.8.0.tar.gz:

Publisher: release.yml on sdague/waterfurnace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file waterfurnace-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: waterfurnace-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for waterfurnace-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c309f9fcb802a5be3d471dfe27a96d3fc15485c9e7a7d1f8e236e803a549711
MD5 1d4090002d2431c3eb2b0262e2639890
BLAKE2b-256 7fba62d6005a4022f812e38a8ea5a35dba1fc87f2adc28599f3428f2381b2b16

See more details on using hashes here.

Provenance

The following attestation bundles were made for waterfurnace-1.8.0-py3-none-any.whl:

Publisher: release.yml on sdague/waterfurnace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file waterfurnace-1.8.0-py2.py3-none-any.whl.

File metadata

  • Download URL: waterfurnace-1.8.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for waterfurnace-1.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d3a9d7816afea1ab1ad0b0476ecadcd7bf28cca01ea854c9846d5c4ec547e3be
MD5 10e3892bc0f0cea0d5f731920a73005c
BLAKE2b-256 319a7ec5f393e3d92dc910bd2f72ebe90123f766812e0f65753e35b5392d6f04

See more details on using hashes here.

Provenance

The following attestation bundles were made for waterfurnace-1.8.0-py2.py3-none-any.whl:

Publisher: release.yml on sdague/waterfurnace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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