Skip to content

Releases: jasonacox/tinytuya

v.1.1.2 - Bug Fix for 3.1 Devices

20 Dec 17:21
Compare
Choose a tag to compare
  • PyPi Version 1.1.2
  • Bug Fix for 3.1 Devices using CONTROL command - updated tohexdigest[8:][:16]
  • See Issue: #11

v.1.1.1 - BulbDevice Update

29 Nov 02:00
Compare
Choose a tag to compare
  • PyPi Version 1.1.1
  • Updated BulbDevice Class to support two types of bulbs with different DPS mappings and functions:
    - Type A - Uses DPS index 1-5 and represents color with RGB+HSV
    - Type B - Uses DPS index 20-27 (no index 1)
  • Updated Colour Support - Index (DPS_INDEX_COLOUR) is assumed to be in the format:
    - (Type A) Index: 5 in hex format: rrggbb0hhhssvv
    - (Type B) Index: 24 in hex format: hhhhssssvvvv
  • New Functions to help abstract Bulb Type:
    - set_white_percentage(brightness=100, colourtemp=0):
    - set_brightness_percentage(brightness=100):
    - set_colourtemp_percentage(colourtemp=100):
    - set_mode(mode='white'): # white, colour, scene, music
  • Example Script https://github.com/jasonacox/tinytuya/blob/master/examples/bulb.py

v1.1.0

27 Nov 20:53
Compare
Choose a tag to compare
  • PyPi Version 1.1.0
  • Added TinyTuya Setup Wizard to help users grab device LOCAL_KEY from the Tuya Platform.
  • Added formatted terminal color output (optionally disabled with -nocolor) for interactive Wizard and Scan functions.
python3 -m tinytuya wizard

v1.0.5

24 Nov 06:13
Compare
Choose a tag to compare
  • PyPi Version 1.0.5
  • Updated cipher json payload to mirror TuyAPI - hexdigest from [8:][:16] to [8:][:24]
  • Added optional persistent socket connection, NODELAY and configurable retry limit (@elfman03) #5 #6 #7
    set_socketPersistent(False/True)   # False [default] or True
    set_socketNODELAY(False/True)      # False or True [default]	    
    set_socketRetryLimit(integer)      # retry count limit [default 5]
  • Add some "scenes" supported by color bulbs (@elfman03)
    set_scene(scene):             # 1=nature, 3=rave, 4=rainbow

v1.0.4

09 Nov 04:38
Compare
Choose a tag to compare
  • PyPi Version 1.0.4
  • Added scan() function to get a list of Tuya devices on your network along with their device IP, ID and VERSION number (3.1 or 3.3):
python3 -m tinytuya

v1.0.3

13 Sep 20:57
Compare
Choose a tag to compare
  • PyPi Version 1.0.3
  • Removed automatic device22 type selection. The assumption that 22 character ID meant it needed dev_type device22 was discovered to be incorrect and there are Tuya devices with 22 character ID's that behave similar to default devices. Device22 type is now available via a dev_type specification on initialization:
    OutletDevice(dev_id, address, local_key=None, dev_type='default')
    CoverDevice(dev_id, address, local_key=None, dev_type='default')
    BulbDevice(dev_id, address, local_key=None, dev_type='default')
  • Added Tuya Command Types framework to definitions and payload dictionary per device type.
  • Bug fixes (1.0.2):
    • Update SET to CONTROL command
    • Fixed BulbDevice() __init__

Initial release

04 Sep 06:32
Compare
Choose a tag to compare

Initial Release v1.0.0