Tinytuya

Latest version: v1.15.1

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

Scan your dependencies

Page 5 of 18

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.9

1.8.8

1.8.7

1.8.6

Page 5 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.