Python controller for a Niko Home Control II installation
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nhc2_coco3-1.4.0.2.tar.gz
(17.1 kB
view details)
Built Distribution
File details
Details for the file nhc2_coco3-1.4.0.2.tar.gz
.
File metadata
- Download URL: nhc2_coco3-1.4.0.2.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.7 Linux/5.10.47-linuxkit
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69db2799412ae41ac7d7144c8a9f475b694cefd6430d70f2df883534729e20c3 |
|
MD5 | 37c921cf3e4ea64e8e754af79558daf7 |
|
BLAKE2b-256 | 1398d02b5100839fa1b17e614b5b495cc03b0f07d816f2117b3004a4a77da5bf |
File details
Details for the file nhc2_coco3-1.4.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: nhc2_coco3-1.4.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.7 Linux/5.10.47-linuxkit
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dd2bd36123f23f61f03c6cc4d285b70cceba1aede5e68667beac44c6991ceee |
|
MD5 | 4f01a660ace7922d520af603fdaba363 |
|
BLAKE2b-256 | d02e101f162d3a1e28107eae05d03f1f648da3906a1f69ce8bd7912d7417147a |