Skip to content

p8ulus/niko-home-control

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Niko Home Control

A Python tool to communicate with a Niko Home Control system via the Netcat TCP socket.

Installation

pip install niko-home-control

Dependencies

Niko Home Control requires the python modules setuptools and nclib. In order to install them:

pip install -r requirements.txt

Modules and commands

nhcmonitor.py will listen to your Niko Home Control installation and will print the communication it receives from the system. nikohomecontrol.py is the main module you can use to interact with your Niko Home Control system. nhcconnection.py makes the TCP connection towards your Niko Home Control system.

Quickstart

Basic commands

For every basic command, you will need to setup the NikoHomeControl class:

niko = NikoHomeControl({
	'ip': '192.168.22.105',
	'port': 8000,
	'timeout': 20000,
	'events': True
})

Now you will be able to interact with your Niko Home Control system:

print(niko.system_info())
print(niko.list_locations())
print(niko.list_energy())
print(niko.list_actions())

Niko Home Control Monitor

Setting up a monitor to listening to your Niko Home Control system is easy as:

monitor = NikoHomeControlMonitor(ip: '192.168.22.105', port:8000)
monitor.listen()

License

(https://opensource.org/licenses/MIT)[MIT] Author: Dries De Peuter

Contributors

About

Python connector for niko home control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.1%
  • Makefile 1.9%