0.0.12 • Published 5 years ago

homebridge-teleruptor v0.0.12

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Homebridge Teleruptor

Controls channel relays with a Raspberry Pi using HomeKit and creates behaviour of a push button to control lights.

Hardware

The hardware used.

  1. Raspberry Pi 3 Model B+
  2. Multi channel relay board connected to GPIO pins
  3. opto-couplers used to detect on/off state of lights

The raspberry pi can then control the state of the lights. Normal push buttons are still usable.

Installation

  1. Install homebridge using: sudo npm install --unsafe-perm -g homebridge
  2. Install this plugin using: sudo npm install -g --unsafe-perm homebridge-teleruptot
  3. Update your configuration file. See config-sample.json in this repository for a sample.

Sample Configuration

{ "bridge": { "name": "TeleruptorServer", "username": "CC:22:3D:E3:CE:FD", "port": 51826, "pin": "031-45-158" },

"description": "Teleruptor",

"accessories": { "accessory": "Teleruptor", "name": "Teleruptor-1", "pin": 7, "inputpin": 12, "invert": false, "default_state": false, "duration_ms": 100 }, { "accessory": "Teleruptor", "name": "Teleruptor-2", "pin": 11, "inputpin": 14, "invert": false, "default_state": false, "duration_ms": 100 } ,

"platforms": [] }

Accessory Configuration Options

NameMeaning
accessoryAccessory type. Teleruptor (REQUIRED)
nameDefault name for the accessory. (REQUIRED)
pinWhich pin number to use for this accessory. (REQUIRED)
inputpinWhich pin number to use for reading status of the light. (REQUIRED)
invertIf true, output on pin is LOW for ON, and HIGH for OFF. (Default: false)
default_stateState to set on start of homebridge. true for ON, false for OFF. (Default: false/OFF)
duration_msLength of the Pulse that is given in milliseconds (Default: 20)
0.0.12

5 years ago

0.0.11

5 years ago

0.0.34

5 years ago

0.0.32

5 years ago

0.0.31

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago