Heatmiser WiFi - python library and tool
Overview
A Heatmiser WiFi Thermostat communication tool and library for python.
Supported Heatmiser Thermostats are DT, DT-E, PRT, PRT-E and PRT-HW Supported Touch Screen Timer TM-1, for setting timers and clock.
This release (1.4.0) adds support for TM-1 timer, to operate in a similar manner to the HW settings on the PRT-HW.
Release (v1.3.0) adds support for the PRT-HW WiFi thermostat, and adds the following functionality (for PRT-HW, maybe others):
- Setting timers for heating (should work for all models)
- Setting timers for hot water (for PRT-HW)
- Setting clock on thermostat with option offset (should work for all models)
The main class of the library is Heatmiser. It supports retrieval of all Thermostat parameters as a dictionary. It also supports setting of most (but not all) of the Thermostat parameters.
Supported platforms
The application is written in Python and has been successfully tested with Python version 2.7 and 3.4.
For versions prior to v1.3.0 both Windows and Linux had been tested successfully. Mac OS X has not been tested, but should work as well. For this release v.1.4.0, only Linux has been tested, though I see no reason why it wouldn't work on the other platforms.
Installation
Run
python -m pip install heatmiser_wifi
This will install both the library and the command line tool.
Alternatively, since this is just one python file, you can download heatmiser_wifi.py and include it in your project.
Using libary
See how the library/class is used in the main() function of heatmiser_wifi.py.
Using command line tool
To list all parameters write:
heatmiser_wifi -c <pincode> <themostat_ip_address> -l
It is also possible to read and write specific parameters. For instructions, write:
heatmiser_wifi -h
When setting triggers for heating / hot water use comma separated values for the trigger parameters
For heating triggers: Time1Hour,Time1Minute,Time1Temp,Time2Hour,Time2Minute,Time2Temp,Time3Hour,Time3Minute,Time3Temp,Time4Hour,Time4Minute,Time4Temp
For hot water/Timer triggers: Time1OnHour,Time1OnMinute,Time1OffHour,Time1OffMinute,Time2OnHour,Time2OnMinute,Time2OffHour,Time2OffMinute,Time3OnHour,Time3OnMinute,Time3OffHour,Time3OffMinute,Time4OnHour,Time4OnMinute,Time4OffHour,Time4OffMinute
Note the thermostat only allows minutes to be either 0 or 30
For example:
heatmiser_wifi -c <pincode> <themostat_ip_address> -w mon_triggers 7,30,20,9,0,5,16,0,22,22,0,5
heatmiser_wifi -c <pincode> <themostat_ip_address> -w tue_hw_triggers 7,30,8,0,9,0,9,30,13,30,14,30,22,0,23,0
When setting date / time, the parameter is an offset which added to the system date before sending to the thermostat. I use this to partially get round the limitation on the trigger minute only being 0 or 30
For example, this will set the thermostat clock to be 15 mins behind the system time:
heatmiser_wifi -c <pincode> <themostat_ip_address> -w date_time -15
Author and license
This application is written by Joel Midstjärna and is licensed under the MIT License. Additional functionality and support for PRT-HW written by Iain Bullock
Metadata
Release files for heatmiser-wifi 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| heatmiser_wifi-1.4.0.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| heatmiser_wifi-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.5 kB
Release files / heatmiser_wifi-1.4.0.tar.gz
| Download URL | heatmiser_wifi-1.4.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59f438e3bf16171d62f38bbbc693cf1bfa283d6ddd75f38c84281a08d025ab62
|
|
BLAKE2b-256 checksum How to use checksums |
5ab8fbf73f13acc47c31fd8ddd76fc53b2945d111772d1963260f54d43d6f386
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.5
|
Release files / heatmiser_wifi-1.4.0-py3-none-any.whl
| Download URL | heatmiser_wifi-1.4.0-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
690dd7b98acd1ae846f3a97edc40948ae8831c5f187109e56f54f137c26e6eb6
|
|
BLAKE2b-256 checksum How to use checksums |
5945236d57aced7c8692200c952a5e7e96fb00b6b2fcea024f634f7f35b07f4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.5
|