Skip to content

Matthias84/rpi-leds2mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

** (preALPHA) UNDER DEVELOPMENT **

Python3 MQTT client that listens for commands to control your WS2801 RGB ledstripe (aka Neopixel) if they are connected directly to your Rasberry PI SPI bus. You can light up individual LEDs, color the whole stripe, or playback effects and 1D animations. Allows easy integration with home assistant and other smarthome solutions.

Development

We use python3 virtualenv

  • sudo apt-get install python3 python3-pip virtualenvwrapper
  • mkvirtualenv -p /usr/bin/python3 leds2mqtt
  • workon leds2mqtt
  • pip install adafruit-ws2801 RPi.GPIO paho-mqtt

NOT

  • only 1D -> stripes
  • only RGB stripes with single aderssable pixels

Homeassistant

light:
- platform: mqtt
    name: "Leuchtstreifen"
    state_topic: "ledstripe/status"
    command_topic: "ledstripe/set"
    brightness_command_topic: "ledstripe/brightness/set"
    brightness_scale: 100
    rgb_state_topic: "ledstripe/rgb/status"
    rgb_command_topic: "ledstripe/rgb/set"
    effect_list:
        - blink
        - flash
        - dummy
    effect_command_topic: "ledstripe/effect/set"
    effect_state_topic: "ledstripe/effect/status"
    optimistic: false

See also

Similar projects

About

Control 2801 based LED stripes via MQTT

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages