dataaug / aqara_iot_api

Apara official API interface. After registering as a personal developer, you can get a token to control the real aqara device through the API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aqara IOT API

apara 官方开放API接口,注册后可获取token,通过指令控制家庭aqara设备。

通过api控制可以实现更多可能

在注册apara开发者平台个人开发者过后,填写params.py中对应的Accesstoken,Appid,Keyid,AppKey,就可以调用requst_aqara中的request方法,指定官网开放API接口中的任意类型进行家庭aqara设备api控制

8月15日更新

新增“内卷传感器”,根据键盘输入频率改变灯的色温和亮度

新增依赖 pip3 install pynput (用于监测键盘输入)

按照上述的教程填入params中的参数,以及在官网找到自己灯泡的subjectId,替换commands.py中对应字段

然后python3 listen.py 即可启动“内卷传感器”

About

Apara official API interface. After registering as a personal developer, you can get a token to control the real aqara device through the API


Languages

Language:Python 100.0%