Skip to main content

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


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-2-1.4.7.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nhc2_coco_2-1.4.7-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file nhc2-coco-2-1.4.7.tar.gz.

File metadata

  • Download URL: nhc2-coco-2-1.4.7.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for nhc2-coco-2-1.4.7.tar.gz
Algorithm Hash digest
SHA256 d520037a6d10b9bebb58010fd98a807b93f80f0ce5c4ffa6a0854512b6ee1da8
MD5 12ce736356bb4bfc5acae7880d57cdab
BLAKE2b-256 bf61a31bb481edeb65bb43b3fe7a72d14d416828763cbdf2257a4d7b752c9f20

See more details on using hashes here.

File details

Details for the file nhc2_coco_2-1.4.7-py3-none-any.whl.

File metadata

  • Download URL: nhc2_coco_2-1.4.7-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for nhc2_coco_2-1.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7eddf16986d04ca3d825dfb8925d7f74984af6cfb21b599ab13a33491d3d7198
MD5 414cbb49677801cc915e056d961f4929
BLAKE2b-256 6b4b654f7bc3853cc0b3fa644f061f7521349586b62ddf42f3f0cb28893001d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page