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.tar.gz
(17.1 kB
view details)
Built Distribution
File details
Details for the file nhc2_coco3-1.4.0.tar.gz
.
File metadata
- Download URL: nhc2_coco3-1.4.0.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 | 850f0ac2b536a9bd51aa242aa73fb0d45b3885110870857c014e463c8ba95a01 |
|
MD5 | cfcc5ed9c537da228bd8bb2a8472546e |
|
BLAKE2b-256 | 4b6eea7c718f98166b57dbd44cc4084179d5396d10380dda3ea4204bc9e705d4 |
File details
Details for the file nhc2_coco3-1.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: nhc2_coco3-1.4.0-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 | 9b2eeef3b59d2af7bc571f1880dc5798c188ca1c6b30c8d3a855a793cd9be5b5 |
|
MD5 | babe7bdf0b015ca695b568c7cfab05af |
|
BLAKE2b-256 | 8cacadcf2acf9284e4507309aa2089141b4c04563d71c1345e3a6d7ec4d5c1b2 |