Skip to content

Homebridge plugin for controlling LEDs via PWM over the GPIOs of Raspberry Pi

License

Notifications You must be signed in to change notification settings

maxhock/homebridge-pwm-led

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-pwm-led

Homebridge plugin for controlling LEDs or LED-strips over homekit.

Why?

From my research on npm and GitHub about homebridge led controllers I couldn't find any single one simply converting the homekit interface to PWM signals.

Reference

It uses:

I was heavily inspired by homebridge-fake-rgb for the code structure.

Installation

Prerequisites

Please refer to the npm or GitHub pages for things to do in advance (e.g. install pigpio daemon). Maybe set up [pigpio] beforehand.

Installation

Install as you would any other npm package(not set up yet)

Config

In the config change the pins to your corresponding ones. There is a gamma value inside the index.js that corrects for the difference between homekit colour display and the actual colour. You can set individual values for rgb-gamma with a manual edit but at least for my strips I found 2.8 to be a good fit.

Logging

There is some basic printing to the homebridge log from any function. This just prints the most important values changed in the function.

To-Do

  • add working npm link

About

Homebridge plugin for controlling LEDs via PWM over the GPIOs of Raspberry Pi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published