Skip to content

paraizofelipe/py_iot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py_iot

Commands

Install all project dependencies

$ poetry install

Run the configuration process, using the keys, token and IP from the tuya project

$ cd ./setup
$ poetry run python -m tinytuya wizard 

With all the configuration JSON files pulling from the environment. Scan the network to find all tuya devices on the network Note: This process is necessary to get the local_keys of the devices

$ poetry run python -m tinytuya scan

Command to collect status of device named Lamp

$ poetry run local_iot show_status Lamp

Command to turn the device on and off

$ poetry run local_iot switch Lamp 

Command to modify the RGB device color

Supported colors: red, orange, yellow, green, blue, indigo, violet, turquoise, magenta and white

$ poetry run local_iot color Lamp red

About

CLI para controle de IOT com a API Tuya

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages