Metadata-Version: 2.1
Name: pylitetouch
Version: 0.1.4
Summary: LiteTouch 5000LC
Home-page: https://github.com/patmann03/pylitetouch
Author: Patrick Carr
Author-email: patrick.carr03@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# pylitetouch
Litetouch Integration library for interfacing with Savant SSL-P018 / 5000LC Controllers

Implemented Features:
  - Turn Load on by Load ID
  - Turn Load off by Load ID
  - Set Brightness Level by Load ID
  - Receive LED updates by keypad and button (events to determine if a load associated to the button is turned on or off)
    - Returned as:  Event Keypad_Button Status  //Example:  RLEDU 22_1 1  Keypad 22 button 1 is on.


In Development:
  - Request LED States by Keypad


SAMPLE:
-----------------------------------------
    import pylitetouch 
    import time

    host = '192.168.1.65'
    port = 10001

    load = 105
    lvl = 90
    kp = 22
    but = 1

    def callback(msg, args, state):

        """Show the message are arguments."""

        print(msg, args)



    LT = pylitetouch.LiteTouch(host,port,callback)



    LT.set_loadlevel(load,lvl)

    LT.set_loadon(load)
    LT.get_led_states(22,1)
    LT.set_loadoff(load)

    LT.toggle_switch(22,1)

    print('Waiting for Messages')
    time.sleep(10.)

    print('Close Connection')
    LT.close()


