Skip to main content

A package to manipulate and monitor Emerald Heat Pump Hot Water Systems

Project description

emerald_hws_py

Python package for controlling Emerald Heat Pump Hot Water Systems

Overview

This package provides an interface to control and monitor Emerald Heat Pump Hot Water Systems through their API and MQTT service.

Installation

pip install emerald_hws

Usage

from emerald_hws.emeraldhws import EmeraldHWS

# Basic usage with default connection settings
client = EmeraldHWS("your_email@example.com", "your_password")
client.connect()

# List all hot water systems
hws_list = client.listHWS()
print(f"Found {len(hws_list)} hot water systems")

# Get status of first HWS
hws_id = hws_list[0]
status = client.getFullStatus(hws_id)
print(f"Current temperature: {status['last_state'].get('temp_current')}")

# Turn on the hot water system
client.turnOn(hws_id)

Configuration Options

Connection Timeout

The module will automatically reconnect to the MQTT service periodically to prevent stale connections. You can configure this timeout:

# Set connection timeout to 6 hours (360 minutes)
client = EmeraldHWS("your_email@example.com", "your_password", connection_timeout_minutes=360)

Health Check

The module can proactively check for message activity and reconnect if no messages have been received for a specified period:

# Set health check to check every 30 minutes
client = EmeraldHWS("your_email@example.com", "your_password", health_check_minutes=30)

# Disable health check
client = EmeraldHWS("your_email@example.com", "your_password", health_check_minutes=0)

Callback for Updates

You can register a callback function to be notified when the state of any hot water system changes:

def my_callback():
    print("Hot water system state updated!")

client = EmeraldHWS("your_email@example.com", "your_password", update_callback=my_callback)

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

emerald_hws-0.0.14.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

emerald_hws-0.0.14-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file emerald_hws-0.0.14.tar.gz.

File metadata

  • Download URL: emerald_hws-0.0.14.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for emerald_hws-0.0.14.tar.gz
Algorithm Hash digest
SHA256 383e9a37f143a8921f8ebeb9a1b64c4892ad372e56d6ed6e6b1ac2738d543173
MD5 9f077c76e23d07b721dd790e9fbcdb3f
BLAKE2b-256 31b252a8b8c7c0ff0eaa347d878b8166090e6fbf1f2de15974aa0ca593b3af51

See more details on using hashes here.

Provenance

The following attestation bundles were made for emerald_hws-0.0.14.tar.gz:

Publisher: publish.yml on ross-w/emerald_hws_py

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

File details

Details for the file emerald_hws-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: emerald_hws-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for emerald_hws-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 f29f4d11d3ff7949732d5b902d5a30c2e5e1b07d92f5f859c083e00ccb6ea909
MD5 0c31a78fed3c53dc47eedcba506d136d
BLAKE2b-256 7aa0158eaa34e8d91079b5580fc1bafa16784611e82d7cde0002095f90c4689f

See more details on using hashes here.

Provenance

The following attestation bundles were made for emerald_hws-0.0.14-py3-none-any.whl:

Publisher: publish.yml on ross-w/emerald_hws_py

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