# pynhc2
License: MIT
## Usage
### Create a NHC2 object
```
NHC2(address, username, password, port, ca_path, switches_as_lights)
```
* __address__ - IP or host of the connected controller
* __username__ - The UUID of the profile
* __password__ - The password
* __port__ - (optional) The MQTT port. Default = 8883
* __ca_path__ - (optional) Path of the CA file. Default = included CA file.
* __switches_as_lights__ - (optional) socket and switched-generic show up as lights.
example:
```
coco = NHC2('192.168.1.2', 'abcdefgh-ijkl-mnop-qrst-uvwxyz012345', 'secret_password')
```
### What is supported?
light, socket, switched-generic, dimmer
### What now?
TODO - write doc.
TODO - refactor into logical groups that match niko documentation (NHC Relay Action, NHC Dimmer Action, etc)
## What can you do to help?
* Contribute to this project with constructive issues, suggestions, PRs, etc.
* Help me in any way to get support for more entities (eg heating)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共28个文件
py:23个
license:1个
toml:1个
资源分类:Python库 所属语言:Python 资源全名:nhc2-coco-1.4.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
nhc2-coco-1.4.0.tar.gz (28个子文件)
nhc2-coco-1.4.0
PKG-INFO 2KB
pyproject.toml 473B
LICENSE 1KB
setup.py 2KB
README.md 978B
nhc2_coco
coco_switched_fan.py 1KB
coco_profiles.py 2KB
const.py 2KB
coco.py 11KB
coco_shutter.py 1KB
coco_discover.py 2KB
tests
test_example.py 3KB
discover_profiles.py 1002B
credentials_example.py 88B
discover_profiles_by_host.py 517B
coco_switch.py 1KB
coco_ca.pem 4KB
coco_login_validation.py 2KB
coco_entity.py 3KB
coco_fan_speed.py 126B
helpers.py 2KB
__init__.py 422B
coco_light.py 2KB
coco_discover_profiles.py 3KB
coco_device_class.py 237B
coco_generic.py 1KB
coco_fan.py 1KB
coco_climate.py 6KB
共 28 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功