License: MIT
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')
light, socket, switched-generic, dimmer
TODO - write doc.
TODO - refactor into logical groups that match niko documentation (NHC Relay Action, NHC Dimmer Action, etc)
- Contribute to this project with constructive issues, suggestions, PRs, etc.
- Help me in any way to get support for more entities (eg heating)