# 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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共10个文件
txt:3个
py:3个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:wiser-heating-api-1.0.2.1.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
wiser-heating-api-1.0.2.1.tar.gz (10个子文件)
wiser-heating-api-1.0.2.1
PKG-INFO 3KB
setup.cfg 38B
setup.py 679B
wiserHeatingAPI
wiserHub.py 10KB
__init__.py 25B
README.md 2KB
wiser_heating_api.egg-info
PKG-INFO 3KB
SOURCES.txt 238B
top_level.txt 16B
dependency_links.txt 1B
共 10 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功