GithubHelp home page GithubHelp logo

pynoolite's Introduction

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

Install

sudo apt-get install pip
sudo pip install noolite

Ubuntu/debian

https://launchpad.net/~ctolbhuk/+archive/noolite

Or download this repo and go into.

sudo python setup.py install

Or simple copy noolite.py from this repo to your project

Example:

import noolite
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

Dependences:

  • 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

pynoolite's People

Contributors

sicness avatar yaraslauzhylko avatar ebloved avatar abogdanovich avatar kyuri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.