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)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nhc2-coco-1.4.1.tar.gz
(17.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nhc2-coco-1.4.1.tar.gz.
File metadata
- Download URL: nhc2-coco-1.4.1.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.1.6 CPython/3.9.5 Darwin/20.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02f138733c585fc8085360b1c5f5d7723f871210285652ab85037449a59b7d22
|
|
| MD5 |
f67e5e5d2c177a1fac0db2447f4d3cca
|
|
| BLAKE2b-256 |
e0ac7a64a4e43c9384d9eabdacbe2935341887a447e5f92003559800630e2196
|
File details
Details for the file nhc2_coco-1.4.1-py2.py3-none-any.whl.
File metadata
- Download URL: nhc2_coco-1.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.1.6 CPython/3.9.5 Darwin/20.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eafcbdc1f67e97eadeeb0eeef86ca5c8132ae40f6ca1b119b5ef1d3c1f28a0d
|
|
| MD5 |
85059c77dd688dec5987f023c9eed537
|
|
| BLAKE2b-256 |
49349f26ede0d350423cb80baa9037cb1ddf6c5bb864e4c7e4a2650b6fb57c3c
|