This is a fork based on https://github.com/Sicness/pyNooLite python module for noolite
I've just added MQTT support to connect my Noolite modules to HomeAssistant
After installing original module, just provide username, password and hostname in noolite_mqtt,
copy this file in /usr/bin/ and install and start noolite-mqtt.service by copying in onto /etc/systemd/system/
and entering
systemctl enable noolite-mqtt
systemctl start noolite-mqtt
This project is a python module to worik with NooLite USB stick (PC118, PC1116, PC1132).
Can be easy used to make a light control for smarthomes.
About NooLite: http://www.noo.com.by/
Look at wiki for more info.
Author: Anton Balashov
E-mail: sicness(_at_)darklogic.ru
License: GPL v3
Site: https://github.com/Sicness/pyNooLite
sudo apt-get install pip
sudo pip install noolite
Or download this repo and go into.
sudo python setup.py install
Or simple copy noolite.py from this repo to your project
n = noolite.NooLite()
n.on(0) # Turn power on on first channel
n.off(0) # Turn power off on first channel
n.set(1, 115) # Set 115 level on second channel
n.bind(7) # send "bind" signal on channel 8
See noolite file for a extra example
-
python module pyusb
For Ubuntu do:
sudo apt-get install python-pip
sudo pip install pyusb -
To have access on device from common user add the next rule to udev. For example to /etc/udev/rules.d/50-noolite.rules next line:
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="dialout"
And add your user to dialout group:
sudo usermod <user> -a -G dialout