A Python tool to communicate with a Niko Home Control system via the Netcat TCP socket.
pip install niko-home-control
Niko Home Control requires the python modules setuptools
and nclib
. In order to install them:
pip install -r requirements.txt
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.
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())
print(niko.list_thermostats())
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()
(https://opensource.org/licenses/MIT)[MIT] Author: Dries De Peuter