Skip to main content

A simple API for accessing data on the Drayton Wiser Heating system

Project description

Drayton Wiser Hub API v 1.0.2.1

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)

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
wiserip=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.

Changes 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wiser-heating-api-1.0.2.1.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file wiser-heating-api-1.0.2.1.tar.gz.

File metadata

  • Download URL: wiser-heating-api-1.0.2.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.9

File hashes

Hashes for wiser-heating-api-1.0.2.1.tar.gz
Algorithm Hash digest
SHA256 ab7b8906e039acb928e6e5fee675c92b7c4b28ebf572d019407966170d6166e7
MD5 a621c4386b82844ecb3ac7c189367f75
BLAKE2b-256 03ea2508934c499e2489410ab5c8ea0422f3b5c31806e2be2dc8b06cdfeb0a7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page