1.2.0 • Published 4 years ago

homebridge-raspberry-simplegpio v1.2.0

Weekly downloads
13
License
MIT
Repository
github
Last release
4 years ago

homebridge-raspberry-simplegpio

1) Description

control your raspberrry pi GPIO pins from homekit.

features

  • customize homekit accessory type
  • no extra configure except homebridge config.json
  • ...

limitations

  • from the plugin name, you may know that, this plugin only support those accesscories which can controled by a single pin. like switch, led, buzzer, relay...
  • ...

2) How to setup

  1. wire your accessories, check wires are correctly connected to raspberry Pi before power it up.
  2. edit config.json or just use the homebridge config UI panel to configure this plugin.

3) Configure

config.json field

field nametyperequireddefaultrangedescription
accessorystringyes'raspberry_simple_gpio'---homebridge required, must be 'raspberry_simple_gpio'
namestringyes'Raspberry-GPIO'---device name shows in HomeKit.
accessory_typestringyes'switch'see descriptionone of these values:- fan- outlet- switch- contact_senser- leak_senser- motion_senser- occupancy_senser- smoke_senser
pinintyes---1-40raspberry GPIO pin number in physical mode, NOT wPi or BCM mode
reverse_statusboolnofalsetrue/falsereverse pin status. If true then on for low, off for high; if false then on for high, off for low.
init_statusstringno'off''on'/'off'/'ignore'Init accessory status.
log_levelintno21,2,3,4,9one of these values:- 1: Debug- 2: Info- 3: Warn- 4: Error- 9: None

example of config.json file

"accessories": [{
    "name": "CH1",
    "accessory_type": "switch",
    "pin": 40,
    "reverse_status": false,
    "init_status": "off",
    "log_level": 1,
    "accessory": "raspberry_simple_gpio"
}]

4) How to contribute

everyone is welcome to contribute to this plugin. PR/issue/debug all are welcome.

or you can send me an e-mail: elfive@elfive.cn

1.2.0

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago