Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 869 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 869 Bytes

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