This repository contains a simple API which queries the Drayton Wiser Heating sysystem used in the UK.
The API functionality provides the following functionality
The project is closely associated with the Wiser HomeAssitant component availabe here https://github.com/asantaga/wiserHomeAssistantPlatform
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 machine
Execute the secret url :-)
Invoke-RestMethod -Method Get -UseBasicParsing -Uri http://192.168.8.1/secret/
curl 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
Press the setup button on the HeatHub again and it will go back to normal operations
Copy the secret and save it somewhere.
Using your router, or something else, identify the IP address of your HeatHub, it usually identifies itself as the same ID as the WiserHeatXXXXXX
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
To help understand the api simply look at the sample code wiserapitest.py
and the fully commented code.
Documentation available in docs directory and within comments in the code
Additionally @steversig has also created a repository with some nice examples which be of use, see https://github.com/steversig/wiserheatingapi-examples
Changelog
1.0.2.1
1.0.2.2
1.0.3
1.0.4
1.0.5.2
1.0.6
1.0.10