Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paraizofelipe/py_iot
CLI para controle de IOT com a API Tuya
https://github.com/paraizofelipe/py_iot
iot python smart-home tuya
Last synced: 2 months ago
JSON representation
CLI para controle de IOT com a API Tuya
- Host: GitHub
- URL: https://github.com/paraizofelipe/py_iot
- Owner: paraizofelipe
- Created: 2022-07-17T19:48:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-17T19:51:52.000Z (over 2 years ago)
- Last Synced: 2024-07-30T20:56:50.336Z (5 months ago)
- Topics: iot, python, smart-home, tuya
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### py_iot
### Commands
Install all project dependencies
```bash
$ poetry install
```Run the configuration process, using the keys, token and IP from the tuya project
```bash
$ 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```bash
$ poetry run python -m tinytuya scan
```Command to collect status of device named Lamp
```bash
$ poetry run local_iot show_status Lamp
```Command to turn the device on and off
```bash
$ 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
```bash
$ poetry run local_iot color Lamp red
```