An API for controlling the Drayton Wiser Heating system
Project description
Drayton Wiser Hub API v2 v0.0.2
This repository contains a simple API which queries the Drayton Wiser Heating sysystem used in the UK.
The API functionality provides the following functionality to control the wiser heating system for 1,2 and 3 channel heat hubs
Installation
1. Find your HeatHub Secret key
Reference https://it.knightnet.org.uk/kb/nr-qa/drayton-wiser-heating-control/#controlling-the-system
-
Press the setup button on your HeatHub, the light will start flashing Look for the Wi-Fi network (SSID) called ‘WiserHeatXXX’ where XXX is random
-
Connect to the network from a Windows/Linux/Mac/Android/iPhone machine
-
Execute the secret url :-)
- Open a browser to url
http://192.168.8.1/secret
This will return a string which is your system secret, store this somewhere. If you are running the test script simply put this value , with the ip address of the hub, in your wiserkeys.params
- Open a browser to url
-
Press the setup button on the HeatHub again and it will go back to normal operations
-
Copy the secret and save it somewhere.
3. Find Your HEATHUB IP
Using your router, or something else, identify the IP address of your HeatHub, it usually identifies itself as the same ID as the WiserHeatXXXXXX
Alternatively see the wiserhub2apitest.py file for how to use the api to discover you hub
4. Add values in you wiserkeys.params
Create a file called wiserkeys.params and place two lines, one with the wiser IP and the other with the key it self. e.g.
wiserkey=ABCDCDCDCCCDCDC
wiserhubip=192.168.0.22
5. Run the sample
To help understand the api simply look at the sample code wiserhub2apitest.py
and the fully commented code.
6. Documentation
Documentation available in docs directory and within comments in the code
Changelog
0.0.1 Initial v2 release
0.0.2 Updated setup.cfg
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
File details
Details for the file wiserHeatAPIv2-0.0.2.tar.gz
.
File metadata
- Download URL: wiserHeatAPIv2-0.0.2.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4089df7bc20422db502cfdb5ae1f6c6cf4cab5eb94e2c8ab9ff668b41e852ea7 |
|
MD5 | c3dc7034d28058dcec5f87e4b0340746 |
|
BLAKE2b-256 | e0be6119095b20d03941f481bb9e668a719dda50c52555a3f5612c85fb1030e7 |