LiteTouch 5000LC
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pylitetouch-0.1.5.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for pylitetouch-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15d07848a2786e9a2db1cadc4f43d3b22accd9259176c75cfdbee9c5e4e31a9d |
|
MD5 | 42ea0e23aa4258aff717c959d2f18506 |
|
BLAKE2b-256 | 97eb43d92088fa2502c9908a25942d75abe5308ad9b47a875e331aa99e66f0a6 |