Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.