Sign inSign up

aradd7/lightarr

By aradd7

Updated 7 months ago

Lightarr is used to automate smart lighting with Plex webhooks. Built with Go, supports Wiz via UDP.

Image
0

980

aradd7/lightarr repository overview

Lightarr

Home automation tool that connects Plex webhooks to Wiz smart bulbs. Automate your lighting based on media playback events.

GitHub | Documentation

Quick Start

docker run -d \
  --name lightarr \
  -e X_PLEX_TOKEN=your_token_here \
  -e WIZ_SUBNET=192.168.1.0/24 \
  -v /path/to/data:/data \
  -p 10100:10100 \
  aradd7/lightarr:latest

Or use docker-compose:

services:
  lightarr:
    image: aradd7/lightarr:latest
    container_name: lightarr
    environment:
      - PORT=10100
      - X_PLEX_TOKEN=${X_PLEX_TOKEN}
      - WIZ_SUBNET=192.168.1.0/24
      - X_PLEX_CLIENT_IDENTIFIER=lightarr-app
      - DB_PATH=/data/lightarr.db
    volumes:
      - ./data:/data
    ports:
      - "10100:10100"
    restart: unless-stopped

Configuration

Environment Variables
VariableDefaultRequiredDescription
X_PLEX_TOKEN-YesPlex authentication token (Get it here)
PORT10100NoHTTP server port
WIZ_SUBNET192.168.1.0/24NoYour network subnet to scan for Wiz bulbs
X_PLEX_CLIENT_IDENTIFIERlightarr-appNoPlex client identifier
DB_PATH/data/lightarr.dbNoSQLite database path
Volumes
Container PathDescription
/dataDatabase and configuration storage
Ports
PortDescription
10100Web UI and webhook endpoint

Setup

  1. Start container with your Plex token
  2. Configure Plex webhook: Settings → Webhooks → Add http://<your-ip>:10100/plexhook
  3. Access Web UI: http://<your-ip>:10100
  4. Save Plex accounts and devices from the Plex tab
  5. Name your Wiz bulbs from the Bulbs tab
  6. Create automation rules from the Rules tab

Example Use Case

When you press play on your Living Room TV:

  • Kitchen lights turn off
  • Living room lights dim to 15%
  • Ambient lights set to warm 2700K

All automated based on your custom rules!

Support

Tag summary

Content type

Image

Digest

sha256:5d0d698df

Size

13.1 MB

Last updated

7 months ago

docker pull aradd7/lightarr