Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shubhamdipt/auto-light

Script for switching light on off automatically using raspberry pi and smart tuya switch.
https://github.com/shubhamdipt/auto-light

api light python raspberry-pi sensor tuya tuya-smart

Last synced: 2 months ago
JSON representation

Script for switching light on off automatically using raspberry pi and smart tuya switch.

Awesome Lists containing this project

README

        

# auto-light
Script for switching light on off automatically using raspberry pi and smart tuya switch.

## Requirements
* Arduino light sensor
* Tuya smart plug
* Raspberry pi
* Python3

## Set up

Create a config.ini file about tuya smart plug with following contents.

````
[TUYA]
username =
password =
location = EU
device =
````

## Usage

python main.py


### Wiring

Raspberry Pi -> Light Sensor Module

3.3v P1 -> VCC (V)

GND P6 -> GND (G)

GPIO4 P7 -> SIGNAL (S)