Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/shubhamdipt/auto-light
- Owner: shubhamdipt
- License: mit
- Created: 2019-09-22T14:00:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:37:30.000Z (about 2 years ago)
- Last Synced: 2024-07-30T20:56:48.581Z (5 months ago)
- Topics: api, light, python, raspberry-pi, sensor, tuya, tuya-smart
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
### WiringRaspberry Pi -> Light Sensor Module
3.3v P1 -> VCC (V)
GND P6 -> GND (G)
GPIO4 P7 -> SIGNAL (S)