Skip to main content

Drayton Wiser Hub API v 1.0.10

This repository contains a simple API which queries the Drayton Wiser Heating sysystem used in the UK.

The API functionality provides the following functionality

  • Ability to query all rooms
  • Ability to query all thermostats and room stats
  • Ability to set temperature of room and TRV thermostats
  • Ability to query various data about the system (like heating status)
  • Ability to query and set and copy schedules
  • Ability to query and set smartplugs (modes and states)

The project is closely associated with the Wiser HomeAssitant component availabe here https://github.com/asantaga/wiserHomeAssistantPlatform

Installation

1. Find your HeatHub Secret key

Reference https://it.knightnet.org.uk/kb/nr-qa/drayton-wiser-heating-control/#controlling-the-system

  1. 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

  2. Connect to the network from a Windows/Linux/Mac machine

  3. Execute the secret url :-)

    • For Windows use Invoke-RestMethod -Method Get -UseBasicParsing -Uri http://192.168.8.1/secret/
    • For Linux (or Windows WSL) use 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

  4. Press the setup button on the HeatHub again and it will go back to normal operations

  5. 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

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 wiserapitest.py and the fully commented code.

6. Documentation

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

  • Added ability to turn trvs off and then back on by using setRoomMode
  • Fixed bug in setRoomTemperature that wasnt checking the ranges properly

1.0.2.2

  • Changed temperature variables to be the real variable, and internally *10

1.0.3

  • Merged pull7 : Timeout and other improvements.
    • Fix for issue 1 Error when having zero TRVs
    • Fix for issue 4 Setting boost sometimes errors
  • Merged pull5 : Ability to turn hotwater on/off/auto

1.0.4

1.0.5.2

  • Added support for smartplugs, both mode and state

1.0.6

  • Added support for network data 1.0.7
  • Merged pull17, Enhancement to detect invalid JSON from the hub, thanks @TobyLL! fixed bug in getSmartplug state not working correctly 1.0.8
  • Merged [pull20(https://github.com/asantaga/wiserheatingapi/pull/20 ) Fix for TRVs not keeping off setting 1.0.9
  • Ability to get,set and copy schedules for all devices

1.0.10

  • Added PR#23: Added setRoomScheduleAvance and other APIs from @stevesig (thank you!)

Release files for wiser-heating-api 1.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wiser-heating-api 1.0.10
File Size Uploaded
wiser-heating-api-1.0.10.tar.gz 11.9 kB Details

Release files / wiser-heating-api-1.0.10.tar.gz

Download URL wiser-heating-api-1.0.10.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ebcea0a7bc65e8661126220121034ae2793e88327c6f5e4c12c0bf1db428fb92
BLAKE2b-256 checksum
How to use checksums
518b2afd9f59af94df60c109e610d6b2e5e9a27161648c61facec01bb6ab7ba2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

1.0.10 This release

1 release file

1.0.8.1

1 release file

1.0.8

1 release file

1.0.7.2

1 release file

1.0.7.1

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5.2

1 release file

1.0.5.1

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2.3

1 release file

1.0.2.2

1 release file

1.0.2.1

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page