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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emerald_hws-0.0.27.tar.gz.
File metadata
- Download URL: emerald_hws-0.0.27.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89b9a6d56868da5c1f08f29ed5dabc6a95540c71154324b53390a0fe9fab5ab9
|
|
| MD5 |
15dda7d779f616c3245ccae874606ee6
|
|
| BLAKE2b-256 |
6e7d74dfc58dc3a62a6affcd2d7bab2c7b228e5de9aa8503684bb09c00e8e75d
|
Provenance
The following attestation bundles were made for emerald_hws-0.0.27.tar.gz:
Publisher:
publish.yml on ross-w/emerald_hws_py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emerald_hws-0.0.27.tar.gz -
Subject digest:
89b9a6d56868da5c1f08f29ed5dabc6a95540c71154324b53390a0fe9fab5ab9 - Sigstore transparency entry: 1246587188
- Sigstore integration time:
-
Permalink:
ross-w/emerald_hws_py@21f691a525f0dbef7882f31372c97774bfdce11f -
Branch / Tag:
refs/tags/0.0.27 - Owner: https://github.com/ross-w
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@21f691a525f0dbef7882f31372c97774bfdce11f -
Trigger Event:
release
-
Statement type:
File details
Details for the file emerald_hws-0.0.27-py3-none-any.whl.
File metadata
- Download URL: emerald_hws-0.0.27-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0295ebf4818af56b6946b98d60cbd54d66de8e2b3163ec55d4d88d72bd32d1be
|
|
| MD5 |
c6f74af73ea82af6c60136059bd4b9d4
|
|
| BLAKE2b-256 |
87a8df1047ce21ab2d50e9b0b28b1bc7861b501341c4f570e8b613bb25050fd6
|
Provenance
The following attestation bundles were made for emerald_hws-0.0.27-py3-none-any.whl:
Publisher:
publish.yml on ross-w/emerald_hws_py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
emerald_hws-0.0.27-py3-none-any.whl -
Subject digest:
0295ebf4818af56b6946b98d60cbd54d66de8e2b3163ec55d4d88d72bd32d1be - Sigstore transparency entry: 1246587201
- Sigstore integration time:
-
Permalink:
ross-w/emerald_hws_py@21f691a525f0dbef7882f31372c97774bfdce11f -
Branch / Tag:
refs/tags/0.0.27 - Owner: https://github.com/ross-w
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@21f691a525f0dbef7882f31372c97774bfdce11f -
Trigger Event:
release
-
Statement type: