Skip to content

shubhamdipt/tuyasmartapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tuyasmartapi

An api for handling Tuya Smart devices.

Dependencies

Python3

pip install -r requirements.txt

Usage

Create a config.ini file with the following contents.

[TUYA]
username = <username>
password = <password>
location = EU
device = <device_id>

Installation

pip install tuyasmartapi

Example

>>>from tuya.devices import TuyaSmartSwitch
>>>device = TuyaSmartSwitch(username=CONFIG["TUYA"]["username"], password=CONFIG["TUYA"]["password"], location=CONFIG["TUYA"]["location"], device=CONFIG["TUYA"]["device"])
>>>print(device.get_status())

About

An api for handling Tuya Smart devices.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages