jasonacox / tinytuya

Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API).
MIT License
923 stars 165 forks source link

Add Cloud IR example, update docu, and allow an optional initial token to Cloud #288

Closed uzlonewolf closed 1 year ago

uzlonewolf commented 1 year ago

The 1-2 second delay every time I called tinytuya.Cloud() was annoying me, so I added an option to pass in an initial auth token. The existing code should auto-regenerate it if it has expired however I have not tested this.

Documentation for d.set_multiple_values() has been added to close #275

A new example for Cloud IR sending has been added based upon the example I posted in #283