Tinytuya

Latest version: v1.13.2

Safety actively analyzes 630656 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 16

1.10.1

* PyPI 1.10.1
* Fix _process_message() missing parameters discovered via issue https://github.com/jasonacox/tinytuya/issues/266 by jasonacox in https://github.com/jasonacox/tinytuya/pull/267
* Removed bulb attribute conditional blocking in BulbDevice set_colour(), set_hsv() and set_colourtemp() as some devices do not correctly report capabilities. Conditional provides debug warning message instead by jasonacox in https://github.com/jasonacox/tinytuya/issues/265

1.10.0

Usage:

python -m tinytuya <command> [<max_time>] [-nocolor] [-force [192.168.0.0/24 192.168.1.0/24 ...]] [-h]

wizard Launch Setup Wizard to get Tuya Local KEYs.
scan Scan local network for Tuya devices.
devices Scan all devices listed in devices.json file.
snapshot Scan devices listed in snapshot.json file.
json Scan devices listed in snapshot.json file [JSON].
<max_time> Maximum time to find Tuya devices [Default=18]
-nocolor Disable color text output.
-force Force network scan for device IP addresses. Auto-detects network range if none provided.
-no-broadcasts Ignore broadcast packets when force scanning.
-h Show usage.

1.9.1

* PyPI 1.9.1
* Fix logging for Cloud `_gettoken()` to prevent extraneous output. 229

1.9.0

* PyPI 1.9.0
* Add support for subdevices connected to gateway by LesTR in https://github.com/jasonacox/tinytuya/pull/222
* Rework Zigbee Gateway handling to support multiple devices with persistent connections by uzlonewolf in https://github.com/jasonacox/tinytuya/pull/226
* Add support for newer IR devices, and several IR format converters by uzlonewolf in https://github.com/jasonacox/tinytuya/pull/228
* Rework Cloud log start/end times, and update documentation by uzlonewolf in https://github.com/jasonacox/tinytuya/pull/229

python
import tinytuya

Zigbee Gateway support uses a parent/child model where a parent gateway device is
connected and then one or more children are added.

Configure the parent device
gw = tinytuya.Device( 'eb...4', address=None, local_key='aabbccddeeffgghh', persist=True, version=3.3 )

print( 'GW IP found:', gw.address )

Configure one or more children. Every dev_id must be unique!
zigbee1 = tinytuya.OutletDevice( 'eb14...w', cid='0011223344556601', parent=gw )
zigbee2 = tinytuya.OutletDevice( 'eb04...l', cid='0011223344556689', parent=gw )

print(zigbee1.status())
print(zigbee2.status())

1.8.0

* PyPI 1.8.0
* Add AtorchTemperatureController by Poil in https://github.com/jasonacox/tinytuya/pull/213
* Add new Cloud functions to fetch device logs from TuyaCloud (`getdevicelog(id)`), make generic cloud request with custom URL and params (`cloudrequest(url, ...)`) and fetch connection status (`getconnectstatus(id)`) by uzlonewolf in https://github.com/jasonacox/tinytuya/pull/219
* Update README for new Cloud functions, and tighter deviceid error checking by uzlonewolf in https://github.com/jasonacox/tinytuya/pull/220

python
import tinytuya
import json

c = tinytuya.Cloud()
r = c.getdevicelog( '00112233445566778899' )
print( json.dumps(r, indent=2) )

1.7.9

RELEASE NOTES

Page 4 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.