Skip to content

Latest commit

 

History

History
27 lines (26 loc) · 1.6 KB

README.md

File metadata and controls

27 lines (26 loc) · 1.6 KB

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