Skip to main content

# 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)

Metadata

Release files for nhc2-coco-2 1.4.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nhc2-coco-2 1.4.7
File Size Uploaded Provenance Actions
nhc2-coco-2-1.4.7.tar.gz 17.7 kB Without provenance Details for nhc2-coco-2-1.4.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nhc2-coco-2 1.4.7
File Interpreter ABI Platform Actions
nhc2_coco_2-1.4.7-py3-none-any.whl Python 3 none any Details for nhc2_coco_2-1.4.7-py3-none-any.whl

Total release size: 41.3 kB

Release files / nhc2-coco-2-1.4.7.tar.gz

Download URL nhc2-coco-2-1.4.7.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d520037a6d10b9bebb58010fd98a807b93f80f0ce5c4ffa6a0854512b6ee1da8
BLAKE2b-256 checksum
How to use checksums
bf61a31bb481edeb65bb43b3fe7a72d14d416828763cbdf2257a4d7b752c9f20
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / nhc2_coco_2-1.4.7-py3-none-any.whl

Download URL nhc2_coco_2-1.4.7-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7eddf16986d04ca3d825dfb8925d7f74984af6cfb21b599ab13a33491d3d7198
BLAKE2b-256 checksum
How to use checksums
6b4b654f7bc3853cc0b3fa644f061f7521349586b62ddf42f3f0cb28893001d7
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for nhc2-coco-2 1.4.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page