Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meowmeowahr/autolight
VL53L0X controlled automatic lighting system
https://github.com/meowmeowahr/autolight
autolight gpio hass home-assistant lighting lighting-controller lighting-effects mqtt mqtt-auto-discovery paho-mqtt pca9685 python raspberry-pi vl53l0x
Last synced: 8 days ago
JSON representation
VL53L0X controlled automatic lighting system
- Host: GitHub
- URL: https://github.com/meowmeowahr/autolight
- Owner: meowmeowahr
- License: gpl-3.0
- Created: 2024-04-21T16:37:38.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-27T21:32:04.000Z (6 months ago)
- Last Synced: 2024-05-29T12:49:46.986Z (6 months ago)
- Topics: autolight, gpio, hass, home-assistant, lighting, lighting-controller, lighting-effects, mqtt, mqtt-auto-discovery, paho-mqtt, pca9685, python, raspberry-pi, vl53l0x
- Language: Python
- Homepage: https://meowmeowahr.github.io/AutoLight/
- Size: 1.17 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Auto-Light
Raspberry Pi controlled VL53L0X activated lights via PCA9685## Hardware Requirements
* A Raspberry Pi (Original Pi Zero and Original Pi A/B are not supported)
* PCA9685
* Up to 16 VL53L0X sensors
* As many leds as there are sensors## Installation
### Software requirements
Raspberry Pi OS Bookworm (Older OSes may work with pyenv and building lgpio from source)
### System Dependencies
Install these before Python dependencies`sudo apt install python3-dev`
### Python Dependencies
* Change directory into AutoLight
`cd AutoLight`
* Setting virtual environment
`python3 -m venv .venv`
* Source environment
`source .venv/bin/activate`* Install dependencies
`pip install -r requirements.txt`
### 🚀 AutoLight is now installed
## Configuration
All configuration is done through a config.yaml file. An example to get started is included and used by default in the source. Either directly edit the file, or use the `--config` or `-c` command line argument to define a custom location.