A Python sdk for Tuya Open API, which provides IoT capabilities, maintained by Tuya official
Maintained. Last release 3 months ago, commits in 5 of the last 26 weeks. Weaker on commit activity.
pip install tuya-device-sharing-sdkTuya Device Sharing SDK
A Python sdk for Tuya Open API, which provides basic IoT capabilities like device management 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
APIs
- Manager
- update_device_cache
- refresh_mq
- send_commands
- get_device_stream_allocate
- query_scenes
- trigger_scene
- add_device_listener
- remove_device_listener
- unload
- CustomerApi
- get
- post
- put
- delete
- SharingMQ
- start
- stop
- add_message_listener
- remove_message_listener
- DeviceRepository
- query_devices_by_home
- query_devices_by_ids
- send_commands
- HomeRepository
- query_homes
- query_room_by_device
- SceneRepository
- query_scenes
- trigger_scene
Possible scenarios
Usage
Release Note
| version | Description |
|---|---|
| 0.1.8 | fix topic error |
| 0.1.9 | fix mq link id |
| 0.2.0 | MQTT bulk subscription |
| 0.2.1 | add updated_status_properties to SharingDeviceListener |
| 0.2.2 | add timestamp to SharingDeviceListener |
| 0.2.3 | fix paho-mqtt dependency |
| 0.2.4 | fix asbtract decorator |
| 0.2.5 | handle unknown dpid in_on_device_report #39 |
| 0.2.6 | Cancel MQTT reconnect on stop #37 |
| 0.2.8 | Add report_type to device status #51 |
| 0.2.9 | Fix incorrect type hint in DeviceFunction #44 Add pre-commit workflow #46 Apply ruff format #47 |