Giter VIP home page Giter VIP logo

tuya-iot-python-sdk's Introduction

Tuya IoT Python SDK

PyPI

PyPI - Downloads

PyPI - Python Version

A Python sdk for Tuya Open API, which provides basic IoT capabilities like device management, asset management and industry capabilities, helping you create IoT solutions. With diversified devices and industries, Tuya IoT Development Platform opens basic IoT capabilities like device management, AI scenarios, and data analytics services, as well as industry capabilities, helping you create IoT solutions.

Features

Base APIs

  • TuyaOpenAPI

    • connect
    • is_connect
    • get
    • post
    • put
    • delete
  • TuyaOpenMQ

    • start
    • stop
    • add_message_listener
    • remove_message_listener

APIs

  • TuyaDeviceListener
    • update_device
    • add_device
    • remove_device

Device control

  • TuyaDeviceManager
    • update_device_list_in_smart_home
    • update_device_caches
    • update_device_function_cache
    • add_device_listener
    • remove_device_listener
    • get_device_info
    • get_device_list_info
    • remove_device
    • remove_device_list
    • get_factory_info
    • factory_reset
    • get_device_status
    • get_device_list_status
    • get_device_functions
    • get_category_functions
    • get_device_specification
    • send_commands

Home

  • TuyaHomeManager
    • update_device_cache
    • query_scenes
    • trigger_scene
    • query_infrared_devices
    • trigger_infrared_commands

Assets

  • TuyaAssetManager
    • get_device_list
    • get_asset_info
    • get_asset_list

Possible scenarios

Prerequisite

Registration

Please check Tuya IoT Platform Configuration Guide to register an account on the Tuya IoT Platform, and get the required information. You need to create a Cloud project and complete the configuration of asset, user, and application. Then, you will get the username, password, Access ID, and Access Secret.

Usage

Installation

pip3 install tuya-iot-py-sdk

Sample code

OpenAPI Sample

Open IoT Hub Sample

Tuya Open API reference

Tuya opens up a variety of APIs covering business scenarios such as device pairing, smart home management, device control, and scene automation. You can call APIs according to API integration documents to implement applications.

For more information, see the documentation.

Issue feedback

You can provide feedback on your issue via Github Issue or Technical Ticket.

License

tuya-iot-py-sdk is available under the MIT license. Please see the LICENSE file for more info.

tuya-iot-python-sdk's People

Contributors

0x5e avatar 3v1n0 avatar dengweijun avatar fhempy avatar frenck avatar jhonattan-souza avatar jinjuan-li avatar onkelbeh avatar tsutsuku avatar yuvalabou avatar zephirenz avatar zlinoliver avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.