tinytuya

Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API).

MIT License

Downloads
89.9K
Stars
831
Committers
46
tinytuya - v1.14.0 - Command Line Updates Latest Release

Published by jasonacox 5 months ago

What's Changed

# Install CLI tool with pipx
pipx install tinytuya

tinytuya scan

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.13.2...v1.14.0

tinytuya - v1.13.2 - Contrib Updates

Published by jasonacox 8 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.13.1...v1.13.2

tinytuya - v1.13.1 - Cryptography Version Fix

Published by jasonacox 12 months ago

What's Changed

  • PyPI 1.13.1
  • Require pyca/cryptography>=3.1 or fallback to PyCryptodome
  • Add tools/fake-v35-device.py script to tools
  • Allow pyca/cryptography to GCM decrypt without the tag (makes it match PyCryptodome) by @uzlonewolf in https://github.com/jasonacox/tinytuya/pull/424

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.13.0...v1.13.1

tinytuya - v1.13.0 - Crypto Library Update

Published by jasonacox 12 months ago

What's Changed

  • PyPI 1.13.0
  • Updates AESCipher() to make it a bit easier to add additional crypto libraries. It also adds pyca/cryptography as the default. By @uzlonewolf in https://github.com/jasonacox/tinytuya/pull/423
  • Fixes issue with tinytuya.find_device() for v3.1 devices and the infinite loop in Contrib/IRRemoteControlDevice.py (Closes #403).
  • Officially removes Python 2.7 support.

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.11...v1.13.0

tinytuya - v1.12.11 - Bug Fix for Offline Devices

Published by jasonacox about 1 year ago

What's Changed

  • PyPI 1.12.11
  • Fix local variable collision in _get_socket() exception handling for device offline conditions. See #402 .

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.10...v1.12.11

tinytuya - v1.12.10 - Various Updates

Published by jasonacox about 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.9...v1.12.10

tinytuya - v1.12.9 - Import Issue with urllib3

Published by jasonacox over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.8...v1.12.9

tinytuya - v1.12.8 - Device DP Mapping

Published by jasonacox over 1 year ago

What's Changed

Example device from UPDATED devices.json showing new "mapping" data:

    {
        "name": "Smart Plug",
        "id": "01234567890abcdef012",
        "key": "abcdef0123456789",
        "mac": "aa:bb:cc:dd:33:11",
        "uuid": "01234567890abcdef012",
        "category": "cz",
        "product_name": "WP1-Smart Socket",
        "product_id": "iXfg9AQVUPhlfyGw",
        "biz_type": 18,
        "model": "WP1/10A/\u5e26\u8ba1\u91cf/gosund",
        "sub": false,
        "icon": "https://images.tuyaus.com/smart/icon/1472009231_0.png",
        "mapping": {
            "1": {
                "code": "switch",
                "type": "Boolean",
                "values": {}
            },
            "4": {
                "code": "cur_current",
                "type": "Integer",
                "values": {
                    "unit": "mA",
                    "min": 0,
                    "max": 30000,
                    "scale": 0,
                    "step": 1
                }
            },
            "5": {
                "code": "cur_power",
                "type": "Integer",
                "values": {
                    "unit": "W",
                    "min": 0,
                    "max": 50000,
                    "scale": 1,
                    "step": 1
                }
            },
            "6": {
                "code": "cur_voltage",
                "type": "Integer",
                "values": {
                    "unit": "V",
                    "min": 0,
                    "max": 5000,
                    "scale": 1,
                    "step": 1
                }
            },
            "2": {
                "code": "countdown_1",
                "type": "Integer",
                "values": {
                    "unit": "s",
                    "min": 0,
                    "max": 86400,
                    "scale": 0,
                    "step": 1
                }
            }
        },
        "ip": "10.20.30.40",
        "version": "3.1"
    }

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.7...v1.12.8

tinytuya - v1.12.7 - Status Bug Fix

Published by jasonacox over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.6...v1.12.7

tinytuya - v1.12.6 - Minor Fixes

Published by jasonacox over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.5...v1.12.6

tinytuya - v1.12.5 - Scanner Update

Published by jasonacox over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.4...v1.12.5

tinytuya - v1.12.4 - Wizard Scan for ID

Published by jasonacox over 1 year ago

What's Changed

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.3...v1.12.4

tinytuya - v1.12.3 - Fix Cloud Device List

Published by jasonacox over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.2...v1.12.3

tinytuya - v1.12.2 - Gateway/Sub-device Update

Published by jasonacox over 1 year ago

What's Changed

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.1...v1.12.2

tinytuya - v1.12.1 - Cloud & Wizard Updates

Published by jasonacox over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.12.0...v1.12.1

tinytuya - v1.12.0 - Zigbee Gateway Updates

Published by jasonacox over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.11.0...v1.12.0

tinytuya - v1.11.0 - Cloud Device Listing

Published by jasonacox over 1 year ago

What's Changed

Additional data in tuya-raw.json:

    "file": {
        "name": "tuya-raw.json",
        "description": "Full raw list of Tuya devices.",
        "account": "xxxxxxxxxxxxxxxxxxxx",
        "date": "2023-03-04T19:50:08.879865",
        "tinytuya": "1.11.0"
    }

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.10.3...v1.11.0

tinytuya - v1.10.3 - Cloud Updates

Published by jasonacox over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.10.2...v1.10.3

tinytuya - v1.10.2 - Bug Fix for ThermostatDevice and Misc. Cleanup

Published by jasonacox over 1 year ago

What's Changed

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.10.1...v1.10.2

tinytuya - v1.10.1 - Bug Fix for BulbDevice and Zigbee Devices

Published by jasonacox over 1 year ago

What's Changed

Full Changelog: https://github.com/jasonacox/tinytuya/compare/v1.10.0...v1.10.1